[gtk+/gtk-3-20] docs: Update examples of matching key bindings



commit 1e7ded6a477adf69d8bc66b8616fb5382441a16e
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon May 9 12:45:34 2016 +0100

    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 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index f3c3a73..54515d3 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;
  * }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]