Commit c70b65f0 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Matthias Clasen
Browse files

Document @binding-set and the gtk-key-bindings css parser property

parent b5bee0a8
...@@ -291,6 +291,28 @@ ...@@ -291,6 +291,28 @@
* </programlisting> * </programlisting>
* </example> * </example>
* <para> * <para>
* In order to extend key bindings affecting different widgets, GTK+
* supports the &commat;binding-set rule to parse a set of bind/unbind
* directives, see #GtkBindingSet for the syntax supported
* </para>
* <example>
* <title>Using the &commat;binding rule</title>
* <programlisting language="text">
* &commat;binding-set binding-set1 {
* bind "&lt;alt&gt;Left" { "move-cursor" (visual-positions, -3, 0) };
* unbind "End";
* };
*
* &commat;binding-set binding-set1 {
* bind "&lt;alt&gt;Right" { "move-cursor" (visual-positions, 3, 0) };
* };
*
* GtkEntry {
* gtk-binding-set: binding-set1, binding-set2;
* }
* </programlisting>
* </example>
* <para>
* GTK+ also supports an additional &commat;define-color rule, in order * GTK+ also supports an additional &commat;define-color rule, in order
* to define a color name which may be used instead of color numeric * to define a color name which may be used instead of color numeric
* representations. Also see the #GtkSettings:gtk-color-scheme setting * representations. Also see the #GtkSettings:gtk-color-scheme setting
...@@ -666,6 +688,13 @@ ...@@ -666,6 +688,13 @@
* transition: 1s linear loop;</literallayout> * transition: 1s linear loop;</literallayout>
* </entry> * </entry>
* </row> * </row>
* <row>
* <entry>gtk-key-bindings</entry>
* <entry>binding set name list</entry>
* <entry>internal use only</entry>
* <entry><literallayout>gtk-bindings: binding1, binding2, ...;</literallayout>
* </entry>
* </row>
* </tbody> * </tbody>
* </tgroup> * </tgroup>
* </informaltable> * </informaltable>
......
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