Make documentation match behaviour

This commit is contained in:
Matthias Clasen 2011-01-28 18:08:57 -05:00
parent c0b8053089
commit bf9e59e392

View File

@ -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;
}