mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
bindings: Fix code snippet
Just use a more realistic example, adapted from gtklistbox.c
This commit is contained in:
parent
da3d2593b2
commit
1c232ed583
@ -1005,9 +1005,14 @@ _gtk_binding_entry_add_signall (GtkBindingSet *binding_set,
|
|||||||
* ## Adding a Key Binding
|
* ## Adding a Key Binding
|
||||||
*
|
*
|
||||||
* |[<!-- language="C" -->
|
* |[<!-- language="C" -->
|
||||||
* gtk_binding_entry_add_signal (binding_set, keyval, modmask,
|
* GtkBindingSet *binding_set;
|
||||||
* "move-cursor", 3,
|
* GdkModifierType modmask = GDK_CONTROL_MASK;
|
||||||
* G_TYPE_ENUM, step,
|
* int count = 1;
|
||||||
|
* gtk_binding_entry_add_signal (binding_set,
|
||||||
|
* GDK_KEY_space,
|
||||||
|
* modmask,
|
||||||
|
* "move-cursor", 2,
|
||||||
|
* GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_PAGES,
|
||||||
* G_TYPE_INT, count,
|
* G_TYPE_INT, count,
|
||||||
* G_TYPE_BOOLEAN, FALSE);
|
* G_TYPE_BOOLEAN, FALSE);
|
||||||
* ]|
|
* ]|
|
||||||
|
Loading…
Reference in New Issue
Block a user