Commit bf9e59e3 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Make documentation match behaviour

parent c0b80530
......@@ -303,12 +303,14 @@
* unbind "End";
* };
*
* @binding-set binding-set1 {
* @binding-set binding-set2 {
* bind "<alt>Right" { "move-cursor" (visual-positions, 3, 0) };
* bind "<alt>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;
}
......
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