2 #ifndef __GXK_UTILS_H__
3 #define __GXK_UTILS_H__
44 GtkMenuItem *menu_item);
51 GtkMenuDetachFunc mdfunc);
52 void gxk_menu_popup (GtkMenu *menu,
57 void gxk_menu_popup_pushable (GtkMenu *menu,
64 void gxk_menu_popup_pushed_in (GtkMenu *menu,
81 void gxk_window_set_menu_accel_group (GtkWindow *window,
82 GtkAccelGroup *agroup);
84 void gxk_window_set_geometry_min_width (GtkWindow *window,
86 void gxk_window_set_geometry_min_height (GtkWindow *window,
88 void gxk_window_set_geometry_width_inc (GtkWindow *window,
89 guint width_increment);
90 void gxk_window_set_geometry_height_inc (GtkWindow *window,
91 guint height_increment);
97 guint gxk_container_get_insertion_slot (GtkContainer *container);
98 void gxk_container_slot_reorder_child (GtkContainer *container,
102 gboolean owner_events,
103 GdkEventMask event_mask,
104 GdkWindow *confine_to,
113 GtkWidget* gxk_file_selection_split (GtkFileSelection *fs,
119 const char *type_name;
122 gconstpointer type_data;
136 #define g_object_set_int g_object_set_long // FIXME
137 #define g_object_get_int g_object_get_long // FIXME
141 gchar* gxk_convert_latin1_to_utf8 (
const gchar *
string);
142 gchar* gxk_filename_to_utf8 (
const gchar *
string);
143 const gchar* gxk_factory_path_get_leaf (
const gchar *path);
144 gchar* gxk_factory_path_unescape_uline (
const gchar *path);
154 #define GXK_DEFAULT_CURSOR GDK_LAST_CURSOR
155 void gxk_window_set_cursor_type (GdkWindow *window,
156 GdkCursorType cursor);
158 gboolean update_children);
192 #define GTK_STYLE_THICKNESS(s,xy) ((s)-> xy##thickness)
199 GtkWidget* gxk_notebook_create_tabulator (
const gchar *label_text,
200 const gchar *stock_image,
201 const gchar *tooltip);
202 void gxk_notebook_change_tabulator (GtkWidget *tabulator,
203 const gchar *label_text,
204 const gchar *stock_image,
205 const gchar *tooltip);
215 gboolean fillexpand);
221 GtkShadowType shadow_type,
231 GtkWidget* gxk_parent_find_descendant (GtkWidget *parent,
232 GType descendant_type);
240 const gchar *tooltip);
242 const gchar *tooltip);
245 GtkAccelGroup *accel_group);
247 gpointer first_widget,
248 ...) G_GNUC_NULL_TERMINATED;
258 GtkTreeViewColumn *column,
259 GtkCellRenderer *cell,
260 const gchar *attrib_name,
261 ...) G_GNUC_NULL_TERMINATED;
267 const gchar *column_flags,
270 const gchar *tooltip,
271 gpointer edited_callback,
273 GConnectFlags cflags);
276 const gchar *column_flags,
279 const gchar *tooltip,
280 gpointer edited_callback,
281 gpointer popup_callback,
283 GConnectFlags cflags);
286 const gchar *column_flags,
289 const gchar *tooltip,
290 gpointer toggled_callback,
292 GConnectFlags cflags);
295 const gchar *tooltip);
296 void gxk_tree_view_set_editable (GtkTreeView *tview,
297 gboolean maybe_editable);
301 const gchar *str_path);
303 const gchar *str_path);
310 void gxk_tree_view_select_index (GtkTreeView *tview,
313 GtkTreeModel *model);
321 gboolean content_area);
333 const gchar *detailed_signal,
337 const gchar *detailed_signal,
343 gchar* gxk_zfile_uncompress (guint uncompressed_size,
344 const
unsigned char *cdata,
void gdk_draw_vline(GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint height)
Convenience variant of gdk_draw_line() to draw a vertical line.
Definition: gxkutils.cc:520
void gxk_tree_selection_select_ipath(GtkTreeSelection *selection, gint first_index,...)
Definition: gxkutils.cc:2007
void gxk_idle_showraise(GtkWidget *widget)
Definition: gxkutils.cc:737
glong g_object_get_long(gpointer object, const gchar *name)
Definition: gxkutils.cc:242
void gxk_type_register_generated(guint n_entries, const GxkTypeGenerated *entries)
Definition: gxkutils.cc:145
gint gxk_tree_spath_index0(const gchar *strpath)
Definition: gxkutils.cc:1482
gboolean gxk_widget_ancestry_viewable(GtkWidget *widget)
Definition: gxkutils.cc:118
void gxk_tree_view_get_bin_window_pos(GtkTreeView *tree, gint *x_p, gint *y_p)
Definition: gxkutils.cc:2220
void gxk_expander_connect_to_widget(GtkWidget *expander, GtkWidget *widget)
Definition: gxkutils.cc:3082
gdouble g_object_get_double(gpointer object, const gchar *name)
Definition: gxkutils.cc:206
const gchar * gxk_widget_get_latent_tooltip(GtkWidget *widget)
Definition: gxkutils.cc:1389
void gxk_toplevel_hide(GtkWidget *widget)
Definition: gxkutils.cc:1096
void gxk_widget_add_font_requisition(GtkWidget *widget, guint n_chars, guint n_digits)
Definition: gxkutils.cc:3733
void gxk_widget_modify_as_title(GtkWidget *widget)
Definition: gxkutils.cc:1213
gboolean gxk_widget_check_option(gpointer widget, const gchar *option)
Definition: gxkutils.cc:3809
void gxk_cell_editable_is_focus_handler(GtkCellEditable *ecell)
Definition: gxkutils.cc:2552
gboolean gxk_cell_editable_canceled(GtkCellEditable *ecell)
Definition: gxkutils.cc:2534
GdkColor gdk_color_from_rgb(guint rgb_value)
Definition: gxkutils.cc:553
GtkWidget * gxk_widget_get_attach_toplevel(GtkWidget *widget)
Definition: gxkutils.cc:3695
void gxk_scrolled_window_spare_space(GtkScrolledWindow *scwin)
Definition: gxkutils.cc:2758
gboolean gxk_tree_path_prev(GtkTreePath *path)
Definition: gxkutils.cc:1527
gboolean gxk_tree_view_get_row_area(GtkTreeView *tree, gint row, gint *y_p, gint *height_p, gboolean content_area)
Definition: gxkutils.cc:2260
GtkWidget * gxk_file_selection_heal(GtkFileSelection *fs)
Definition: gxkutils.cc:3894
void gxk_widget_modify_base_as_bg(GtkWidget *widget)
Definition: gxkutils.cc:1281
GtkWidget * gxk_widget_find_level_ordered(GtkWidget *toplevel, const gchar *name)
Definition: gxkutils.cc:3669
void gxk_widget_request_vclient_width(GtkWidget *widget, GtkWidget *client)
Definition: gxkutils.cc:2856
guint gxk_tree_view_add_column(GtkTreeView *tree_view, gint position, GtkTreeViewColumn *column, GtkCellRenderer *cell, const gchar *attrib_name,...) G_GNUC_NULL_TERMINATED
Definition: gxkutils.cc:1550
void gxk_ungrab_pointer_and_keyboard(GdkWindow *window, guint32 time)
Definition: gxkutils.cc:3287
void gxk_menu_attach_as_popup(GtkMenu *menu, GtkWidget *widget)
Definition: gxkutils.cc:3470
void gxk_tree_selection_select_spath(GtkTreeSelection *selection, const gchar *str_path)
Definition: gxkutils.cc:1966
void gxk_menu_attach_as_popup_with_func(GtkMenu *menu, GtkWidget *widget, GtkMenuDetachFunc mdfunc)
Definition: gxkutils.cc:3441
void gxk_tree_view_column_set_tip_title(GtkTreeViewColumn *tree_column, const gchar *title, const gchar *tooltip)
Definition: gxkutils.cc:1939
void gxk_widget_modify_normal_bg_as_base(GtkWidget *widget)
Definition: gxkutils.cc:1258
void gxk_tree_selection_unselect_ipath(GtkTreeSelection *selection, gint first_index,...)
Definition: gxkutils.cc:2038
void g_object_set_long(gpointer object, const gchar *name, glong v_long)
Definition: gxkutils.cc:224
GdkColor gdk_color_from_rgba(guint rgb_value)
Definition: gxkutils.cc:593
GtkWidget * gxk_item_factory_get_item(GtkItemFactory *ifactory, const gchar *path)
Definition: gxkutils.cc:2634
void gxk_scrolled_window_unspare_space(GtkScrolledWindow *scwin)
Definition: gxkutils.cc:2771
gboolean gxk_grab_pointer_and_keyboard(GdkWindow *window, gboolean owner_events, GdkEventMask event_mask, GdkWindow *confine_to, GdkCursor *cursor, guint32 time)
Definition: gxkutils.cc:3260
void gxk_notebook_append(GtkNotebook *notebook, GtkWidget *child, const gchar *label, gboolean fillexpand)
Definition: gxkutils.cc:901
GdkColor gdk_color_from_argb(guint rgb_value)
Definition: gxkutils.cc:573
void gxk_tree_selection_unselect_spath(GtkTreeSelection *selection, const gchar *str_path)
Definition: gxkutils.cc:1986
Definition: gxkutils.hh:118
gboolean gxk_signal_handler_pending(gpointer instance, const gchar *detailed_signal, GCallback callback, gpointer data)
Definition: gxkutils.cc:2494
gboolean gxk_widget_has_ancestor(gpointer widget, gpointer ancestor)
Definition: gxkutils.cc:2873
void gxk_widget_modify_bg_as_base(GtkWidget *widget)
Definition: gxkutils.cc:1238
void gxk_widget_set_latent_tooltip(GtkWidget *widget, const gchar *tooltip)
Definition: gxkutils.cc:1372
void gxk_option_menu_set_menu(GtkOptionMenu *option_menu, GtkMenu *menu)
Definition: gxkutils.cc:3394
GtkTreeViewColumn * gxk_tree_view_add_popup_column(GtkTreeView *tree_view, guint model_column, const gchar *column_flags, gdouble xalign, const gchar *title, const gchar *tooltip, gpointer edited_callback, gpointer popup_callback, gpointer data, GConnectFlags cflags)
Definition: gxkutils.cc:1828
GtkWidget * gxk_item_factory_get_widget(GtkItemFactory *ifactory, const gchar *path)
Definition: gxkutils.cc:2652
void gxk_widget_regulate(GtkWidget *widget, gboolean sensitive, gboolean active)
Definition: gxkutils.cc:2937
GtkWidget * gxk_scrolled_window_create(GtkWidget *child, GtkShadowType shadow_type, gdouble xrequest, gdouble yrequest)
Definition: gxkutils.cc:2790
gboolean gxk_widget_regulate_uses_active(GtkWidget *widget)
Definition: gxkutils.cc:2971
GtkWidget * gxk_notebook_descendant_get_page(GtkWidget *widget)
Definition: gxkutils.cc:975
void gxk_label_set_attributes(GtkLabel *label,...)
Definition: gxkutils.cc:3108
Definition: gxkutils.hh:180
void g_object_set_double(gpointer object, const gchar *name, gdouble v_double)
Definition: gxkutils.cc:179
void gxk_widget_showraise(GtkWidget *widget)
Definition: gxkutils.cc:1028
void gxk_widget_viewable_changed(GtkWidget *widget)
Definition: gxkutils.cc:356
void gxk_idle_unrealize_widget(GtkWidget *widget)
Definition: gxkutils.cc:826
void gxk_widget_activate_accel_group(GtkWidget *widget, GtkAccelGroup *accel_group)
Definition: gxkutils.cc:1426
GtkWidget * gxk_item_factory_sensitize(GtkItemFactory *ifactory, const gchar *path, gboolean sensitive)
Definition: gxkutils.cc:2601
GtkAccelGroup * gxk_window_get_menu_accel_group(GtkWindow *window)
Definition: gxkutils.cc:2986
void gxk_widget_set_tooltip(gpointer widget, const gchar *tooltip)
Definition: gxkutils.cc:1352
void gxk_tree_selection_force_browse(GtkTreeSelection *selection, GtkTreeModel *model)
Definition: gxkutils.cc:2198
gint gxk_tree_view_get_selected_row(GtkTreeView *tree)
Definition: gxkutils.cc:2350
void gxk_tree_view_append_text_columns(GtkTreeView *tree_view, guint n_cols,...)
Definition: gxkutils.cc:1621
void gxk_widget_add_option(gpointer widget, const gchar *option, const gchar *value)
Definition: gxkutils.cc:3771
Definition: gxkutils.hh:176
GtkTreeViewColumn * gxk_tree_view_add_toggle_column(GtkTreeView *tree_view, guint model_column, const gchar *column_flags, gdouble xalign, const gchar *title, const gchar *tooltip, gpointer toggled_callback, gpointer data, GConnectFlags cflags)
Definition: gxkutils.cc:1867
void gxk_notebook_set_current_page_widget(GtkNotebook *notebook, GtkWidget *page)
Definition: gxkutils.cc:920
void gxk_widget_force_bg_clear(GtkWidget *widget)
Definition: gxkutils.cc:1334
const gchar * gxk_widget_get_options(gpointer widget)
Definition: gxkutils.cc:3753
void gdk_draw_hline(GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width)
Convenience variant of gdk_draw_line() to draw a horizontal line.
Definition: gxkutils.cc:506
gboolean gxk_tree_view_is_row_selected(GtkTreeView *tree, gint row)
Definition: gxkutils.cc:2324
void gxk_widget_make_sensitive(GtkWidget *widget)
Definition: gxkutils.cc:700
void gxk_window_process_next(GdkWindow *window, gboolean update_children)
Definition: gxkutils.cc:489
void gxk_toplevel_activate_default(GtkWidget *widget)
Definition: gxkutils.cc:1081
void gxk_widget_attached_hierarchy_changed(GtkWidget *widget)
Definition: gxkutils.cc:385
void gxk_menu_set_active(GtkMenu *menu, GtkWidget *child)
Definition: gxkutils.cc:2900
gboolean gxk_widget_viewable(GtkWidget *widget)
Definition: gxkutils.cc:329
void gxk_widget_modify_bg_as_active(GtkWidget *widget)
Definition: gxkutils.cc:1301
void gxk_widget_request_hclient_height(GtkWidget *widget, GtkWidget *client)
Definition: gxkutils.cc:2831
GtkWidget * gxk_notebook_descendant_get_tab(GtkWidget *widget)
Definition: gxkutils.cc:990
GtkWidget * gxk_vseparator_space_new(gboolean draw_seperator)
Definition: gxkutils.cc:945
gboolean gxk_menu_check_sensitive(GtkMenu *menu)
Definition: gxkutils.cc:3304
GtkWidget * gtk_notebook_current_widget(GtkNotebook *notebook)
Definition: gxkutils.cc:963
void gxk_widget_make_insensitive(GtkWidget *widget)
Definition: gxkutils.cc:685
gboolean gxk_tree_model_get_iter(GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path)
This function is a replacement for gtk_tree_model_get_iter() for Gtk+-2.4.
Definition: gxkutils.cc:1503
void gxk_tree_view_focus_row(GtkTreeView *tree, gint row)
Definition: gxkutils.cc:2303
void gxk_color_alloc(GdkColormap *colormap, GdkColor *color)
Definition: gxkutils.cc:538
gboolean gxk_signal_handler_exists(gpointer instance, const gchar *detailed_signal, GCallback callback, gpointer data)
Definition: gxkutils.cc:2449
void gxk_idle_show_widget(GtkWidget *widget)
Definition: gxkutils.cc:780
void gxk_widget_proxy_requisition(GtkWidget *widget, gdouble xscale, gdouble yscale)
Definition: gxkutils.cc:2714
GtkWidget * gtk_box_get_nth_child(GtkBox *box, gint pos)
Definition: gxkutils.cc:1006
void gxk_toplevel_delete(GtkWidget *widget)
Definition: gxkutils.cc:1066
GtkTreeViewColumn * gxk_tree_view_add_text_column(GtkTreeView *tree_view, guint model_column, const gchar *column_flags, gdouble xalign, const gchar *title, const gchar *tooltip, gpointer edited_callback, gpointer data, GConnectFlags cflags)
Definition: gxkutils.cc:1792
void gxk_size_group(GtkSizeGroupMode sgmode, gpointer first_widget,...) G_GNUC_NULL_TERMINATED
Definition: gxkutils.cc:1454
void gxk_menu_attach_as_submenu(GtkMenu *menu, GtkMenuItem *menu_item)
Definition: gxkutils.cc:3362
gboolean gxk_tree_view_get_row_from_coord(GtkTreeView *tree, gint y, gint *row_p)
Definition: gxkutils.cc:2380