diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2007-07-09 13:41:13 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2007-07-09 13:41:13 +0000 |
commit | 5f539194f82948e7eb0dd8dde0853dfc7cff95a7 (patch) | |
tree | 36087d606d84a0b93f763cf326d8beaba56830b3 | |
parent | 83b5d32aef1156246478250c0773d3fcf1853e13 (diff) | |
download | gtk+-5f539194f82948e7eb0dd8dde0853dfc7cff95a7.tar.gz |
Document <accelerator> element
2007-07-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/tmpl/gtkactiongroup.sgml: Document <accelerator> element
svn path=/trunk/; revision=18409
-rw-r--r-- | docs/reference/ChangeLog | 4 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkactiongroup.sgml | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 46642aebe1..453adcbc56 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2007-07-09 Johan Dahlin,,, <jdahlin@lozenge> + + * gtk/tmpl/gtkactiongroup.sgml: Document <accelerator> element + Mon Jul 9 10:32:39 2007 Tim Janik <timj@imendio.com> * gdk/tmpl/threads.sgml: applied docu clarification patch from Bjoern diff --git a/docs/reference/gtk/tmpl/gtkactiongroup.sgml b/docs/reference/gtk/tmpl/gtkactiongroup.sgml index bed93558aa..516210d427 100644 --- a/docs/reference/gtk/tmpl/gtkactiongroup.sgml +++ b/docs/reference/gtk/tmpl/gtkactiongroup.sgml @@ -38,6 +38,28 @@ GtkAction objects as <child> elements in UI definitions. Note that it is probably more common to define actions and action groups in the code, since they are directly related to what the code can do. </para> +<para> +The GtkActionGroup implementation of the GtkBuildable interface supports a +custom <accelerator> element, which has attributes named key and +modifiers and allows to specify accelerators. This is similar to the +<accelerator> element of GtkWidget, the main difference is that +it doesn't allow you to specify a signal. +</para> +<example> +<title>A <structname>GtkDialog</structname> UI definition fragment.</title> +<programlisting><![CDATA[ +<object class="GtkActionGroup" id="actiongroup"> + <child> + <object class="GtkAction" id="About"> + <property name="name">About</property> + <property name="stock_id">gtk-about</property> + <signal handler="about_activate" name="activate"/> + </object> + <accelerator key="F1" modifiers="GDK_CONTROL_MASK | GDK_SHIFT_MASK"/> + </child> +</object> +]]></programlisting> +</example> </refsect2> <!-- ##### SECTION See_Also ##### --> |