Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkutils.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #ifndef __GXK_UTILS_H__
3 #define __GXK_UTILS_H__
4 
5 #include <gxk/gxkglobals.hh>
6 
7 /* --- generated includes --- */
8 /* type IDs */
9 #include <gxk/gxkgentypes.h>
10 /* marshallers */
11 #include <gxk/gxkmarshal.h>
12 
13 
14 /* --- Gtk+ workarounds and amendments --- */
15 gboolean gxk_widget_ancestry_viewable (GtkWidget *widget);
16 void gxk_cell_editable_is_focus_handler (GtkCellEditable *ecell);
17 gboolean gxk_cell_editable_canceled (GtkCellEditable *ecell);
18 GtkWidget* gxk_item_factory_sensitize (GtkItemFactory *ifactory,
19  const gchar *path,
20  gboolean sensitive);
21 GtkWidget* gxk_item_factory_get_item (GtkItemFactory *ifactory,
22  const gchar *path);
23 GtkWidget* gxk_item_factory_get_widget (GtkItemFactory *ifactory,
24  const gchar *path);
25 void gxk_widget_proxy_requisition (GtkWidget *widget,
26  gdouble xscale,
27  gdouble yscale);
28 void gxk_widget_request_hclient_height (GtkWidget *widget,
29  GtkWidget *client);
30 void gxk_widget_request_vclient_width (GtkWidget *widget,
31  GtkWidget *client);
32 gboolean gxk_widget_has_ancestor (gpointer widget,
33  gpointer ancestor);
34 void gxk_menu_set_active (GtkMenu *menu,
35  GtkWidget *child);
36 void gxk_widget_regulate (GtkWidget *widget,
37  gboolean sensitive,
38  gboolean active);
39 gboolean gxk_widget_regulate_uses_active (GtkWidget *widget);
40 gboolean gxk_menu_check_sensitive (GtkMenu *menu);
41 void gxk_menu_attach_as_submenu (GtkMenu *menu,
42  GtkMenuItem *menu_item);
43 void gxk_option_menu_set_menu (GtkOptionMenu *option_menu,
44  GtkMenu *menu);
45 void gxk_menu_attach_as_popup (GtkMenu *menu,
46  GtkWidget *widget);
47 void gxk_menu_attach_as_popup_with_func (GtkMenu *menu,
48  GtkWidget *widget,
49  GtkMenuDetachFunc mdfunc);
50 void gxk_menu_popup (GtkMenu *menu,
51  gint x,
52  gint y,
53  guint mouse_button,
54  guint32 time);
55 void gxk_menu_popup_pushable (GtkMenu *menu,
56  gint x,
57  gint y,
58  gint pushed_x,
59  gint pushed_y,
60  guint mouse_button,
61  guint32 time);
62 void gxk_menu_popup_pushed_in (GtkMenu *menu,
63  gint pushed_x,
64  gint pushed_y,
65  guint mouse_button,
66  guint32 time);
67 GtkWidget* gxk_widget_find_level_ordered (GtkWidget *toplevel,
68  const gchar *name);
69 GtkWidget* gxk_widget_get_attach_toplevel (GtkWidget *widget);
70 void gxk_widget_add_font_requisition (GtkWidget *widget,
71  guint n_chars,
72  guint n_digits);
73 void gxk_widget_add_option (gpointer widget,
74  const gchar *option,
75  const gchar *value);
76 gboolean gxk_widget_check_option (gpointer widget,
77  const gchar *option);
78 const gchar* gxk_widget_get_options (gpointer widget);
79 void gxk_window_set_menu_accel_group (GtkWindow *window,
80  GtkAccelGroup *agroup);
81 GtkAccelGroup* gxk_window_get_menu_accel_group (GtkWindow *window);
82 void gxk_window_set_geometry_min_width (GtkWindow *window,
83  guint min_width);
84 void gxk_window_set_geometry_min_height (GtkWindow *window,
85  guint min_height);
86 void gxk_window_set_geometry_width_inc (GtkWindow *window,
87  guint width_increment);
88 void gxk_window_set_geometry_height_inc (GtkWindow *window,
89  guint height_increment);
90 void gxk_expander_connect_to_widget (GtkWidget *expander,
91  GtkWidget *widget);
92 void gxk_label_set_attributes (GtkLabel *label,
93  ...);
94 
95 guint gxk_container_get_insertion_slot (GtkContainer *container);
96 void gxk_container_slot_reorder_child (GtkContainer *container,
97  GtkWidget *widget,
98  guint slot);
99 gboolean gxk_grab_pointer_and_keyboard (GdkWindow *window,
100  gboolean owner_events,
101  GdkEventMask event_mask,
102  GdkWindow *confine_to,
103  GdkCursor *cursor,
104  guint32 time);
105 void gxk_ungrab_pointer_and_keyboard (GdkWindow *window,
106  guint32 time);
107 
108 
109 /* --- GtkFileSelection workarounds --- */
110 GtkWidget* gxk_file_selection_heal (GtkFileSelection *fs);
111 GtkWidget* gxk_file_selection_split (GtkFileSelection *fs,
112  GtkWidget **bbox);
113 
114 
115 /* --- GObject convenience --- */
116 typedef struct {
117  const char *type_name;
118  GType parent;
119  GType *type_id;
120  gconstpointer type_data; /* e.g. GEnumValue array */
122 void gxk_type_register_generated (guint n_entries,
123  const GxkTypeGenerated *entries);
124 void g_object_set_double (gpointer object,
125  const gchar *name,
126  gdouble v_double);
127 gdouble g_object_get_double (gpointer object,
128  const gchar *name);
129 void g_object_set_long (gpointer object,
130  const gchar *name,
131  glong v_long);
132 glong g_object_get_long (gpointer object,
133  const gchar *name);
134 #define g_object_set_int g_object_set_long // FIXME
135 #define g_object_get_int g_object_get_long // FIXME
136 
137 
138 /* --- UTF8 helpers --- */
139 gchar* gxk_convert_latin1_to_utf8 (const gchar *string);
140 gchar* gxk_filename_to_utf8 (const gchar *string);
141 const gchar* gxk_factory_path_get_leaf (const gchar *path);
142 gchar* gxk_factory_path_unescape_uline (const gchar *path);
143 
144 
145 /* --- Gtk+ Utilities --- */
146 void gxk_widget_viewable_changed (GtkWidget *widget);
147 gboolean gxk_widget_viewable (GtkWidget *widget);
148 void gxk_widget_attached_hierarchy_changed (GtkWidget *widget);
149 
150 
151 /* --- Gdk convenience --- */
152 #define GXK_DEFAULT_CURSOR GDK_LAST_CURSOR
153 void gxk_window_set_cursor_type (GdkWindow *window,
154  GdkCursorType cursor);
155 void gxk_window_process_next (GdkWindow *window,
156  gboolean update_children);
157 void gdk_draw_hline (GdkDrawable *drawable,
158  GdkGC *gc,
159  gint x,
160  gint y,
161  gint width);
162 void gdk_draw_vline (GdkDrawable *drawable,
163  GdkGC *gc,
164  gint x,
165  gint y,
166  gint height);
167 void gxk_color_alloc (GdkColormap *colormap,
168  GdkColor *color);
169 GdkColor gdk_color_from_rgb (guint rgb_value);
170 GdkColor gdk_color_from_argb (guint rgb_value);
171 GdkColor gdk_color_from_rgba (guint rgb_value);
172 
173 /* --- Colors --- */
174 typedef struct {
175  double value;
176  guint rgb;
177 } GxkColorDot;
178 typedef struct {
179  guint n_colors;
180  GxkColorDot *colors;
181 } GxkColorDots;
182 GxkColorDots* gxk_color_dots_new (guint n_dots,
183  const GxkColorDot *dots);
184 guint gxk_color_dots_interpolate (GxkColorDots *cdots,
185  double value,
186  double saturation);
187 void gxk_color_dots_destroy (GxkColorDots *cdots);
188 
189 /* --- Gtk convenience --- */
190 #define GTK_STYLE_THICKNESS(s,xy) ((s)-> xy##thickness)
191 void gxk_widget_make_insensitive (GtkWidget *widget);
192 void gxk_widget_make_sensitive (GtkWidget *widget);
193 void gxk_widget_showraise (GtkWidget *widget);
194 void gxk_idle_showraise (GtkWidget *widget);
195 void gxk_idle_show_widget (GtkWidget *widget);
196 void gxk_idle_unrealize_widget (GtkWidget *widget);
197 GtkWidget* gxk_notebook_create_tabulator (const gchar *label_text,
198  const gchar *stock_image,
199  const gchar *tooltip);
200 void gxk_notebook_change_tabulator (GtkWidget *tabulator,
201  const gchar *label_text,
202  const gchar *stock_image,
203  const gchar *tooltip);
204 void gxk_notebook_set_current_page_widget (GtkNotebook *notebook,
205  GtkWidget *page);
206 GtkWidget* gxk_vseparator_space_new (gboolean draw_seperator);
207 GtkWidget* gtk_notebook_current_widget (GtkNotebook *notebook);
208 GtkWidget* gxk_notebook_descendant_get_page (GtkWidget *widget);
209 GtkWidget* gxk_notebook_descendant_get_tab (GtkWidget *widget);
210 void gxk_notebook_append (GtkNotebook *notebook,
211  GtkWidget *child,
212  const gchar *label,
213  gboolean fillexpand);
214 GtkWidget* gtk_box_get_nth_child (GtkBox *box,
215  gint pos);
216 void gxk_scrolled_window_spare_space (GtkScrolledWindow*scwin);
217 void gxk_scrolled_window_unspare_space (GtkScrolledWindow*scwin);
218 GtkWidget* gxk_scrolled_window_create (GtkWidget *child,
219  GtkShadowType shadow_type,
220  gdouble xrequest,
221  gdouble yrequest);
222 
223 /* functions to affect a widget tree's toplevel */
224 void gxk_toplevel_delete (GtkWidget *widget);
225 void gxk_toplevel_hide (GtkWidget *widget);
226 void gxk_toplevel_activate_default (GtkWidget *widget);
227 
228 /* widget utilities */
229 GtkWidget* gxk_parent_find_descendant (GtkWidget *parent,
230  GType descendant_type);
231 void gxk_widget_modify_as_title (GtkWidget *widget);
232 void gxk_widget_modify_normal_bg_as_base (GtkWidget *widget);
233 void gxk_widget_modify_bg_as_base (GtkWidget *widget);
234 void gxk_widget_modify_base_as_bg (GtkWidget *widget);
235 void gxk_widget_modify_bg_as_active (GtkWidget *widget);
236 void gxk_widget_force_bg_clear (GtkWidget *widget);
237 void gxk_widget_set_tooltip (gpointer widget,
238  const gchar *tooltip);
239 void gxk_widget_set_latent_tooltip (GtkWidget *widget,
240  const gchar *tooltip);
241 const gchar* gxk_widget_get_latent_tooltip (GtkWidget *widget);
242 void gxk_widget_activate_accel_group (GtkWidget *widget,
243  GtkAccelGroup *accel_group);
244 void gxk_size_group (GtkSizeGroupMode sgmode,
245  gpointer first_widget,
246  ...) G_GNUC_NULL_TERMINATED;
247 
248 /* tree view convenience */
249 gint gxk_tree_spath_index0 (const gchar *strpath);
250 gboolean gxk_tree_model_get_iter (GtkTreeModel *tree_model,
251  GtkTreeIter *iter,
252  GtkTreePath *path);
253 gboolean gxk_tree_path_prev (GtkTreePath *path);
254 guint gxk_tree_view_add_column (GtkTreeView *tree_view,
255  gint position,
256  GtkTreeViewColumn *column,
257  GtkCellRenderer *cell,
258  const gchar *attrib_name,
259  ...) G_GNUC_NULL_TERMINATED;
260 void gxk_tree_view_append_text_columns (GtkTreeView *tree_view,
261  guint n_cols,
262  ...);
263 GtkTreeViewColumn* gxk_tree_view_add_text_column (GtkTreeView *tree_view,
264  guint model_column,
265  const gchar *column_flags,
266  gdouble xalign,
267  const gchar *title,
268  const gchar *tooltip,
269  gpointer edited_callback,
270  gpointer data,
271  GConnectFlags cflags);
272 GtkTreeViewColumn* gxk_tree_view_add_popup_column (GtkTreeView *tree_view,
273  guint model_column,
274  const gchar *column_flags,
275  gdouble xalign,
276  const gchar *title,
277  const gchar *tooltip,
278  gpointer edited_callback,
279  gpointer popup_callback,
280  gpointer data,
281  GConnectFlags cflags);
282 GtkTreeViewColumn* gxk_tree_view_add_toggle_column (GtkTreeView *tree_view,
283  guint model_column,
284  const gchar *column_flags,
285  gdouble xalign,
286  const gchar *title,
287  const gchar *tooltip,
288  gpointer toggled_callback,
289  gpointer data,
290  GConnectFlags cflags);
291 void gxk_tree_view_column_set_tip_title (GtkTreeViewColumn *tree_column,
292  const gchar *title,
293  const gchar *tooltip);
294 void gxk_tree_view_set_editable (GtkTreeView *tview,
295  gboolean maybe_editable);
296 
297 /* tree selection convenience */
298 void gxk_tree_selection_select_spath (GtkTreeSelection *selection,
299  const gchar *str_path);
300 void gxk_tree_selection_unselect_spath (GtkTreeSelection *selection,
301  const gchar *str_path);
302 void gxk_tree_selection_select_ipath (GtkTreeSelection *selection,
303  gint first_index,
304  ...);
305 void gxk_tree_selection_unselect_ipath (GtkTreeSelection *selection,
306  gint first_index,
307  ...);
308 void gxk_tree_view_select_index (GtkTreeView *tview,
309  guint index);
310 void gxk_tree_selection_force_browse (GtkTreeSelection *selection,
311  GtkTreeModel *model);
312 void gxk_tree_view_get_bin_window_pos (GtkTreeView *tree,
313  gint *x_p,
314  gint *y_p);
315 gboolean gxk_tree_view_get_row_area (GtkTreeView *tree,
316  gint row,
317  gint *y_p,
318  gint *height_p,
319  gboolean content_area);
320 gboolean gxk_tree_view_get_row_from_coord(GtkTreeView *tree,
321  gint y,
322  gint *row_p);
323 void gxk_tree_view_focus_row (GtkTreeView *tree,
324  gint row);
325 gboolean gxk_tree_view_is_row_selected (GtkTreeView *tree,
326  gint row);
327 gint gxk_tree_view_get_selected_row (GtkTreeView *tree);
328 
329 /* --- signal convenience --- */
330 gboolean gxk_signal_handler_exists (gpointer instance,
331  const gchar *detailed_signal,
332  GCallback callback,
333  gpointer data);
334 gboolean gxk_signal_handler_pending (gpointer instance,
335  const gchar *detailed_signal,
336  GCallback callback,
337  gpointer data);
338 
339 
340 /* --- zlib support --- */
341 gchar* gxk_zfile_uncompress (guint uncompressed_size,
342  const unsigned char *cdata,
343  guint cdata_size);
344 
345 
346 #endif /* __GXK_UTILS_H__ */
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:516
void gxk_tree_selection_select_ipath(GtkTreeSelection *selection, gint first_index,...)
Definition: gxkutils.cc:2003
void gxk_idle_showraise(GtkWidget *widget)
Definition: gxkutils.cc:733
glong g_object_get_long(gpointer object, const gchar *name)
Definition: gxkutils.cc:238
void gxk_type_register_generated(guint n_entries, const GxkTypeGenerated *entries)
Definition: gxkutils.cc:141
gint gxk_tree_spath_index0(const gchar *strpath)
Definition: gxkutils.cc:1478
gboolean gxk_widget_ancestry_viewable(GtkWidget *widget)
Definition: gxkutils.cc:114
void gxk_tree_view_get_bin_window_pos(GtkTreeView *tree, gint *x_p, gint *y_p)
Definition: gxkutils.cc:2216
void gxk_expander_connect_to_widget(GtkWidget *expander, GtkWidget *widget)
Definition: gxkutils.cc:3078
gdouble g_object_get_double(gpointer object, const gchar *name)
Definition: gxkutils.cc:202
const gchar * gxk_widget_get_latent_tooltip(GtkWidget *widget)
Definition: gxkutils.cc:1385
void gxk_toplevel_hide(GtkWidget *widget)
Definition: gxkutils.cc:1092
void gxk_widget_add_font_requisition(GtkWidget *widget, guint n_chars, guint n_digits)
Definition: gxkutils.cc:3729
void gxk_widget_modify_as_title(GtkWidget *widget)
Definition: gxkutils.cc:1209
gboolean gxk_widget_check_option(gpointer widget, const gchar *option)
Definition: gxkutils.cc:3805
void gxk_cell_editable_is_focus_handler(GtkCellEditable *ecell)
Definition: gxkutils.cc:2548
gboolean gxk_cell_editable_canceled(GtkCellEditable *ecell)
Definition: gxkutils.cc:2530
GdkColor gdk_color_from_rgb(guint rgb_value)
Definition: gxkutils.cc:549
GtkWidget * gxk_widget_get_attach_toplevel(GtkWidget *widget)
Definition: gxkutils.cc:3691
void gxk_scrolled_window_spare_space(GtkScrolledWindow *scwin)
Definition: gxkutils.cc:2754
gboolean gxk_tree_path_prev(GtkTreePath *path)
Definition: gxkutils.cc:1523
gboolean gxk_tree_view_get_row_area(GtkTreeView *tree, gint row, gint *y_p, gint *height_p, gboolean content_area)
Definition: gxkutils.cc:2256
GtkWidget * gxk_file_selection_heal(GtkFileSelection *fs)
Definition: gxkutils.cc:3890
void gxk_widget_modify_base_as_bg(GtkWidget *widget)
Definition: gxkutils.cc:1277
GtkWidget * gxk_widget_find_level_ordered(GtkWidget *toplevel, const gchar *name)
Definition: gxkutils.cc:3665
void gxk_widget_request_vclient_width(GtkWidget *widget, GtkWidget *client)
Definition: gxkutils.cc:2852
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:1546
void gxk_ungrab_pointer_and_keyboard(GdkWindow *window, guint32 time)
Definition: gxkutils.cc:3283
void gxk_menu_attach_as_popup(GtkMenu *menu, GtkWidget *widget)
Definition: gxkutils.cc:3466
void gxk_tree_selection_select_spath(GtkTreeSelection *selection, const gchar *str_path)
Definition: gxkutils.cc:1962
void gxk_menu_attach_as_popup_with_func(GtkMenu *menu, GtkWidget *widget, GtkMenuDetachFunc mdfunc)
Definition: gxkutils.cc:3437
void gxk_tree_view_column_set_tip_title(GtkTreeViewColumn *tree_column, const gchar *title, const gchar *tooltip)
Definition: gxkutils.cc:1935
void gxk_widget_modify_normal_bg_as_base(GtkWidget *widget)
Definition: gxkutils.cc:1254
void gxk_tree_selection_unselect_ipath(GtkTreeSelection *selection, gint first_index,...)
Definition: gxkutils.cc:2034
void g_object_set_long(gpointer object, const gchar *name, glong v_long)
Definition: gxkutils.cc:220
GdkColor gdk_color_from_rgba(guint rgb_value)
Definition: gxkutils.cc:589
GtkWidget * gxk_item_factory_get_item(GtkItemFactory *ifactory, const gchar *path)
Definition: gxkutils.cc:2630
void gxk_scrolled_window_unspare_space(GtkScrolledWindow *scwin)
Definition: gxkutils.cc:2767
gboolean gxk_grab_pointer_and_keyboard(GdkWindow *window, gboolean owner_events, GdkEventMask event_mask, GdkWindow *confine_to, GdkCursor *cursor, guint32 time)
Definition: gxkutils.cc:3256
void gxk_notebook_append(GtkNotebook *notebook, GtkWidget *child, const gchar *label, gboolean fillexpand)
Definition: gxkutils.cc:897
GdkColor gdk_color_from_argb(guint rgb_value)
Definition: gxkutils.cc:569
void gxk_tree_selection_unselect_spath(GtkTreeSelection *selection, const gchar *str_path)
Definition: gxkutils.cc:1982
Definition: gxkutils.hh:116
gboolean gxk_signal_handler_pending(gpointer instance, const gchar *detailed_signal, GCallback callback, gpointer data)
Definition: gxkutils.cc:2490
gboolean gxk_widget_has_ancestor(gpointer widget, gpointer ancestor)
Definition: gxkutils.cc:2869
void gxk_widget_modify_bg_as_base(GtkWidget *widget)
Definition: gxkutils.cc:1234
void gxk_widget_set_latent_tooltip(GtkWidget *widget, const gchar *tooltip)
Definition: gxkutils.cc:1368
void gxk_option_menu_set_menu(GtkOptionMenu *option_menu, GtkMenu *menu)
Definition: gxkutils.cc:3390
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:1824
GtkWidget * gxk_item_factory_get_widget(GtkItemFactory *ifactory, const gchar *path)
Definition: gxkutils.cc:2648
uint32_t * row(uint y)
void gxk_widget_regulate(GtkWidget *widget, gboolean sensitive, gboolean active)
Definition: gxkutils.cc:2933
GtkWidget * gxk_scrolled_window_create(GtkWidget *child, GtkShadowType shadow_type, gdouble xrequest, gdouble yrequest)
Definition: gxkutils.cc:2786
gboolean gxk_widget_regulate_uses_active(GtkWidget *widget)
Definition: gxkutils.cc:2967
GtkWidget * gxk_notebook_descendant_get_page(GtkWidget *widget)
Definition: gxkutils.cc:971
void gxk_label_set_attributes(GtkLabel *label,...)
Definition: gxkutils.cc:3104
Definition: gxkutils.hh:178
void g_object_set_double(gpointer object, const gchar *name, gdouble v_double)
Definition: gxkutils.cc:175
void gxk_widget_showraise(GtkWidget *widget)
Definition: gxkutils.cc:1024
void gxk_widget_viewable_changed(GtkWidget *widget)
Definition: gxkutils.cc:352
void gxk_idle_unrealize_widget(GtkWidget *widget)
Definition: gxkutils.cc:822
void gxk_widget_activate_accel_group(GtkWidget *widget, GtkAccelGroup *accel_group)
Definition: gxkutils.cc:1422
GtkWidget * gxk_item_factory_sensitize(GtkItemFactory *ifactory, const gchar *path, gboolean sensitive)
Definition: gxkutils.cc:2597
GtkAccelGroup * gxk_window_get_menu_accel_group(GtkWindow *window)
Definition: gxkutils.cc:2982
void gxk_widget_set_tooltip(gpointer widget, const gchar *tooltip)
Definition: gxkutils.cc:1348
void gxk_tree_selection_force_browse(GtkTreeSelection *selection, GtkTreeModel *model)
Definition: gxkutils.cc:2194
gint gxk_tree_view_get_selected_row(GtkTreeView *tree)
Definition: gxkutils.cc:2346
void gxk_tree_view_append_text_columns(GtkTreeView *tree_view, guint n_cols,...)
Definition: gxkutils.cc:1617
void gxk_widget_add_option(gpointer widget, const gchar *option, const gchar *value)
Definition: gxkutils.cc:3767
Definition: gxkutils.hh:174
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:1863
void gxk_notebook_set_current_page_widget(GtkNotebook *notebook, GtkWidget *page)
Definition: gxkutils.cc:916
void gxk_widget_force_bg_clear(GtkWidget *widget)
Definition: gxkutils.cc:1330
const gchar * gxk_widget_get_options(gpointer widget)
Definition: gxkutils.cc:3749
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:502
gboolean gxk_tree_view_is_row_selected(GtkTreeView *tree, gint row)
Definition: gxkutils.cc:2320
void gxk_widget_make_sensitive(GtkWidget *widget)
Definition: gxkutils.cc:696
void gxk_window_process_next(GdkWindow *window, gboolean update_children)
Definition: gxkutils.cc:485
void gxk_toplevel_activate_default(GtkWidget *widget)
Definition: gxkutils.cc:1077
void gxk_widget_attached_hierarchy_changed(GtkWidget *widget)
Definition: gxkutils.cc:381
void gxk_menu_set_active(GtkMenu *menu, GtkWidget *child)
Definition: gxkutils.cc:2896
gboolean gxk_widget_viewable(GtkWidget *widget)
Definition: gxkutils.cc:325
void gxk_widget_modify_bg_as_active(GtkWidget *widget)
Definition: gxkutils.cc:1297
void gxk_widget_request_hclient_height(GtkWidget *widget, GtkWidget *client)
Definition: gxkutils.cc:2827
GtkWidget * gxk_notebook_descendant_get_tab(GtkWidget *widget)
Definition: gxkutils.cc:986
GtkWidget * gxk_vseparator_space_new(gboolean draw_seperator)
Definition: gxkutils.cc:941
gboolean gxk_menu_check_sensitive(GtkMenu *menu)
Definition: gxkutils.cc:3300
GtkWidget * gtk_notebook_current_widget(GtkNotebook *notebook)
Definition: gxkutils.cc:959
void gxk_widget_make_insensitive(GtkWidget *widget)
Definition: gxkutils.cc:681
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:1499
void gxk_tree_view_focus_row(GtkTreeView *tree, gint row)
Definition: gxkutils.cc:2299
void gxk_color_alloc(GdkColormap *colormap, GdkColor *color)
Definition: gxkutils.cc:534
gboolean gxk_signal_handler_exists(gpointer instance, const gchar *detailed_signal, GCallback callback, gpointer data)
Definition: gxkutils.cc:2445
void gxk_idle_show_widget(GtkWidget *widget)
Definition: gxkutils.cc:776
void gxk_widget_proxy_requisition(GtkWidget *widget, gdouble xscale, gdouble yscale)
Definition: gxkutils.cc:2710
GtkWidget * gtk_box_get_nth_child(GtkBox *box, gint pos)
Definition: gxkutils.cc:1002
void gxk_toplevel_delete(GtkWidget *widget)
Definition: gxkutils.cc:1062
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:1788
void gxk_size_group(GtkSizeGroupMode sgmode, gpointer first_widget,...) G_GNUC_NULL_TERMINATED
Definition: gxkutils.cc:1450
void gxk_menu_attach_as_submenu(GtkMenu *menu, GtkMenuItem *menu_item)
Definition: gxkutils.cc:3358
gboolean gxk_tree_view_get_row_from_coord(GtkTreeView *tree, gint y, gint *row_p)
Definition: gxkutils.cc:2376