[gtk+/key-themes] Make documentation match behaviour



commit 29e539d97044f7987c0791e0e029619d41b698fb
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 28 18:08:57 2011 -0500

    Make documentation match behaviour

 gtk/gtkcssprovider.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 7690a14..1c5441f 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -303,12 +303,14 @@
  *   unbind "End";
  * };
  *
- * &commat;binding-set binding-set1 {
+ * &commat;binding-set binding-set2 {
  *   bind "&lt;alt&gt;Right" { "move-cursor" (visual-positions, 3, 0) };
+ *   bind "&lt;alt&gt;KP_space" { "delete-from-cursor" (whitespace, 1)
+ *                                "insert-at-cursor" (" ") };
  * };
  *
  * GtkEntry {
- *   gtk-binding-set: binding-set1, binding-set2;
+ *   gtk-key-bindings: binding-set1, binding-set2;
  * }
  * </programlisting>
  * </example>
@@ -3303,11 +3305,11 @@ parse_rule (GtkCssProvider  *css_provider,
             }
 
           binding_set_name = scanner->value.v_identifier;
-          binding_set = gtk_binding_set_find (scanner->value.v_identifier);
+          binding_set = gtk_binding_set_find (binding_set_name);
 
           if (!binding_set)
             {
-              binding_set = gtk_binding_set_new (scanner->value.v_identifier);
+              binding_set = gtk_binding_set_new (binding_set_name);
               binding_set->parsed = TRUE;
             }
 



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