## gnome-db-util

gnome-db-util — Utility functions

##

# Synopsis

    GtkWidget*  gnome_db_new_browser_widget     (void);
    GtkWidget*  gnome_db_new_button_widget      (const gchar *label);
    GtkWidget*  gnome_db_new_button_widget_from_stock
                                                (const gchar *stock_id);
    GtkWidget*  gnome_db_new_check_button_widget
                                                (const gchar *label);
    GtkWidget*  gnome_db_new_combo_widget       (void);
    GtkWidget*  gnome_db_new_entry_widget       (gint max_length,
                                                 gboolean editable);
    GtkWidget*  gnome_db_new_file_entry_widget  (const gchar *history_id,
                                                 const gchar *title);
    GtkWidget*  gnome_db_new_frame_widget       (const gchar *title);
    GtkWidget*  gnome_db_new_grid_widget        (GdaDataModel *model);
    GtkWidget*  gnome_db_new_hbox_widget        (gboolean homogenous,
                                                 gint spacing);
    GtkWidget*  gnome_db_new_hbutton_box_widget (void);
    GtkWidget*  gnome_db_new_hpaned_widget      (void);
    GtkWidget*  gnome_db_new_hseparator_widget  (void);
    GtkWidget*  gnome_db_new_label_widget       (const gchar *text);
    GtkWidget*  gnome_db_new_notebook_widget    (void);
    GtkWidget*  gnome_db_new_option_menu_widget (void);
    GtkWidget*  gnome_db_new_popup_menu         (GtkWidget *parent,
                                                 GnomeUIInfo *ui_info,
                                                 gpointer user_data);
    GtkWidget*  gnome_db_new_radio_button_widget
                                                (GSList *group,
                                                 const gchar *label);
    GtkWidget*  gnome_db_new_scrolled_window_widget
                                                (void);
    GtkWidget*  gnome_db_new_status_bar_widget  (void);
    GtkWidget*  gnome_db_new_table_widget       (gint rows,
                                                 gint cols,
                                                 gboolean homogenous);
    GtkWidget*  gnome_db_new_text_widget        (const gchar *contents);
    GtkWidget*  gnome_db_new_toolbar_widget     (GtkOrientation orientation,
                                                 GtkToolbarStyle style);
    GtkWidget*  gnome_db_new_tree_view_widget   (GtkTreeModel *model);
    GtkWidget*  gnome_db_new_vbox_widget        (gboolean homogenous,
                                                 gint spacing);
    GtkWidget*  gnome_db_new_vpaned_widget      (void);
    GtkWidget*  gnome_db_new_vseparator_widget  (void);
    void        gnome_db_set_widget_bg_color    (GtkWidget *widget,
                                                 const gchar *color);
    void        gnome_db_set_widget_fg_color    (GtkWidget *widget,
                                                 const gchar *color);
    GtkWidget*  gnome_db_option_menu_add_item   (GtkOptionMenu *option_menu,
                                                 const gchar *label);
    GtkWidget*  gnome_db_option_menu_add_stock_item
                                                (GtkOptionMenu *option_menu,
                                                 const gchar *stock_id);
    void        gnome_db_option_menu_add_separator
                                                (GtkOptionMenu *option_menu);
    const gchar* gnome_db_option_menu_get_selection
                                                (GtkOptionMenu *option_menu);
    void        gnome_db_option_menu_set_selection
                                                (GtkOptionMenu *option_menu,
                                                 const gchar *selection);
    void        gnome_db_text_clear             (GtkTextView *text);
    void        gnome_db_text_copy_clipboard    (GtkTextView *text);
    void        gnome_db_text_cut_clipboard     (GtkTextView *text);
    gint        gnome_db_text_get_char_count    (GtkTextView *text);
    gint        gnome_db_text_get_line_count    (GtkTextView *text);
    gchar*      gnome_db_text_get_text          (GtkTextView *text);
    void        gnome_db_text_insert_at_cursor  (GtkTextView *text,
                                                 const gchar *contents,
                                                 gint len);
    void        gnome_db_text_paste_clipboard   (GtkTextView *text);
    void        gnome_db_text_set_text          (GtkTextView *text,
                                                 const gchar *contents,
                                                 gint len);
    gchar*      gnome_db_select_file_dialog     (GtkWidget *parent,
                                                 const gchar *title);
    GtkWidget*  gnome_db_new_alert              (GtkWindow *parent,
                                                 GtkMessageType type,
                                                 const gchar *primary_text,
                                                 const gchar *secondary_text);
    void        gnome_db_show_error             (const gchar *format,
                                                 ...);
    void        gnome_db_show_message           (const gchar *format,
                                                 ...);
    void        gnome_db_push_cursor_busy       (GtkWidget *window);
    void        gnome_db_pop_cursor_busy        (GtkWidget *window);
    GtkWidget*  gnome_db_new_menu_item          (const gchar *label,
                                                 gboolean pixmap,
                                                 GCallback cb_func,
                                                 gpointer user_data);
    GtkWidget*  gnome_db_new_check_menu_item    (const gchar *label,
                                                 gboolean active,
                                                 GCallback cb_func,
                                                 gpointer user_data);

## Description

## Details

### gnome_db_new_browser_widget ()

    GtkWidget*  gnome_db_new_browser_widget     (void);

Returns : |

### gnome_db_new_button_widget ()

    GtkWidget*  gnome_db_new_button_widget      (const gchar *label);

`label` : |
Returns : |

### gnome_db_new_button_widget_from_stock ()

    GtkWidget*  gnome_db_new_button_widget_from_stock
                                                (const gchar *stock_id);

`stock_id` : |
Returns : |

### gnome_db_new_check_button_widget ()

    GtkWidget*  gnome_db_new_check_button_widget
                                                (const gchar *label);

`label` : |
Returns : |

### gnome_db_new_combo_widget ()

    GtkWidget*  gnome_db_new_combo_widget       (void);

Returns : |

### gnome_db_new_entry_widget ()

    GtkWidget*  gnome_db_new_entry_widget       (gint max_length,
                                                 gboolean editable);

`max_length` : |
`editable` : |
Returns : |

### gnome_db_new_file_entry_widget ()

    GtkWidget*  gnome_db_new_file_entry_widget  (const gchar *history_id,
                                                 const gchar *title);

`history_id` : |
`title` : |
Returns : |

### gnome_db_new_frame_widget ()

    GtkWidget*  gnome_db_new_frame_widget       (const gchar *title);

`title` : |
Returns : |

### gnome_db_new_grid_widget ()

    GtkWidget*  gnome_db_new_grid_widget        (GdaDataModel *model);

`model` : |
Returns : |

### gnome_db_new_hbox_widget ()

    GtkWidget*  gnome_db_new_hbox_widget        (gboolean homogenous,
                                                 gint spacing);

`homogenous` : |
`spacing` : |
Returns : |

### gnome_db_new_hbutton_box_widget ()

    GtkWidget*  gnome_db_new_hbutton_box_widget (void);

Returns : |

### gnome_db_new_hpaned_widget ()

    GtkWidget*  gnome_db_new_hpaned_widget      (void);

Returns : |

### gnome_db_new_hseparator_widget ()

    GtkWidget*  gnome_db_new_hseparator_widget  (void);

Returns : |

### gnome_db_new_label_widget ()

    GtkWidget*  gnome_db_new_label_widget       (const gchar *text);

`text` : |
Returns : |

### gnome_db_new_notebook_widget ()

    GtkWidget*  gnome_db_new_notebook_widget    (void);

Returns : |

### gnome_db_new_option_menu_widget ()

    GtkWidget*  gnome_db_new_option_menu_widget (void);

Returns : |

### gnome_db_new_popup_menu ()

    GtkWidget*  gnome_db_new_popup_menu         (GtkWidget *parent,
                                                 GnomeUIInfo *ui_info,
                                                 gpointer user_data);

`parent` : |
`ui_info` : |
`user_data` : |
Returns : |

### gnome_db_new_radio_button_widget ()

    GtkWidget*  gnome_db_new_radio_button_widget
                                                (GSList *group,
                                                 const gchar *label);

`group` : |
`label` : |
Returns : |

### gnome_db_new_scrolled_window_widget ()

    GtkWidget*  gnome_db_new_scrolled_window_widget
                                                (void);

Returns : |

### gnome_db_new_status_bar_widget ()

    GtkWidget*  gnome_db_new_status_bar_widget  (void);

Returns : |

### gnome_db_new_table_widget ()

    GtkWidget*  gnome_db_new_table_widget       (gint rows,
                                                 gint cols,
                                                 gboolean homogenous);

`rows` : |
`cols` : |
`homogenous` : |
Returns : |

### gnome_db_new_text_widget ()

    GtkWidget*  gnome_db_new_text_widget        (const gchar *contents);

`contents` : |
Returns : |

### gnome_db_new_toolbar_widget ()

    GtkWidget*  gnome_db_new_toolbar_widget     (GtkOrientation orientation,
                                                 GtkToolbarStyle style);

`orientation` : |
`style` : |
Returns : |

### gnome_db_new_tree_view_widget ()

    GtkWidget*  gnome_db_new_tree_view_widget   (GtkTreeModel *model);

`model` : |
Returns : |

### gnome_db_new_vbox_widget ()

    GtkWidget*  gnome_db_new_vbox_widget        (gboolean homogenous,
                                                 gint spacing);

`homogenous` : |
`spacing` : |
Returns : |

### gnome_db_new_vpaned_widget ()

    GtkWidget*  gnome_db_new_vpaned_widget      (void);

Returns : |

### gnome_db_new_vseparator_widget ()

    GtkWidget*  gnome_db_new_vseparator_widget  (void);

Returns : |

### gnome_db_set_widget_bg_color ()

    void        gnome_db_set_widget_bg_color    (GtkWidget *widget,
                                                 const gchar *color);

`widget` : |
`color` : |

### gnome_db_set_widget_fg_color ()

    void        gnome_db_set_widget_fg_color    (GtkWidget *widget,
                                                 const gchar *color);

`widget` : |
`color` : |

### gnome_db_option_menu_add_item ()

    GtkWidget*  gnome_db_option_menu_add_item   (GtkOptionMenu *option_menu,
                                                 const gchar *label);

`option_menu` : |
`label` : |
Returns : |

### gnome_db_option_menu_add_stock_item ()

    GtkWidget*  gnome_db_option_menu_add_stock_item
                                                (GtkOptionMenu *option_menu,
                                                 const gchar *stock_id);

`option_menu` : |
`stock_id` : |
Returns : |

### gnome_db_option_menu_add_separator ()

    void        gnome_db_option_menu_add_separator
                                                (GtkOptionMenu *option_menu);

`option_menu` : |

### gnome_db_option_menu_get_selection ()

    const gchar* gnome_db_option_menu_get_selection
                                                (GtkOptionMenu *option_menu);

`option_menu` : |
Returns : |

### gnome_db_option_menu_set_selection ()

    void        gnome_db_option_menu_set_selection
                                                (GtkOptionMenu *option_menu,
                                                 const gchar *selection);

`option_menu` : |
`selection` : |

### gnome_db_text_clear ()

    void        gnome_db_text_clear             (GtkTextView *text);

Clear the contents of the given text view widget.

`text` : | a GtkTextView widget

### gnome_db_text_copy_clipboard ()

    void        gnome_db_text_copy_clipboard    (GtkTextView *text);

`text` : |

### gnome_db_text_cut_clipboard ()

    void        gnome_db_text_cut_clipboard     (GtkTextView *text);

`text` : |

### gnome_db_text_get_char_count ()

    gint        gnome_db_text_get_char_count    (GtkTextView *text);

`text` : |
Returns : |

### gnome_db_text_get_line_count ()

    gint        gnome_db_text_get_line_count    (GtkTextView *text);

`text` : |
Returns : |

### gnome_db_text_get_text ()

    gchar*      gnome_db_text_get_text          (GtkTextView *text);

`text` : |
Returns : |

### gnome_db_text_insert_at_cursor ()

    void        gnome_db_text_insert_at_cursor  (GtkTextView *text,
                                                 const gchar *contents,
                                                 gint len);

`text` : |
`contents` : |
`len` : |

### gnome_db_text_paste_clipboard ()

    void        gnome_db_text_paste_clipboard   (GtkTextView *text);

`text` : |

### gnome_db_text_set_text ()

    void        gnome_db_text_set_text          (GtkTextView *text,
                                                 const gchar *contents,
                                                 gint len);

`text` : |
`contents` : |
`len` : |

### gnome_db_select_file_dialog ()

    gchar*      gnome_db_select_file_dialog     (GtkWidget *parent,
                                                 const gchar *title);

`parent` : |
`title` : |
Returns : |

### gnome_db_new_alert ()

    GtkWidget*  gnome_db_new_alert              (GtkWindow *parent,
                                                 GtkMessageType type,
                                                 const gchar *primary_text,
                                                 const gchar *secondary_text);

`parent` : |
`type` : |
`primary_text` : |
`secondary_text` : |
Returns : |

### gnome_db_show_error ()

    void        gnome_db_show_error             (const gchar *format,
                                                 ...);

`format` : |
`...` : |

### gnome_db_show_message ()

    void        gnome_db_show_message           (const gchar *format,
                                                 ...);

Displays an information message to the user.

`format` : | Format string.
`...` : |

### gnome_db_push_cursor_busy ()

    void        gnome_db_push_cursor_busy       (GtkWidget *window);

`window` : |

### gnome_db_pop_cursor_busy ()

    void        gnome_db_pop_cursor_busy        (GtkWidget *window);

`window` : |

### gnome_db_new_menu_item ()

    GtkWidget*  gnome_db_new_menu_item          (const gchar *label,
                                                 gboolean pixmap,
                                                 GCallback cb_func,
                                                 gpointer user_data);

`label` : |
`pixmap` : |
`cb_func` : |
`user_data` : |
Returns : |

### gnome_db_new_check_menu_item ()

    GtkWidget*  gnome_db_new_check_menu_item    (const gchar *label,
                                                 gboolean active,
                                                 GCallback cb_func,
                                                 gpointer user_data);

`label` : |
`active` : |
`cb_func` : |
`user_data` : |
Returns : |