From 1e7ded6a477adf69d8bc66b8616fb5382441a16e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 9 May 2016 12:45:34 +0100 Subject: docs: Update examples of matching key bindings The selector for matching GtkEntry has changed to `entry` after 3.20. https://bugzilla.gnome.org/show_bug.cgi?id=766166 --- gtk/gtkbindings.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c index f3c3a730f5..54515d3e0d 100644 --- a/gtk/gtkbindings.c +++ b/gtk/gtkbindings.c @@ -69,13 +69,14 @@ * movement occurs in 3-character steps), the following binding can be * used: * - * |[ + * |[ * @binding-set MoveCursor3 * { * bind "Right" { "move-cursor" (visual-positions, 3, 0) }; * bind "Left" { "move-cursor" (visual-positions, -3, 0) }; * } - * GtkEntry + * + * entry * { * -gtk-key-bindings: MoveCursor3; * } @@ -91,13 +92,14 @@ * works as expected. The same mechanism can not be used to “unbind” * existing bindings, however. * - * |[ + * |[ * @binding-set MoveCursor3 * { * bind "Right" { }; * bind "Left" { }; * } - * GtkEntry + * + * entry * { * -gtk-key-bindings: MoveCursor3; * } @@ -114,13 +116,14 @@ * from activating its default bindings, the “unbind” keyword can be used * like this: * - * |[ + * |[ * @binding-set MoveCursor3 * { * unbind "Right"; * unbind "Left"; * } - * GtkEntry + * + * entry * { * -gtk-key-bindings: MoveCursor3; * } -- cgit v1.2.1