summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-05-09 12:45:34 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-05-09 12:46:35 +0100
commit1e7ded6a477adf69d8bc66b8616fb5382441a16e (patch)
tree5150d4b028d20cb53b9bf57d002a62e7db265e00
parent207b793316a90faff00d5ea6fbe483d5a184d066 (diff)
downloadgtk+-1e7ded6a477adf69d8bc66b8616fb5382441a16e.tar.gz
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
-rw-r--r--gtk/gtkbindings.c15
1 files 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:
*
- * |[
+ * |[ <!-- language="CSS" -->
* @binding-set MoveCursor3
* {
* bind "<Control>Right" { "move-cursor" (visual-positions, 3, 0) };
* bind "<Control>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.
*
- * |[
+ * |[ <!-- language="CSS" -->
* @binding-set MoveCursor3
* {
* bind "<Control>Right" { };
* bind "<Control>Left" { };
* }
- * GtkEntry
+ *
+ * entry
* {
* -gtk-key-bindings: MoveCursor3;
* }
@@ -114,13 +116,14 @@
* from activating its default bindings, the “unbind” keyword can be used
* like this:
*
- * |[
+ * |[ <!-- language="CSS" -->
* @binding-set MoveCursor3
* {
* unbind "<Control>Right";
* unbind "<Control>Left";
* }
- * GtkEntry
+ *
+ * entry
* {
* -gtk-key-bindings: MoveCursor3;
* }