## katze-utils katze-utils |

## Synopsis

    #include <katze/katze.h>

    enum                KatzeMenuPos;
    void                katze_assert_str_equal              (const gchar *input,
                                                             const gchar *result,
                                                             const gchar *expected);
    #define             katze_assign                        (lvalue,
                                                             rvalue)
    void                katze_bookmark_populate_tree_view   (KatzeArray *array,
                                                             GtkTreeStore *model,
                                                             GtkTreeIter *parent);
    GtkWidget *         katze_image_menu_item_new_ellipsized
                                                            (const gchar *label);
    int                 katze_mkdir_with_parents            (const gchar *pathname,
                                                             int mode);
    #define             katze_object_assign                 (lvalue,
                                                             rvalue)
    gint                katze_object_get_boolean            (gpointer object,
                                                             const gchar *property);
    gint                katze_object_get_enum               (gpointer object,
                                                             const gchar *property);
    gint                katze_object_get_int                (gpointer object,
                                                             const gchar *property);
    gpointer            katze_object_get_object             (gpointer object,
                                                             const gchar *property);
    gchar *             katze_object_get_string             (gpointer object,
                                                             const gchar *property);
    GtkWidget *         katze_property_proxy                (gpointer object,
                                                             const gchar *property,
                                                             const gchar *hint);
    const gchar *       katze_skip_whitespace               (const gchar *str);
    const gchar *       katze_str_non_null                  (const gchar *str);
    gchar *             katze_strip_mnemonics               (const gchar *original);
    #define             katze_strv_assign                   (lvalue,
                                                             rvalue)
    gboolean            katze_tree_view_get_selected_iter   (GtkTreeView *treeview,
                                                             GtkTreeModel **model,
                                                             GtkTreeIter *iter);
    GtkWidget *         katze_uri_entry_new                 (GtkWidget *other_widget);
    void                katze_widget_add_class              (GtkWidget *widget,
                                                             const gchar *class_name);
    void                katze_widget_popup                  (GtkWidget *widget,
                                                             GtkMenu *menu,
                                                             GdkEventButton *event,
                                                             KatzeMenuPos pos);
    void                katze_window_set_sensible_default_size
                                                            (GtkWindow *window);

## Description

## Details

### enum KatzeMenuPos

    typedef enum {
        KATZE_MENU_POSITION_CURSOR = 0,
        KATZE_MENU_POSITION_LEFT,
        KATZE_MENU_POSITION_RIGHT
    } KatzeMenuPos;

### katze_assert_str_equal ()

    void                katze_assert_str_equal              (const gchar *input,
                                                             const gchar *result,
                                                             const gchar *expected);

### katze_assign()

    #define katze_assign(lvalue, rvalue) lvalue = (g_free (lvalue), rvalue)

### katze_bookmark_populate_tree_view ()

    void                katze_bookmark_populate_tree_view   (KatzeArray *array,
                                                             GtkTreeStore *model,
                                                             GtkTreeIter *parent);

### katze_image_menu_item_new_ellipsized ()

    GtkWidget *         katze_image_menu_item_new_ellipsized
                                                            (const gchar *label);

### katze_mkdir_with_parents ()

    int                 katze_mkdir_with_parents            (const gchar *pathname,
                                                             int mode);

### katze_object_assign()

    #define             katze_object_assign(lvalue, rvalue)

### katze_object_get_boolean ()

    gint                katze_object_get_boolean            (gpointer object,
                                                             const gchar *property);

### katze_object_get_enum ()

    gint                katze_object_get_enum               (gpointer object,
                                                             const gchar *property);

### katze_object_get_int ()

    gint                katze_object_get_int                (gpointer object,
                                                             const gchar *property);

### katze_object_get_object ()

    gpointer            katze_object_get_object             (gpointer object,
                                                             const gchar *property);

### katze_object_get_string ()

    gchar *             katze_object_get_string             (gpointer object,
                                                             const gchar *property);

### katze_property_proxy ()

    GtkWidget *         katze_property_proxy                (gpointer object,
                                                             const gchar *property,
                                                             const gchar *hint);

### katze_skip_whitespace ()

    const gchar *       katze_skip_whitespace               (const gchar *str);

### katze_str_non_null ()

    const gchar *       katze_str_non_null                  (const gchar *str);

### katze_strip_mnemonics ()

    gchar *             katze_strip_mnemonics               (const gchar *original);

### katze_strv_assign()

    #define katze_strv_assign(lvalue, rvalue) lvalue = (g_strfreev (lvalue), rvalue)

### katze_tree_view_get_selected_iter ()

    gboolean            katze_tree_view_get_selected_iter   (GtkTreeView *treeview,
                                                             GtkTreeModel **model,
                                                             GtkTreeIter *iter);

### katze_uri_entry_new ()

    GtkWidget *         katze_uri_entry_new                 (GtkWidget *other_widget);

### katze_widget_add_class ()

    void                katze_widget_add_class              (GtkWidget *widget,
                                                             const gchar *class_name);

### katze_widget_popup ()

    void                katze_widget_popup                  (GtkWidget *widget,
                                                             GtkMenu *menu,
                                                             GdkEventButton *event,
                                                             KatzeMenuPos pos);

### katze_window_set_sensible_default_size ()

    void                katze_window_set_sensible_default_size
                                                            (GtkWindow *window);