Commit ca4efb00 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Daniel Boles

bindings: Fix code snippet

Just use a more realistic example, adapted from gtklistbox.c
parent 7525a11a
......@@ -1005,9 +1005,14 @@ _gtk_binding_entry_add_signall (GtkBindingSet *binding_set,
* ## Adding a Key Binding
*
* |[<!-- language="C" -->
* gtk_binding_entry_add_signal (binding_set, keyval, modmask,
* "move-cursor", 3,
* G_TYPE_ENUM, step,
* GtkBindingSet *binding_set;
* GdkModifierType modmask = GDK_CONTROL_MASK;
* 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_BOOLEAN, FALSE);
* ]|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment