BEAST/BSE - Better Audio System and Sound Engine
0.8.2
|
Go to the source code of this file.
Classes | |
struct | GxkTypeGenerated |
struct | GxkColorDot |
struct | GxkColorDots |
Defines | |
#define | g_object_set_int |
#define | g_object_get_int |
#define | GXK_DEFAULT_CURSOR |
Indicates default (inherited) cursor. | |
#define | GTK_STYLE_THICKNESS(s, xy) |
Functions | |
gboolean | gxk_widget_ancestry_viewable (GtkWidget *widget) |
void | gxk_cell_editable_is_focus_handler (GtkCellEditable *ecell) |
gboolean | gxk_cell_editable_canceled (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_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) |
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 (GtkMenu *menu, GtkWidget *widget) |
void | gxk_menu_attach_as_popup_with_func (GtkMenu *menu, GtkWidget *widget, GtkMenuDetachFunc mdfunc) |
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) |
void | gxk_widget_add_option (gpointer widget, const gchar *option, const gchar *value) |
gboolean | gxk_widget_check_option (gpointer widget, const gchar *option) |
const gchar * | gxk_widget_get_options (gpointer widget) |
void | gxk_window_set_menu_accel_group (GtkWindow *window, GtkAccelGroup *agroup) |
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 slot) |
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) |
GtkWidget * | gxk_file_selection_heal (GtkFileSelection *fs) |
GtkWidget * | gxk_file_selection_split (GtkFileSelection *fs, GtkWidget **bbox) |
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 *string) |
const gchar * | gxk_factory_path_get_leaf (const gchar *path) |
gchar * | gxk_factory_path_unescape_uline (const gchar *path) |
void | gxk_widget_viewable_changed (GtkWidget *widget) |
gboolean | gxk_widget_viewable (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) |
Convenience variant of gdk_draw_line() to draw a horizontal line. | |
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. | |
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) |
GxkColorDots * | gxk_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_widget_showraise (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_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) |
void | gxk_notebook_append (GtkNotebook *notebook, GtkWidget *child, const gchar *label, gboolean fillexpand) |
GtkWidget * | gtk_box_get_nth_child (GtkBox *box, gint pos) |
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_toplevel_delete (GtkWidget *widget) |
void | gxk_toplevel_hide (GtkWidget *widget) |
void | gxk_toplevel_activate_default (GtkWidget *widget) |
GtkWidget * | gxk_parent_find_descendant (GtkWidget *parent, GType descendant_type) |
void | gxk_widget_modify_as_title (GtkWidget *widget) |
void | gxk_widget_modify_normal_bg_as_base (GtkWidget *widget) |
void | gxk_widget_modify_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,...) G_GNUC_NULL_TERMINATED |
gint | gxk_tree_spath_index0 (const gchar *strpath) |
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. | |
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,...) G_GNUC_NULL_TERMINATED |
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_column_set_tip_title (GtkTreeViewColumn *tree_column, const gchar *title, const gchar *tooltip) |
void | gxk_tree_view_set_editable (GtkTreeView *tview, gboolean maybe_editable) |
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) |
gboolean | gxk_tree_view_get_row_from_coord (GtkTreeView *tree, gint y, gint *row_p) |
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_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) |
gchar * | gxk_zfile_uncompress (guint uncompressed_size, const unsigned char *cdata, guint cdata_size) |
gdouble g_object_get_double | ( | gpointer | object, |
const gchar * | name | ||
) |
object | a valid GObject |
name | name of the double value to retrieve |
Convenience variant of g_object_get_data() to retrieve a double instead of a pointer.
glong g_object_get_long | ( | gpointer | object, |
const gchar * | name | ||
) |
object | a valid GObject |
name | name of the long value to retrieve |
Convenience variant of g_object_get_data() to retrieve a long instead of a pointer.
void g_object_set_double | ( | gpointer | object, |
const gchar * | name, | ||
gdouble | v_double | ||
) |
object | a valid GObject |
name | name of the double value to set |
v_double | the actual value |
Convenience variant of g_object_set_data() to set a double instead of a pointer.
void g_object_set_long | ( | gpointer | object, |
const gchar * | name, | ||
glong | v_long | ||
) |
object | a valid GObject |
name | name of the long value to set |
v_long | the actual value |
Convenience variant of g_object_set_data() to set a long instead of a pointer.
GdkColor gdk_color_from_argb | ( | guint | rgb_value | ) |
rgb_value | 0xAaRrGgBb 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 | ) |
rgb_value | 0xRrGgBb 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 | ) |
rgb_value | 0xRrGgBbAa 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.
GtkWidget* gtk_box_get_nth_child | ( | GtkBox * | box, |
gint | pos | ||
) |
box | a valid GtkBox |
pos | position of the requested child |
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 | ) |
notebook | valid GtkNotebook |
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 | ) |
ecell | valid GtkCellEditable |
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 | ) |
ecell | valid GtkCellEditable |
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.
void gxk_color_alloc | ( | GdkColormap * | colormap, |
GdkColor * | color | ||
) |
colormap | valid GdkColormap |
color | valid GdkColor |
Allocate a color like gdk_color_alloc() with automated error checking.
void gxk_expander_connect_to_widget | ( | GtkWidget * | expander, |
GtkWidget * | widget | ||
) |
expander | valid GtkWidget with boolean ::expanded property |
widget | valid GtkWidget |
Setup signal connections, so that the visibility of widget is controlled by the ::expanded property of expander.
GtkWidget* gxk_file_selection_heal | ( | GtkFileSelection * | fs | ) |
fs | valid GtkFileSelection |
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.
gboolean gxk_grab_pointer_and_keyboard | ( | GdkWindow * | window, |
gboolean | owner_events, | ||
GdkEventMask | event_mask, | ||
GdkWindow * | confine_to, | ||
GdkCursor * | cursor, | ||
guint32 | time | ||
) |
window | the window receiving the grab |
owner_events | if TRUE, events will be reported relative to window |
event_mask | mask of interesting events |
confine_to | limits the pointer to the specified window |
cursor | cursor to use for the duration of the grab |
time | event time when grab is requested |
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 | ) |
widget | a 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 | ) |
widget | a 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 | ) |
widget | a 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.
GtkWidget* gxk_item_factory_get_item | ( | GtkItemFactory * | ifactory, |
const gchar * | path | ||
) |
ifactory | valid GtkItemFactory |
path | item factory path |
This function strips unescaped underlines ('_') from path and then calls gtk_item_factory_get_item().
GtkWidget* gxk_item_factory_get_widget | ( | GtkItemFactory * | ifactory, |
const gchar * | path | ||
) |
ifactory | valid GtkItemFactory |
path | item factory path |
This function strips unescaped underlines ('_') from path and then calls gtk_item_factory_get_widget().
GtkWidget* gxk_item_factory_sensitize | ( | GtkItemFactory * | ifactory, |
const gchar * | path, | ||
gboolean | sensitive | ||
) |
ifactory | valid GtkItemFactory |
path | item factory path |
sensitive | whether menu item should be sensitive |
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.
void gxk_label_set_attributes | ( | GtkLabel * | label, |
... | |||
) |
label | a 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().
void gxk_menu_attach_as_popup | ( | GtkMenu * | menu, |
GtkWidget * | widget | ||
) |
menu | valid GtkMenu |
menu_item | valid 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.
void gxk_menu_attach_as_popup_with_func | ( | GtkMenu * | menu, |
GtkWidget * | widget, | ||
GtkMenuDetachFunc | mdfunc | ||
) |
menu | valid GtkMenu |
menu_item | valid GtkMenuItem |
mdfunc | a GtkMenuDetachFunc func as in gtk_menu_attach_to_widget() |
Variant of gxk_menu_attach_as_popup() which preserves the GtkMenuDetachFunc.
void gxk_menu_attach_as_submenu | ( | GtkMenu * | menu, |
GtkMenuItem * | menu_item | ||
) |
menu | valid GtkMenu |
menu_item | valid 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.
gboolean gxk_menu_check_sensitive | ( | GtkMenu * | menu | ) |
menu | valid GtkMenu |
This function tests whether a menu contains selectable menu items. It can be used to determine sensitivity for menu items containing submenus.
void gxk_menu_set_active | ( | GtkMenu * | menu, |
GtkWidget * | child | ||
) |
menu | valid GtkMenu |
child | an 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.
void gxk_notebook_append | ( | GtkNotebook * | notebook, |
GtkWidget * | child, | ||
const gchar * | tab_text, | ||
gboolean | fillexpand | ||
) |
notebook | a valid notebook |
child | a valid parent-less widget |
label | notebook page name |
fillexpand | whether 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 | ) |
widget | valid GtkWidget |
Find the innermost notebook page widget that contains widget.
GtkWidget* gxk_notebook_descendant_get_tab | ( | GtkWidget * | widget | ) |
widget | valid GtkWidget |
Find the innermost notebook page widget that contains widget and return its tabulator widget.
void gxk_notebook_set_current_page_widget | ( | GtkNotebook * | notebook, |
GtkWidget * | page | ||
) |
notebook | valid GtkNotebook |
page | notebook 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 | ||
) |
option_menu | valid GtkOptionMenu |
menu | valid 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 | ||
) |
child | valid GtkWidget |
shadow_type | shadow around the GtkViewport |
xrequest | fractional factor for screen width |
yrequest | fractional factor for screen height |
spare_space | whether to call gxk_scrolled_window_spare_space() |
Create a GtkScrolledWindow with a GtkViewport as parent of child. The xrequest and yrequest arguments are passed on to gxk_widget_proxy_requisition().
void gxk_scrolled_window_spare_space | ( | GtkScrolledWindow * | scwin | ) |
scwin | valid 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).
void gxk_scrolled_window_unspare_space | ( | GtkScrolledWindow * | scwin | ) |
scwin | valid GtkScrolledWindow |
Undo the effect of a call to gxk_scrolled_window_spare_space().
gboolean gxk_signal_handler_exists | ( | gpointer | instance, |
const gchar * | detailed_signal, | ||
GCallback | callback, | ||
gpointer | data | ||
) |
instance | object instance with signals |
detailed_signal | signal name |
callback | custom callback function |
data | callback data |
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.
gboolean gxk_signal_handler_pending | ( | gpointer | instance, |
const gchar * | detailed_signal, | ||
GCallback | callback, | ||
gpointer | data | ||
) |
instance | object instance with signals |
detailed_signal | signal name |
callback | custom callback function |
data | callback data |
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.
void gxk_size_group | ( | GtkSizeGroupMode | sgmode, |
gpointer | first_widget, | ||
... | |||
) |
sgmode | size 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.
void gxk_toplevel_activate_default | ( | GtkWidget * | widget | ) |
widget | a widget having a toplevel |
Activate the default widget of the toplevel of widget.
void gxk_toplevel_delete | ( | GtkWidget * | widget | ) |
widget | a 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.
void gxk_toplevel_hide | ( | GtkWidget * | widget | ) |
widget | a 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 | ) |
path | valid GtkTreePath |
Workaround for gtk_tree_path_prev() which corrupts memory if called on empty paths (up to version Gtk+-2.4 at least).
void gxk_tree_selection_force_browse | ( | GtkTreeSelection * | selection, |
GtkTreeModel * | model | ||
) |
selection | GtkTreeSelection to watch |
model | tree model used with selection |
Watch deletion and insertions into empty trees to ensure valid selections across these events.
void gxk_tree_selection_select_ipath | ( | GtkTreeSelection * | selection, |
gint | first_index, | ||
... | |||
) |
selection | GtkTreeSelection to modify |
...,: | GtkTreePath indices |
Select the row denoted by the path to be constructed from the -1 terminated indices.
void gxk_tree_selection_select_spath | ( | GtkTreeSelection * | selection, |
const gchar * | str_path | ||
) |
selection | GtkTreeSelection to modify |
str_path | a stringified GtkTreePath |
Select the row denoted by str_path.
void gxk_tree_selection_unselect_ipath | ( | GtkTreeSelection * | selection, |
gint | first_index, | ||
... | |||
) |
selection | GtkTreeSelection to modify |
...,: | GtkTreePath indices |
Select the row denoted by the path to be constructed from the -1 terminated indices.
void gxk_tree_selection_unselect_spath | ( | GtkTreeSelection * | selection, |
const gchar * | str_path | ||
) |
selection | GtkTreeSelection to modify |
str_path | a stringified GtkTreePath |
Unselect the row denoted by str_path.
gint gxk_tree_spath_index0 | ( | const gchar * | strpath | ) |
strpath | stringified GtkTreePath |
Return index[0] of strpath. Useful for paths in lists, where index[0] usually corresponds to the nth row.
guint gxk_tree_view_add_column | ( | GtkTreeView * | tree_view, |
gint | position, | ||
GtkTreeViewColumn * | column, | ||
GtkCellRenderer * | cell, | ||
const gchar * | attrib_name, | ||
... | |||
) |
tree_view | valid GtkTreeView |
position | column position (or -1 to append) |
column | valid GtkTreeViewColumn |
cell | valid 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().
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 | ||
) |
tree_view | valid GtkTreeView |
model_column | model column |
xalign | horizontal text alignment |
title | column title |
tooltip | column tooltip |
edited_callback | edit notification callback |
popup_callback | popup notification callback |
data | data passed in to toggled_callback |
cflags | connection flags |
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 | ||
) |
tree_view | valid GtkTreeView |
model_column | model column |
column_flags | column flags |
xalign | horizontal text alignment |
title | column title |
tooltip | column tooltip |
edited_callback | notification callback |
data | data passed in to toggled_callback |
cflags | connection flags |
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.
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 | ||
) |
tree_view | valid GtkTreeView |
model_column | model column |
xalign | horizontal text alignment |
title | column title |
tooltip | column tooltip |
toggled_callback | notification callback |
data | data passed in to toggled_callback |
cflags | connection flags |
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.
void gxk_tree_view_append_text_columns | ( | GtkTreeView * | tree_view, |
guint | n_cols, | ||
... | |||
) |
tree_view | valid GtkTreeView |
n_cols | number 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. void gxk_tree_view_column_set_tip_title | ( | GtkTreeViewColumn * | tree_column, |
const gchar * | title, | ||
const gchar * | tooltip | ||
) |
tree_column | valid GtkTreeViewColumn |
title | column title |
tooltip | column 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.
void gxk_tree_view_focus_row | ( | GtkTreeView * | tree, |
gint | row | ||
) |
tree | valid GtkTreeView |
row | row 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 | ||
) |
tree | valid GtkTreeView |
x_p | x position |
y_p | y 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 | ||
) |
tree | valid GtkTreeView |
row | row to retrieve area coordinates for |
y_p | y position of row |
height_p | height of row |
content_area | whether 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 | ||
) |
tree | valid GtkTreeView |
y | bin window y coordinate |
row_p | row pointed to by y |
Retrieve the row within which y lies. If y lies outside the visible area, the row is clamped to visible rows.
gint gxk_tree_view_get_selected_row | ( | GtkTreeView * | tree | ) |
tree | valid GtkTreeView |
Retrieve the selected row in browse mode (for other selection modes, return the first selected row if any).
gboolean gxk_tree_view_is_row_selected | ( | GtkTreeView * | tree, |
gint | row | ||
) |
tree | valid GtkTreeView |
row | row to test |
Check whether row in tree is selected.
void gxk_type_register_generated | ( | guint | n_entries, |
const GxkTypeGenerated * | entries | ||
) |
n_entries | number of generated types to register |
entries | GxkTypeGenerated 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.
void gxk_ungrab_pointer_and_keyboard | ( | GdkWindow * | window, |
guint32 | time | ||
) |
window | window 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 | ) |
draw_seperator | enable visible vertical seperator |
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 | ||
) |
widget | a valid GtkWidget |
accel_group | a 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 | ||
) |
widget | valid GtkWidget |
n_chars | number of characters to request space for |
n_digits | number 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.
void gxk_widget_add_option | ( | gpointer | widget, |
const gchar * | option, | ||
const gchar * | value | ||
) |
widget | valid GtkWidget |
option | option to add to widget |
value | value 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().
gboolean gxk_widget_ancestry_viewable | ( | GtkWidget * | widget | ) |
widget | a valid GtkWidget |
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 | ) |
widget | valid 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.
gboolean gxk_widget_check_option | ( | gpointer | widget, |
const gchar * | option | ||
) |
widget | valid GtkWidget |
option | option to check for |
Test whether the custom option is set on widget.
GtkWidget* gxk_widget_find_level_ordered | ( | GtkWidget * | toplevel, |
const gchar * | name | ||
) |
toplevel | valid GtkWidget |
name | name of the widget being looked for |
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).
void gxk_widget_force_bg_clear | ( | GtkWidget * | widget | ) |
widget | a 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.
GtkWidget* gxk_widget_get_attach_toplevel | ( | GtkWidget * | widget | ) |
widget | valid 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.
const gchar* gxk_widget_get_latent_tooltip | ( | GtkWidget * | widget | ) |
widget | a valid GtkWidget |
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 | ) |
widget | valid GtkWidget |
This function returns the set of custom options currently set on the widget.
gboolean gxk_widget_has_ancestor | ( | gpointer | widget, |
gpointer | ancestor | ||
) |
widget | valid GtkWidget |
ancestor | valid GtkWidget |
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 | ) |
widget | a valid GtkWidget |
This function is euqivalent to gtk_widget_set_sensitive (widget, FALSE); It exists as a convenient signal connection callback.
void gxk_widget_make_sensitive | ( | GtkWidget * | widget | ) |
widget | a 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 | ) |
widget | a 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).
void gxk_widget_modify_base_as_bg | ( | GtkWidget * | widget | ) |
widget | a 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.
void gxk_widget_modify_bg_as_active | ( | GtkWidget * | widget | ) |
widget | a valid GtkWidget |
Modify the widget's background to look like the background of depressed button.
void gxk_widget_modify_bg_as_base | ( | GtkWidget * | widget | ) |
widget | a 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.
void gxk_widget_modify_normal_bg_as_base | ( | GtkWidget * | widget | ) |
widget | a 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.
void gxk_widget_proxy_requisition | ( | GtkWidget * | widget, |
gdouble | xscale, | ||
gdouble | yscale | ||
) |
widget | valid GtkWidget |
xscale | fractional factor for screen width |
yscale | fractional 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.
void gxk_widget_regulate | ( | GtkWidget * | widget, |
gboolean | sensitive, | ||
gboolean | active | ||
) |
widget | valid GtkWidget |
sensitive | whether widget should be sensitive |
active | whether 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.
gboolean gxk_widget_regulate_uses_active | ( | GtkWidget * | widget | ) |
widget | valid GtkWidget |
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 | ||
) |
widget | valid GtkWidget |
client | valid GtkWidget |
Request the horizontal size of client as height for widget.
void gxk_widget_request_vclient_width | ( | GtkWidget * | widget, |
GtkWidget * | client | ||
) |
widget | valid GtkWidget |
client | valid GtkWidget |
Request the vertical size of client as width for widget.
void gxk_widget_set_latent_tooltip | ( | GtkWidget * | widget, |
const gchar * | tooltip | ||
) |
widget | a valid GtkWidget |
tooltip | descriptive 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.
void gxk_widget_set_tooltip | ( | gpointer | widget, |
const gchar * | tooltip | ||
) |
widget | a valid GtkWidget |
tooltip | descriptive 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.
void gxk_widget_showraise | ( | GtkWidget * | widget | ) |
widget | a valid widget |
Show the widget. If the widget is a toplevel, also raise its window to top.
gboolean gxk_widget_viewable | ( | GtkWidget * | widget | ) |
widget | valid 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.
void gxk_widget_viewable_changed | ( | GtkWidget * | widget | ) |
widget | valid 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.
GtkAccelGroup* gxk_window_get_menu_accel_group | ( | GtkWindow * | window | ) |
window | valid GtkWindow |
This function hands out an accel group for window specifically targeted at holding accelerators of menu items in this window.
void gxk_window_process_next | ( | GdkWindow * | window, |
gboolean | update_children | ||
) |
window | valid GdkWindow |
update_children | whether 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 | ||
) |
window | valid GdkWindow* |
cursor | GdkCursorType 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.