Beast - Music Synthesizer and Composer  0.11.1+10.g2da35
gxkutils.cc File Reference
#include "gxkutils.hh"
#include "glewidgets.h"
#include "gxkmenubutton.hh"
#include "gxkstock.hh"
#include "gxkcellrendererpopup.hh"
#include "gxkauxwidgets.hh"
#include <string.h>
#include <stdlib.h>
#include "gxkgentypes.cc"
#include <zlib.h>
Include dependency graph for gxkutils.cc:

Functions

void gxk_init_utils (void)
 
gboolean gxk_widget_ancestry_viewable (GtkWidget *widget)
 
void gxk_type_register_generated (guint n_entries, const GxkTypeGenerated *entries)
 
void g_object_set_double (gpointer object, const gchar *name, gdouble v_double)
 
gdouble g_object_get_double (gpointer object, const gchar *name)
 
void g_object_set_long (gpointer object, const gchar *name, glong v_long)
 
glong g_object_get_long (gpointer object, const gchar *name)
 
gchar * gxk_convert_latin1_to_utf8 (const gchar *string)
 
gchar * gxk_filename_to_utf8 (const gchar *filename)
 
const gchar * gxk_factory_path_get_leaf (const gchar *path)
 
gchar * gxk_factory_path_unescape_uline (const gchar *path)
 
gboolean gxk_widget_viewable (GtkWidget *widget)
 
void gxk_widget_viewable_changed (GtkWidget *widget)
 
void gxk_widget_attached_hierarchy_changed (GtkWidget *widget)
 
void gxk_window_set_cursor_type (GdkWindow *window, GdkCursorType cursor)
 
void gxk_window_process_next (GdkWindow *window, gboolean update_children)
 
void gdk_draw_hline (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width)
 
void gdk_draw_vline (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint height)
 
void gxk_color_alloc (GdkColormap *colormap, GdkColor *color)
 
GdkColor gdk_color_from_rgb (guint rgb_value)
 
GdkColor gdk_color_from_argb (guint rgb_value)
 
GdkColor gdk_color_from_rgba (guint rgb_value)
 
GxkColorDotsgxk_color_dots_new (guint n_dots, const GxkColorDot *dots)
 
guint gxk_color_dots_interpolate (GxkColorDots *cdots, double value, double saturation)
 
void gxk_color_dots_destroy (GxkColorDots *cdots)
 
void gxk_widget_make_insensitive (GtkWidget *widget)
 
void gxk_widget_make_sensitive (GtkWidget *widget)
 
void gxk_idle_showraise (GtkWidget *widget)
 
void gxk_idle_show_widget (GtkWidget *widget)
 
void gxk_idle_unrealize_widget (GtkWidget *widget)
 
GtkWidget * gxk_notebook_create_tabulator (const gchar *label_text, const gchar *stock_image, const gchar *tooltip)
 
void gxk_notebook_change_tabulator (GtkWidget *tabulator, const gchar *label_text, const gchar *stock_image, const gchar *tooltip)
 
void gxk_notebook_append (GtkNotebook *notebook, GtkWidget *child, const gchar *tab_text, gboolean fillexpand)
 
void gxk_notebook_set_current_page_widget (GtkNotebook *notebook, GtkWidget *page)
 
GtkWidget * gxk_vseparator_space_new (gboolean draw_seperator)
 
GtkWidget * gtk_notebook_current_widget (GtkNotebook *notebook)
 
GtkWidget * gxk_notebook_descendant_get_page (GtkWidget *widget)
 
GtkWidget * gxk_notebook_descendant_get_tab (GtkWidget *widget)
 
GtkWidget * gtk_box_get_nth_child (GtkBox *box, gint pos)
 
void gxk_widget_showraise (GtkWidget *widget)
 
void gxk_toplevel_delete (GtkWidget *widget)
 
void gxk_toplevel_activate_default (GtkWidget *widget)
 
void gxk_toplevel_hide (GtkWidget *widget)
 
GtkWidget * gxk_parent_find_descendant (GtkWidget *parent, GType descendant_type)
 
void gxk_widget_modify_as_title (GtkWidget *widget)
 
void gxk_widget_modify_bg_as_base (GtkWidget *widget)
 
void gxk_widget_modify_normal_bg_as_base (GtkWidget *widget)
 
void gxk_widget_modify_base_as_bg (GtkWidget *widget)
 
void gxk_widget_modify_bg_as_active (GtkWidget *widget)
 
void gxk_widget_force_bg_clear (GtkWidget *widget)
 
void gxk_widget_set_tooltip (gpointer widget, const gchar *tooltip)
 
void gxk_widget_set_latent_tooltip (GtkWidget *widget, const gchar *tooltip)
 
const gchar * gxk_widget_get_latent_tooltip (GtkWidget *widget)
 
void gxk_widget_activate_accel_group (GtkWidget *widget, GtkAccelGroup *accel_group)
 
void gxk_size_group (GtkSizeGroupMode sgmode, gpointer first_widget,...)
 
gint gxk_tree_spath_index0 (const gchar *strpath)
 
gboolean gxk_tree_model_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path)
 
gboolean gxk_tree_path_prev (GtkTreePath *path)
 
guint gxk_tree_view_add_column (GtkTreeView *tree_view, gint position, GtkTreeViewColumn *column, GtkCellRenderer *cell, const gchar *attrib_name,...)
 
void gxk_tree_view_append_text_columns (GtkTreeView *tree_view, guint n_cols,...)
 
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)
 
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)
 
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)
 
void gxk_tree_view_set_editable (GtkTreeView *tview, gboolean maybe_editable)
 
void gxk_tree_view_column_set_tip_title (GtkTreeViewColumn *tree_column, const gchar *title, const gchar *tooltip)
 
void gxk_tree_selection_select_spath (GtkTreeSelection *selection, const gchar *str_path)
 
void gxk_tree_selection_unselect_spath (GtkTreeSelection *selection, const gchar *str_path)
 
void gxk_tree_selection_select_ipath (GtkTreeSelection *selection, gint first_index,...)
 
void gxk_tree_selection_unselect_ipath (GtkTreeSelection *selection, gint first_index,...)
 
void gxk_tree_view_select_index (GtkTreeView *tview, guint index)
 
void gxk_tree_selection_force_browse (GtkTreeSelection *selection, GtkTreeModel *model)
 
void gxk_tree_view_get_bin_window_pos (GtkTreeView *tree, gint *x_p, gint *y_p)
 
gboolean gxk_tree_view_get_row_area (GtkTreeView *tree, gint row, gint *y_p, gint *height_p, gboolean content_area)
 
void gxk_tree_view_focus_row (GtkTreeView *tree, gint row)
 
gboolean gxk_tree_view_is_row_selected (GtkTreeView *tree, gint row)
 
gint gxk_tree_view_get_selected_row (GtkTreeView *tree)
 
gboolean gxk_tree_view_get_row_from_coord (GtkTreeView *tree, gint y, gint *row_p)
 
gboolean gxk_signal_handler_exists (gpointer instance, const gchar *detailed_signal, GCallback callback, gpointer data)
 
gboolean gxk_signal_handler_pending (gpointer instance, const gchar *detailed_signal, GCallback callback, gpointer data)
 
gboolean gxk_cell_editable_canceled (GtkCellEditable *ecell)
 
void gxk_cell_editable_is_focus_handler (GtkCellEditable *ecell)
 
GtkWidget * gxk_item_factory_sensitize (GtkItemFactory *ifactory, const gchar *path, gboolean sensitive)
 
GtkWidget * gxk_item_factory_get_item (GtkItemFactory *ifactory, const gchar *path)
 
GtkWidget * gxk_item_factory_get_widget (GtkItemFactory *ifactory, const gchar *path)
 
void gxk_widget_proxy_requisition (GtkWidget *widget, gdouble xscale, gdouble yscale)
 
void gxk_scrolled_window_spare_space (GtkScrolledWindow *scwin)
 
void gxk_scrolled_window_unspare_space (GtkScrolledWindow *scwin)
 
GtkWidget * gxk_scrolled_window_create (GtkWidget *child, GtkShadowType shadow_type, gdouble xrequest, gdouble yrequest)
 
void gxk_widget_request_hclient_height (GtkWidget *widget, GtkWidget *client)
 
void gxk_widget_request_vclient_width (GtkWidget *widget, GtkWidget *client)
 
gboolean gxk_widget_has_ancestor (gpointer widget, gpointer ancestor)
 
void gxk_menu_set_active (GtkMenu *menu, GtkWidget *child)
 
void gxk_widget_regulate (GtkWidget *widget, gboolean sensitive, gboolean active)
 
gboolean gxk_widget_regulate_uses_active (GtkWidget *widget)
 
GtkAccelGroup * gxk_window_get_menu_accel_group (GtkWindow *window)
 
void gxk_window_set_geometry_min_width (GtkWindow *window, guint min_width)
 
void gxk_window_set_geometry_min_height (GtkWindow *window, guint min_height)
 
void gxk_window_set_geometry_width_inc (GtkWindow *window, guint width_increment)
 
void gxk_window_set_geometry_height_inc (GtkWindow *window, guint height_increment)
 
void gxk_expander_connect_to_widget (GtkWidget *expander, GtkWidget *widget)
 
void gxk_label_set_attributes (GtkLabel *label,...)
 
guint gxk_container_get_insertion_slot (GtkContainer *container)
 
void gxk_container_slot_reorder_child (GtkContainer *container, GtkWidget *widget, guint sloti)
 
gboolean gxk_grab_pointer_and_keyboard (GdkWindow *window, gboolean owner_events, GdkEventMask event_mask, GdkWindow *confine_to, GdkCursor *cursor, guint32 time)
 
void gxk_ungrab_pointer_and_keyboard (GdkWindow *window, guint32 time)
 
gboolean gxk_menu_check_sensitive (GtkMenu *menu)
 
void gxk_menu_attach_as_submenu (GtkMenu *menu, GtkMenuItem *menu_item)
 
void gxk_option_menu_set_menu (GtkOptionMenu *option_menu, GtkMenu *menu)
 
void gxk_menu_attach_as_popup_with_func (GtkMenu *menu, GtkWidget *widget, GtkMenuDetachFunc mdfunc)
 
void gxk_menu_attach_as_popup (GtkMenu *menu, GtkWidget *widget)
 
void gxk_menu_popup (GtkMenu *menu, gint x, gint y, guint mouse_button, guint32 time)
 
void gxk_menu_popup_pushable (GtkMenu *menu, gint x, gint y, gint pushed_x, gint pushed_y, guint mouse_button, guint32 time)
 
void gxk_menu_popup_pushed_in (GtkMenu *menu, gint pushed_x, gint pushed_y, guint mouse_button, guint32 time)
 
GtkWidget * gxk_widget_find_level_ordered (GtkWidget *toplevel, const gchar *name)
 
GtkWidget * gxk_widget_get_attach_toplevel (GtkWidget *widget)
 
void gxk_widget_add_font_requisition (GtkWidget *widget, guint n_chars, guint n_digits)
 
const gchar * gxk_widget_get_options (gpointer widget)
 
void gxk_widget_add_option (gpointer widget, const gchar *option, const gchar *value)
 
gboolean gxk_widget_check_option (gpointer widget, const gchar *option)
 
GtkWidget * gxk_file_selection_split (GtkFileSelection *fs, GtkWidget **bbox_p)
 
GtkWidget * gxk_file_selection_heal (GtkFileSelection *fs)
 
gchar * gxk_zfile_uncompress (guint uncompressed_size, const unsigned char *cdata, guint cdata_size)
 

Variables

 Enum
 

Function Documentation

gdouble g_object_get_double ( gpointer  object,
const gchar *  name 
)
Parameters
objecta valid GObject
namename of the double value to retrieve
Returns
the actual value

Convenience variant of g_object_get_data() to retrieve a double instead of a pointer.

Referenced by gnome_canvas_text_set_zoom_size().

Here is the caller graph for this function:

glong g_object_get_long ( gpointer  object,
const gchar *  name 
)
Parameters
objecta valid GObject
namename of the long value to retrieve
Returns
the actual value

Convenience variant of g_object_get_data() to retrieve a long instead of a pointer.

Referenced by gxk_dialog_new(), gxk_text_view_cursor_to_end(), gxk_tree_view_add_toggle_column(), and gxk_widget_get_attach_toplevel().

Here is the call graph for this function:

Here is the caller graph for this function:

void g_object_set_double ( gpointer  object,
const gchar *  name,
gdouble  v_double 
)
Parameters
objecta valid GObject
namename of the double value to set
v_doublethe actual value

Convenience variant of g_object_set_data() to set a double instead of a pointer.

Referenced by gnome_canvas_text_set_zoom_size().

Here is the call graph for this function:

Here is the caller graph for this function:

void g_object_set_long ( gpointer  object,
const gchar *  name,
glong  v_long 
)
Parameters
objecta valid GObject
namename of the long value to set
v_longthe actual value

Convenience variant of g_object_set_data() to set a long instead of a pointer.

Referenced by gxk_dialog_new(), gxk_scroll_text_create(), gxk_tree_view_add_toggle_column(), and gxk_widget_add_font_requisition().

Here is the caller graph for this function:

GdkColor gdk_color_from_argb ( guint  rgb_value)
Parameters
rgb_value0xAaRrGgBb color value

Fill out a GdkColor with red, green and blue color values, from Rr, Gg and Bb respectively. Aa maybe an alpha value and will be ignored. GdkColor.pixel will be 0-initialized.

GdkColor gdk_color_from_rgb ( guint  rgb_value)
Parameters
rgb_value0xRrGgBb color value

Fill out a GdkColor with red, green and blue color values, from Rr, Gg and Bb respectively. GdkColor.pixel will be 0-initialized.

GdkColor gdk_color_from_rgba ( guint  rgb_value)
Parameters
rgb_value0xRrGgBbAa color value

Fill out a GdkColor with red, green and blue color values, from Rr, Gg and Bb respectively. Aa maybe an alpha value and will be ignored. GdkColor.pixel will be 0-initialized.

Here is the call graph for this function:

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.

Referenced by gxk_cell_renderer_popup_get_type().

Here is the caller graph for this function:

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.

Referenced by gxk_cell_renderer_popup_get_type().

Here is the caller graph for this function:

GtkWidget* gtk_box_get_nth_child ( GtkBox *  box,
gint  pos 
)
Parameters
boxa valid GtkBox
posposition of the requested child
Returns
a child of box or NULL

Find the child at position pos (0 indicates the first child) of box and return it. To retrieve the last xchild of box, -1 may be passed as pos.

GtkWidget* gtk_notebook_current_widget ( GtkNotebook *  notebook)
Parameters
notebookvalid GtkNotebook
Returns
the widget corresponding to the current page

This function is essentially a shortcut for gtk_notebook_get_current_page() and gtk_notebook_get_nth_page().

gboolean gxk_cell_editable_canceled ( GtkCellEditable *  ecell)
Parameters
ecellvalid GtkCellEditable
Returns
whether editing got aborted

Return whether editing was canceled (currently supported by GtkEntry and triggered by pressing Escape during editing).

void gxk_cell_editable_is_focus_handler ( GtkCellEditable *  ecell)
Parameters
ecellvalid GtkCellEditable
Returns
returns FALSE

Call gtk_cell_editable_editing_done() if necessary and return FALSE. This function is meant to be used to handle "notify::is-focus" signals on GtkCellEditable widgets.

Referenced by gxk_cell_renderer_popup_get_type().

Here is the caller graph for this function:

void gxk_color_alloc ( GdkColormap *  colormap,
GdkColor *  color 
)
Parameters
colormapvalid GdkColormap
colorvalid GdkColor

Allocate a color like gdk_color_alloc() with automated error checking.

void gxk_expander_connect_to_widget ( GtkWidget *  expander,
GtkWidget *  widget 
)
Parameters
expandervalid GtkWidget with boolean ::expanded property
widgetvalid GtkWidget

Setup signal connections, so that the visibility of widget is controlled by the ::expanded property of expander.

Here is the call graph for this function:

GtkWidget* gxk_file_selection_heal ( GtkFileSelection *  fs)
Parameters
fsvalid GtkFileSelection
Returns
new toplevel VBox of the file selection

Fixup various oddities that happened to the Gtk+ file selection widget over time. This function corrects container border widths, spacing, button placement and the default and focus widgets. Also, the lifetime of the file selection window is tied to the returned GtkVBox, enabling removal of the GtkVBox from it's parent and thus using the file selection widgets in a custom GtkWindow.

Here is the call graph for this function:

gboolean gxk_grab_pointer_and_keyboard ( GdkWindow *  window,
gboolean  owner_events,
GdkEventMask  event_mask,
GdkWindow *  confine_to,
GdkCursor *  cursor,
guint32  time 
)
Parameters
windowthe window receiving the grab
owner_eventsif TRUE, events will be reported relative to window
event_maskmask of interesting events
confine_tolimits the pointer to the specified window
cursorcursor to use for the duration of the grab
timeevent time when grab is requested
Returns
TRUE if pointer and keyboard could successfully be grabbed

This function grabs the pointer and keyboard simultaneously. This is recommended over plain pointer grabs, to reduce the risk of other applications (for instance the window manager) aborting the current grab and leaving the application in an invalid state.

void gxk_idle_show_widget ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Defer showing this widget until the next idle handler is run. This is useful if other things are pending which need to be processed first, for instance hiding other toplevels.

void gxk_idle_showraise ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Defers showing and raising this widget like gxk_widget_showraise() until the next idle handler is run. This is useful if other things are pending which need to be processed first, for instance hiding other toplevels or constructing remaining parts of the widget hierarchy.

void gxk_idle_unrealize_widget ( GtkWidget *  widget)
Parameters
widgeta valid GtkWindow

Defer unrealizing this widget until the next idle handler is run. This is useful if other things are pending which need to be processed first, e.g. completing a running signal emission.

Referenced by gxk_dialog_set_default().

Here is the call graph for this function:

Here is the caller graph for this function:

GtkWidget* gxk_item_factory_get_item ( GtkItemFactory *  ifactory,
const gchar *  path 
)
Parameters
ifactoryvalid GtkItemFactory
pathitem factory path
Returns
menu item according to path

This function strips unescaped underlines ('_') from path and then calls gtk_item_factory_get_item().

Referenced by gxk_item_factory_sensitize().

Here is the caller graph for this function:

GtkWidget* gxk_item_factory_get_widget ( GtkItemFactory *  ifactory,
const gchar *  path 
)
Parameters
ifactoryvalid GtkItemFactory
pathitem factory path
Returns
widget according to path

This function strips unescaped underlines ('_') from path and then calls gtk_item_factory_get_widget().

Here is the call graph for this function:

GtkWidget* gxk_item_factory_sensitize ( GtkItemFactory *  ifactory,
const gchar *  path,
gboolean  sensitive 
)
Parameters
ifactoryvalid GtkItemFactory
pathitem factory path
sensitivewhether menu item should be sensitive
Returns
menu item according to path

This function turns the menu item found via gxk_item_factory_get_item() (in-)sensitive according to sensitive. Additional checks are performed before making a menu item sensitive to avoid showing e.g. empty submenus.

Here is the call graph for this function:

void gxk_label_set_attributes ( GtkLabel *  label,
  ... 
)
Parameters
labela GtkLabel
...a list of PangoAttrType and value pairs terminated by -1.

Sets Pango attributes on a GtkLabel in a more convenient way than gtk_label_set_attributes().

This function is useful if you want to change the font attributes of a GtkLabel. This is an alternative to using PangoMarkup which is slow to parse and akward to handle in an i18n-friendly way.

The attributes are set on the complete label, from start to end. If you need to set attributes on part of the label, you will have to use the PangoAttributes API directly.

This function is based on gimp_label_set_attributes().

Here is the call graph for this function:

void gxk_menu_attach_as_popup ( GtkMenu *  menu,
GtkWidget *  widget 
)
Parameters
menuvalid GtkMenu
menu_itemvalid GtkMenuItem

This function is a replacement for gtk_menu_attach_to_widget(). Similar to gxk_menu_attach_as_submenu(), it sets up a propagation mechanism, so menu and submenus thereof automatically fetch their accelerator groups via gxk_window_get_menu_accel_group() from the toplevel window. In addition, this function allowes gxk_widget_find_level_ordered() to also consider popup menus in its search.

Referenced by gxk_radget_add().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_menu_attach_as_popup_with_func ( GtkMenu *  menu,
GtkWidget *  widget,
GtkMenuDetachFunc  mdfunc 
)
Parameters
menuvalid GtkMenu
menu_itemvalid GtkMenuItem
mdfunca GtkMenuDetachFunc func as in gtk_menu_attach_to_widget()

Variant of gxk_menu_attach_as_popup() which preserves the GtkMenuDetachFunc.

Referenced by gxk_menu_attach_as_popup().

Here is the caller graph for this function:

void gxk_menu_attach_as_submenu ( GtkMenu *  menu,
GtkMenuItem *  menu_item 
)
Parameters
menuvalid GtkMenu
menu_itemvalid GtkMenuItem

This function is a replacement for gtk_menu_item_set_submenu(). It installs the necessary hooks on the menu to automatically update sensitivity of menu_item in response to children being deleted or added to the menu. The rationale behind this is to avoid empty submenus popups. Also, a propagation mechanism is set up, so menu and submenus thereof automatically fetch their accelerator groups via gxk_window_get_menu_accel_group() from the toplevel window.

Referenced by gxk_radget_add().

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean gxk_menu_check_sensitive ( GtkMenu *  menu)
Parameters
menuvalid GtkMenu
Returns
TRUE if menu contains selectable items

This function tests whether a menu contains selectable menu items. It can be used to determine sensitivity for menu items containing submenus.

Referenced by gxk_menu_check_sensitive(), and gxk_radget_get_domain().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_menu_set_active ( GtkMenu *  menu,
GtkWidget *  child 
)
Parameters
menuvalid GtkMenu
childan immediate child of menu

This function replaces gtk_menu_set_active(). The child to be set as last selection is passed in as ordinary child pointer and if the menu is attached to an option menu or menu button, the attach widget is updated after the selection changed, due to the emission of ::selection-done.

Referenced by gxk_widget_regulate().

Here is the caller graph for this function:

void gxk_notebook_append ( GtkNotebook *  notebook,
GtkWidget *  child,
const gchar *  tab_text,
gboolean  fillexpand 
)
Parameters
notebooka valid notebook
childa valid parent-less widget
labelnotebook page name
fillexpandwhether the tab label should expand

Add a new page containing child to notebook, naming the page label.

GtkWidget* gxk_notebook_descendant_get_page ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget
Returns
notebook page widget or NULL

Find the innermost notebook page widget that contains widget.

Referenced by gxk_notebook_descendant_get_tab().

Here is the caller graph for this function:

GtkWidget* gxk_notebook_descendant_get_tab ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget
Returns
notebook page tab widget or NULL

Find the innermost notebook page widget that contains widget and return its tabulator widget.

Here is the call graph for this function:

void gxk_notebook_set_current_page_widget ( GtkNotebook *  notebook,
GtkWidget *  page 
)
Parameters
notebookvalid GtkNotebook
pagenotebook page widget

Set the current notebook page from a page widget, instead of a page number.

void gxk_option_menu_set_menu ( GtkOptionMenu *  option_menu,
GtkMenu *  menu 
)
Parameters
option_menuvalid GtkOptionMenu
menuvalid GtkMenu

This function is a replacement for gtk_option_menu_set_menu(). Similar to gxk_menu_attach_as_submenu(), it sets up a propagation mechanism, so menu and submenus thereof automatically fetch their accelerator groups via gxk_window_get_menu_accel_group() from the toplevel window.

GtkWidget* gxk_scrolled_window_create ( GtkWidget *  child,
GtkShadowType  shadow_type,
gdouble  xrequest,
gdouble  yrequest 
)
Parameters
childvalid GtkWidget
shadow_typeshadow around the GtkViewport
xrequestfractional factor for screen width
yrequestfractional factor for screen height
spare_spacewhether to call gxk_scrolled_window_spare_space()
Returns
the newly created GtkScrolledWindow

Create a GtkScrolledWindow with a GtkViewport as parent of child. The xrequest and yrequest arguments are passed on to gxk_widget_proxy_requisition().

Here is the call graph for this function:

void gxk_scrolled_window_spare_space ( GtkScrolledWindow *  scwin)
Parameters
scwinvalid GtkScrolledWindow

A normal GtkScrolledWindow requests extra space for a horizontal scrollbar if the vertical scroll policy is set to GTK_POLICY_NEVER and vice versa, regardless of whether the scrollbars have to be shown or not. This function patches up this behaviour to spare the extra requested space from the outer scrolled window requisition if possible (that is, if the corresponding scrollbar is not currently visible).

Here is the call graph for this function:

void gxk_scrolled_window_unspare_space ( GtkScrolledWindow *  scwin)
Parameters
scwinvalid GtkScrolledWindow

Undo the effect of a call to gxk_scrolled_window_spare_space().

Here is the call graph for this function:

gboolean gxk_signal_handler_exists ( gpointer  instance,
const gchar *  detailed_signal,
GCallback  callback,
gpointer  data 
)
Parameters
instanceobject instance with signals
detailed_signalsignal name
callbackcustom callback function
datacallback data
Returns
whether callback is connected

Find out whether a specific callback is connected to a specific signal on an instance, the callback may be blocked. detailed_signal may be NULL to act as a wildcard. TRUE is returned if the callback is found, FALSE otherwise.

Referenced by gxk_menu_attach_as_submenu(), gxk_radget_parse_text(), gxk_scrolled_window_spare_space(), gxk_scrolled_window_unspare_space(), gxk_tree_selection_force_browse(), gxk_widget_add_font_requisition(), gxk_widget_attached_hierarchy_changed(), gxk_widget_force_bg_clear(), gxk_widget_modify_as_title(), gxk_widget_modify_base_as_bg(), gxk_widget_modify_bg_as_active(), gxk_widget_modify_bg_as_base(), and gxk_widget_modify_normal_bg_as_base().

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean gxk_signal_handler_pending ( gpointer  instance,
const gchar *  detailed_signal,
GCallback  callback,
gpointer  data 
)
Parameters
instanceobject instance with signals
detailed_signalsignal name
callbackcustom callback function
datacallback data
Returns
whether callback is connected

Find out whether a specific callback is pending (connected and unblocked) for a specific signal on an instance. detailed_signal may be NULL to act as a wildcard. TRUE is returned if the callback is found, FALSE otherwise.

Referenced by gxk_expander_connect_to_widget(), and gxk_menu_check_sensitive().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_size_group ( GtkSizeGroupMode  sgmode,
gpointer  first_widget,
  ... 
)
Parameters
sgmodesize group mode, one of GTK_SIZE_GROUP_NONE, GTK_SIZE_GROUP_HORIZONTAL, GTK_SIZE_GROUP_VERTICAL or GTK_SIZE_GROUP_BOTH
...NULL terminated list of widgets to group together

Group horizontal and/or vertical resizing behaviour of widgets. See gtk_size_group_set_mode() on the effect of the various grouping modes.

Here is the call graph for this function:

void gxk_toplevel_activate_default ( GtkWidget *  widget)
Parameters
widgeta widget having a toplevel

Activate the default widget of the toplevel of widget.

void gxk_toplevel_delete ( GtkWidget *  widget)
Parameters
widgeta widget having a toplevel

This function is useful to produce the an effect similar to user caused window manager triggered window deletion on the toplevel of widget. Note that this function will cause window deletion despite any grabs in effect however.

Referenced by gxk_cell_renderer_popup_get_type(), and gxk_dialog_set_default().

Here is the caller graph for this function:

void gxk_toplevel_hide ( GtkWidget *  widget)
Parameters
widgeta widget having a toplevel

Hide the toplevel of widget.

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.

For sort models, gtk_tree_model_get_iter() can erroneously return TRUE which is corrected by calling this function instead.

gboolean gxk_tree_path_prev ( GtkTreePath *  path)
Parameters
pathvalid GtkTreePath

Workaround for gtk_tree_path_prev() which corrupts memory if called on empty paths (up to version Gtk+-2.4 at least).

Referenced by gxk_tree_selection_unselect_ipath().

Here is the caller graph for this function:

void gxk_tree_selection_force_browse ( GtkTreeSelection *  selection,
GtkTreeModel *  model 
)
Parameters
selectionGtkTreeSelection to watch
modeltree model used with selection

Watch deletion and insertions into empty trees to ensure valid selections across these events.

Here is the call graph for this function:

void gxk_tree_selection_select_ipath ( GtkTreeSelection *  selection,
gint  first_index,
  ... 
)
Parameters
selectionGtkTreeSelection to modify
...GtkTreePath indices

Select the row denoted by the path to be constructed from the -1 terminated indices.

Here is the call graph for this function:

void gxk_tree_selection_select_spath ( GtkTreeSelection *  selection,
const gchar *  str_path 
)
Parameters
selectionGtkTreeSelection to modify
str_patha stringified GtkTreePath

Select the row denoted by str_path.

void gxk_tree_selection_unselect_ipath ( GtkTreeSelection *  selection,
gint  first_index,
  ... 
)
Parameters
selectionGtkTreeSelection to modify
...GtkTreePath indices

Select the row denoted by the path to be constructed from the -1 terminated indices.

Here is the call graph for this function:

void gxk_tree_selection_unselect_spath ( GtkTreeSelection *  selection,
const gchar *  str_path 
)
Parameters
selectionGtkTreeSelection to modify
str_patha stringified GtkTreePath

Unselect the row denoted by str_path.

gint gxk_tree_spath_index0 ( const gchar *  strpath)
Parameters
strpathstringified GtkTreePath

Return index[0] of strpath. Useful for paths in lists, where index[0] usually corresponds to the nth row.

Here is the call graph for this function:

guint gxk_tree_view_add_column ( GtkTreeView *  tree_view,
gint  position,
GtkTreeViewColumn *  column,
GtkCellRenderer *  cell,
const gchar *  attrib_name,
  ... 
)
Parameters
tree_viewvalid GtkTreeView
positioncolumn position (or -1 to append)
columnvalid GtkTreeViewColumn
cellvalid GtkCellRenderer
...attribute mappings

Appends cell to column and adds column to tree_view at the specified position. This function takes a NULL-terminated list of attribute mappings consisting of a string and a guint, mapping cell attributes to model columns as documented in gtk_tree_view_column_add_attribute().

Referenced by gxk_tree_view_append_text_columns().

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)
Parameters
tree_viewvalid GtkTreeView
model_columnmodel column
xalignhorizontal text alignment
titlecolumn title
tooltipcolumn tooltip
edited_callbackedit notification callback
popup_callbackpopup notification callback
datadata passed in to toggled_callback
cflagsconnection flags
Returns
a newly added GtkTreeViewColumn

Add a text column with popup facility, similar to gxk_tree_view_add_text_column(). This function takes an additional argument popup_callback() which is called when the user clicks on the cells "popup" button.

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 
)
Parameters
tree_viewvalid GtkTreeView
model_columnmodel column
column_flagscolumn flags
xalignhorizontal text alignment
titlecolumn title
tooltipcolumn tooltip
edited_callbacknotification callback
datadata passed in to toggled_callback
cflagsconnection flags
Returns
a newly added GtkTreeViewColumn

Add a new column with text cell to a tree_view. The model_column indicates the column number of the tree model containing the text to be displayed, the column_flags toggle specific column characteristics (see gxk_tree_view_append_text_columns() for details) and xalign controls the horizontal cell alignment (between 0 and 1). If non-NULL, edited_callback(data) is connected with cflags (see g_signal_connect_data()) to the "::edited" signal of the text cell and the cell is made editable.

Referenced by gxk_tree_view_append_text_columns().

Here is the caller graph for this function:

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 
)
Parameters
tree_viewvalid GtkTreeView
model_columnmodel column
xalignhorizontal text alignment
titlecolumn title
tooltipcolumn tooltip
toggled_callbacknotification callback
datadata passed in to toggled_callback
cflagsconnection flags
Returns
a newly added GtkTreeViewColumn

Add a toggle button column, similar to gxk_tree_view_add_text_column(), however the model column is expected to be of type G_TYPE_BOOLEAN, and instead of an edited_callback(), this function has a void toggled_callback(GtkCellRendererToggle*, const gchar *strpath, data) callback which is connected to the "toggled" signal of the new cell.

Here is the call graph for this function:

void gxk_tree_view_append_text_columns ( GtkTreeView *  tree_view,
guint  n_cols,
  ... 
)
Parameters
tree_viewvalid GtkTreeView
n_colsnumber of columns to append
...column arguments

Add n_cols new columns with text cells to tree_view (a short hand version for multiple calls to gxk_tree_view_add_text_column()). Per column, the caller needs to supply a guint, a string, a gdouble and another string. The Arguments are used as model column number (for the text to be displayed), the column specific flags, the horizontal cell alignment (between 0 and 1) and the column title respectively.

The column_flags argument is a combination of letters that are able to switch certain characteristics on or off, currently supported are:

  • F - column is fixed in sizing;
  • A - column resizes automatically;
  • G - columns sizing behaviour is grow only;
  • S - column is sortable;
  • s - column is unsortable;
  • O - column is reorderable;
  • o - column is not reorderable;
  • R - column is user-resizable;
  • r - column is not user-resizable;
  • P - add extra padding between multiple cells of the same column;
  • p - cancel a previous #P flag;
  • # - automatically popup dialogs for popup cell renderers.

Here is the call graph for this function:

void gxk_tree_view_column_set_tip_title ( GtkTreeViewColumn *  tree_column,
const gchar *  title,
const gchar *  tooltip 
)
Parameters
tree_columnvalid GtkTreeViewColumn
titlecolumn title
tooltipcolumn tooltip

Set a tree view column title and its tooltip. This is a bug workaroud for missing tree view column API to set tooltips, so the column title or column title widget shouldn't be changed after calling this function.

Referenced by gxk_tree_view_append_text_columns().

Here is the caller graph for this function:

void gxk_tree_view_focus_row ( GtkTreeView *  tree,
gint  row 
)
Parameters
treevalid GtkTreeView
rowrow to focus

Force focus to row, causes automatic selection of row in browse mode.

void gxk_tree_view_get_bin_window_pos ( GtkTreeView *  tree,
gint *  x_p,
gint *  y_p 
)
Parameters
treevalid GtkTreeView
x_px position
y_py position

Retrieve the position of the bin window (row display area) of a GtkTreeView widget once it's realized.

gboolean gxk_tree_view_get_row_area ( GtkTreeView *  tree,
gint  row,
gint *  y_p,
gint *  height_p,
gboolean  content_area 
)
Parameters
treevalid GtkTreeView
rowrow to retrieve area coordinates for
y_py position of row
height_pheight of row
content_areawhether the cell background area or content area is returned

Retrieve the position and height of a row of a GtkTreeView widget within its bin window.

gboolean gxk_tree_view_get_row_from_coord ( GtkTreeView *  tree,
gint  y,
gint *  row_p 
)
Parameters
treevalid GtkTreeView
ybin window y coordinate
row_prow pointed to by y
Returns
whether y lies within the visible area

Retrieve the row within which y lies. If y lies outside the visible area, the row is clamped to visible rows.

Here is the call graph for this function:

gint gxk_tree_view_get_selected_row ( GtkTreeView *  tree)
Parameters
treevalid GtkTreeView
Returns
first selected row or -1

Retrieve the selected row in browse mode (for other selection modes, return the first selected row if any).

Here is the call graph for this function:

gboolean gxk_tree_view_is_row_selected ( GtkTreeView *  tree,
gint  row 
)
Parameters
treevalid GtkTreeView
rowrow to test
Returns
whether row is selected

Check whether row in tree is selected.

void gxk_type_register_generated ( guint  n_entries,
const GxkTypeGenerated entries 
)
Parameters
n_entriesnumber of generated types to register
entriesGxkTypeGenerated type descriptions

Register each of the generated type entries with the type system. Currently supported parent types are G_TYPE_ENUM and G_TYPE_FLAGS in which cases the type_data member must point to a NULL terminated array of GEnumValue or GFlagValue structures. No extra copying is performed, so the passed in structures have to persist throughout runtime.

Here is the call graph for this function:

void gxk_ungrab_pointer_and_keyboard ( GdkWindow *  window,
guint32  time 
)
Parameters
windowwindow pointer was previously grabed on

This function releases a pointer and keyboard grab acquired through gxk_grab_pointer_and_keyboard(). The window is used to release grabs on the correct display, see gdk_display_pointer_ungrab() and gdk_display_keyboard_ungrab() on this.

GtkWidget* gxk_vseparator_space_new ( gboolean  draw_seperator)
Parameters
draw_seperatorenable visible vertical seperator
Returns
visible vertical space/seperator widget

Create a vertical seperator widget. draw_seperator indicates whether the seperator should be amount to simple space or not.

void gxk_widget_activate_accel_group ( GtkWidget *  widget,
GtkAccelGroup *  accel_group 
)
Parameters
widgeta valid GtkWidget
accel_groupa valid GtkAccelGroup

Activate accelerators within accel group when widget receives key press events. This function isn't pure convenience, as it works around Gtk+ version prior to Gtk+-2.4 not exporting gtk_accel_group_activate(), gtk_accel_group_attach() and gtk_accel_group_detach().

void gxk_widget_add_font_requisition ( GtkWidget *  widget,
guint  n_chars,
guint  n_digits 
)
Parameters
widgetvalid GtkWidget
n_charsnumber of characters to request space for
n_digitsnumber of digits to request space for

This function adds up extra space to the widget size requisition. The space is an approximation of the space required by n_chars characters and n_digits digits written with the widget's font.

Here is the call graph for this function:

void gxk_widget_add_option ( gpointer  widget,
const gchar *  option,
const gchar *  value 
)
Parameters
widgetvalid GtkWidget
optionoption to add to widget
valuevalue of option (currently just "+" and "-" are supported)

Add/set a custom option of widget to a particular value. Custom options on widgets are used to attach extra information to widgets which may be useful to otherwise disjoint code portions. The actual options are implemented by means of g_option_concat(), g_option_check() and g_option_get().

Here is the call graph for this function:

gboolean gxk_widget_ancestry_viewable ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget
Returns
whether widget is visible on screen

Checks for widget to be effectively visible on screen. This function works around a bug in Gtk+ versions <= 2.4.10, with newer Gtk+ versions, (gdk_window_is_viewable(widget->window) && GTK_WIDGET_DRAWABLE(widget)) is a suitable replacement.

void gxk_widget_attached_hierarchy_changed ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget

Setting or unsetting a parent on a widget leads to emission of the ::hirarchy-changed signal on the widget and any children it contains. However, popup menus which are merely attached to widgets aren't properly notified upon such hirarchy changes, for this gxk_widget_attached_hierarchy_changed() is provided. On menus which got attached to a widget with gxk_menu_attach_as_popup(), the signal ::attached-hirarchy-changed is emitted if ::hirarchy-changed is emitted on the widget, by calling gxk_widget_attached_hierarchy_changed() on the menu.

Referenced by gxk_widget_attached_hierarchy_changed().

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean gxk_widget_check_option ( gpointer  widget,
const gchar *  option 
)
Parameters
widgetvalid GtkWidget
optionoption to check for
Returns
whether option is set

Test whether the custom option is set on widget.

GtkWidget* gxk_widget_find_level_ordered ( GtkWidget *  toplevel,
const gchar *  name 
)
Parameters
toplevelvalid GtkWidget
namename of the widget being looked for
Returns
a widget named name or NULL

Search for a widget named name, child of toplevel. The search is ordered by looking at all children of a container before increasing depth. This function also considers submenus in menu items "children", as well as popup menus attached via gxk_menu_attach_as_popup() (not ones attached via gtk_menu_attach_to_widget() though, since Gtk+ doesn't store/export the neccessary information).

Referenced by gxk_radget_find(), and gxk_radget_find_area().

Here is the caller graph for this function:

void gxk_widget_force_bg_clear ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Enforce drawing of a widget's background. Some widgets do not explicitely draw their background, but simply draw themsleves on top of their parent's background. This function forces the widget into drawing its background according to its style settings.

Here is the call graph for this function:

GtkWidget* gxk_widget_get_attach_toplevel ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget

This function returns the topmost container widget for widget, much like gtk_widget_get_toplevel(). The only difference is that for menus, not the immediate parent is returned (the GtkWindow used to display a menu) but the tree walk continues on the menu item using the menu as submenu. For example, for a window containing a menubar with submenus, gtk_widget_get_toplevel() invoked on one of the menu items will return the GtkWindow widgets for the corresponding submenus, while gxk_widget_get_attach_toplevel() will return the actual GtkWindow containing the menubar.

Referenced by gxk_menu_check_sensitive().

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* gxk_widget_get_latent_tooltip ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget
Returns
descriptive tooltip

Retrieve the latent tooltip for widget. See gxk_widget_set_latent_tooltip() for the purpose of latent tooltips.

const gchar* gxk_widget_get_options ( gpointer  widget)
Parameters
widgetvalid GtkWidget
Returns
custom options set on the widget

This function returns the set of custom options currently set on the widget.

gboolean gxk_widget_has_ancestor ( gpointer  widget,
gpointer  ancestor 
)
Parameters
widgetvalid GtkWidget
ancestorvalid GtkWidget
Returns
whether ancestor is ancestor of widget

This function checks whether widget and ancestor are equal, or whether ancestor is an ancestor of widget, in the same way gtk_widget_is_ancestor() tests it.

void gxk_widget_make_insensitive ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

This function is euqivalent to gtk_widget_set_sensitive (widget, FALSE); It exists as a convenient signal connection callback.

Referenced by gxk_widget_modify_as_title().

Here is the caller graph for this function:

void gxk_widget_make_sensitive ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

This function is euqivalent to gtk_widget_set_sensitive (widget, TRUE); It exists as a convenient signal connection callback.

void gxk_widget_modify_as_title ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Modify the widget and it's style, so that it is insensitive, but doesn't quite look that way. Useful for inactive title menu items in menus (widget should be the menu item's label).

Here is the call graph for this function:

void gxk_widget_modify_base_as_bg ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Modify the widget's base background (used by list and text widgets) to look like an ordinary widget background. This is useful if a list, text or similar widget shouldn't stand out as such, e.g. when the GtkTextView widget displaying a long non-editable text should look similar to a GtkLabel.

Referenced by gxk_scroll_text_create().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_widget_modify_bg_as_active ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Modify the widget's background to look like the background of depressed button.

Here is the call graph for this function:

void gxk_widget_modify_bg_as_base ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Modify the widget's background to look like the background of a text or list widget (usually white). This is useful if a hbox or similar widget is used to "simulate" a list or text widget.

Here is the call graph for this function:

void gxk_widget_modify_normal_bg_as_base ( GtkWidget *  widget)
Parameters
widgeta valid GtkWidget

Modify the widget's background like gxk_widget_modify_bg_as_base() does, as long as the widget isn't activated or selected.

Here is the call graph for this function:

void gxk_widget_proxy_requisition ( GtkWidget *  widget,
gdouble  xscale,
gdouble  yscale 
)
Parameters
widgetvalid GtkWidget
xscalefractional factor for screen width
yscalefractional factor for screen height

Proxy the size requisition of widget through the width-request and height-request properties. This is useful only for immediate children of a GtkScrolledWindow (e.g. a GtkViewport), to have the GtkScrolledWindow honour the widgets size requisition. If xscale or yscale is passed as -1, the corresponding dimension width-request or height-request is left unset. If xscale or yscale is passed a value between 0 and +1, it is interpreted as a fraction of the screen width or screen height to constrain the corresponding requested dimension.

Referenced by gxk_scrolled_window_create().

Here is the caller graph for this function:

void gxk_widget_regulate ( GtkWidget *  widget,
gboolean  sensitive,
gboolean  active 
)
Parameters
widgetvalid GtkWidget
sensitivewhether widget should be sensitive
activewhether widget should be active

Regulate a widgets state. The sensitive parameter controls sensitivity like gtk_widget_set_sensitive() and active controls whether the widget is active like gtk_toggle_button_set_active() or gtk_check_menu_item_set_active(). For menu items, the menu item is also made the active widget in its parent menu, possibly affecting option menus.

Here is the call graph for this function:

gboolean gxk_widget_regulate_uses_active ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget
Returns
TRUE if gxk_widget_regulate() uses active for widget

Check whether gxk_widget_regulate() will actually make use of its active argument for widget. If not, FALSE is returned, and gxk_widget_regulate() is fully equivalent to just gtk_widget_set_sensitive().

void gxk_widget_request_hclient_height ( GtkWidget *  widget,
GtkWidget *  client 
)
Parameters
widgetvalid GtkWidget
clientvalid GtkWidget

Request the horizontal size of client as height for widget.

void gxk_widget_request_vclient_width ( GtkWidget *  widget,
GtkWidget *  client 
)
Parameters
widgetvalid GtkWidget
clientvalid GtkWidget

Request the vertical size of client as width for widget.

void gxk_widget_set_latent_tooltip ( GtkWidget *  widget,
const gchar *  tooltip 
)
Parameters
widgeta valid GtkWidget
tooltipdescriptive tooltip

Set the latent tooltip for this widget. A latent tooltip will not be shown on mouse over for this widget. Instead it can be querried by other widgets via gxk_widget_get_latent_tooltip() to be shown when appropriate. For instance, GxkMenuButton shows the latent tooltip of its currently selected menu item.

Referenced by gxk_widget_set_tooltip().

Here is the caller graph for this function:

void gxk_widget_set_tooltip ( gpointer  widget,
const gchar *  tooltip 
)
Parameters
widgeta valid GtkWidget
tooltipdescriptive tooltip

As a convenience function, this sets the tooltip for widget on GXK_TOOLTIPS, if widget is supposed to have tooltips according to the system configuration and also sets the latent tooltip.

Referenced by bst_gmask_foreach(), gxk_idle_unrealize_widget(), and gxk_tree_view_add_toggle_column().

Here is the call graph for this function:

Here is the caller graph for this function:

void gxk_widget_showraise ( GtkWidget *  widget)
Parameters
widgeta valid widget

Show the widget. If the widget is a toplevel, also raise its window to top.

Referenced by gxk_cell_renderer_popup_get_type().

Here is the caller graph for this function:

gboolean gxk_widget_viewable ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget RETURNS: TRUE if the widget is viewable, FALSE otherwise

Check whether a widget is viewable by verifying the mapped state of the widget and all its parent widgets.

Referenced by gxk_dialog_set_default().

Here is the caller graph for this function:

void gxk_widget_viewable_changed ( GtkWidget *  widget)
Parameters
widgetvalid GtkWidget

A widget should call this function if it changed the mapped state of one of its children (or if it is a toplevel and gets show or hidden) to emit the ::viewable-changed signal on the related sub-tree. GxkDialog properly emits this signal if show or hidden, containers like GtkNotebook need this function be explicitely connected to their ::switch-page signal, in order for their children to get properly notified.

Referenced by gxk_dialog_set_default(), and gxk_widget_viewable_changed().

Here is the call graph for this function:

Here is the caller graph for this function:

GtkAccelGroup* gxk_window_get_menu_accel_group ( GtkWindow *  window)
Parameters
windowvalid GtkWindow
Returns
valid GtkAccelGroup

This function hands out an accel group for window specifically targeted at holding accelerators of menu items in this window.

Referenced by gxk_menu_check_sensitive().

Here is the caller graph for this function:

void gxk_window_process_next ( GdkWindow *  window,
gboolean  update_children 
)
Parameters
windowvalid GdkWindow
update_childrenwhether to also process updates for child windows

Cause window to be updated asyncronously as soon as possible via gdk_window_process_updates().

void gxk_window_set_cursor_type ( GdkWindow *  window,
GdkCursorType  cursor 
)
Parameters
windowvalid GdkWindow*
cursorGdkCursorType cursor type

Set a window's cursor type. If GXK_DEFAULT_CURSOR is specified the window's cursor will be inherited from it's parent.