Struct

GtkBindingSet

Description [src]

struct GtkBindingSet {
  gchar* set_name;
  gint priority;
  GSList* widget_path_pspecs;
  GSList* widget_class_pspecs;
  GSList* class_branch_pspecs;
  GtkBindingEntry* entries;
  GtkBindingEntry* current;
  guint parsed : 1;
}

A binding set maintains a list of activatable key bindings. A single binding set can match multiple types of widgets. Similar to style contexts, can be matched by any information contained in a widgets GtkWidgetPath. When a binding within a set is matched upon activation, an action signal is emitted on the target widget to carry out the actual activation.

Structure members
set_name

Unique name of this binding set.

priority

Unused.

widget_path_pspecs

Unused.

widget_class_pspecs

Unused.

class_branch_pspecs

Unused.

entries

The key binding entries in this binding set.

current

Implementation detail.

parsed

Whether this binding set stems from a CSS file and is reset upon theme changes.

Functions

gtk_binding_set_by_class

This function returns the binding set named after the type name of the passed in class structure. New binding sets are created on demand by this function.

gtk_binding_set_find

Find a binding set by its globally unique name.

gtk_binding_set_new

GTK+ maintains a global list of binding sets. Each binding set has a unique name which needs to be specified upon creation.

Instance methods

gtk_binding_set_activate

Find a key binding matching keyval and modifiers within binding_set and activate the binding on object.

gtk_binding_set_add_path

This function was used internally by the GtkRC parsing mechanism to assign match patterns to GtkBindingSet structures.

deprecated: 3.0