diff options
author | Federico Mena Quintero <federico@ximian.com> | 2004-04-29 21:13:12 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2004-04-29 21:13:12 +0000 |
commit | e28adbacc73f8dfff98bce45821374e31b7a0f8e (patch) | |
tree | ac38e0050bf694a4fd66ac56bc2bd977e6e26d07 | |
parent | 3f571c18e4b5e9f5558ef59152b47c5ec94bc076 (diff) | |
download | gdk-pixbuf-e28adbacc73f8dfff98bce45821374e31b7a0f8e.tar.gz |
Added an .gtkrc-2.0 example of how to actually change the key bindings.
2004-04-29 Federico Mena Quintero <federico@ximian.com>
* gtk/tmpl/gtkfilechooser.sgml: Added an .gtkrc-2.0 example of how
to actually change the key bindings.
-rw-r--r-- | docs/reference/ChangeLog | 5 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkfilechooser.sgml | 62 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkfilechooserdialog.sgml | 3 |
3 files changed, 69 insertions, 1 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index e57060321..4fa9a4822 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2004-04-29 Federico Mena Quintero <federico@ximian.com> + + * gtk/tmpl/gtkfilechooser.sgml: Added an .gtkrc-2.0 example of how + to actually change the key bindings. + 2004-04-23 Matthias Clasen <mclasen@redhat.com> * gtk/tmpl/gtkdialog.sgml: diff --git a/docs/reference/gtk/tmpl/gtkfilechooser.sgml b/docs/reference/gtk/tmpl/gtkfilechooser.sgml index f8a003f9c..177e91aea 100644 --- a/docs/reference/gtk/tmpl/gtkfilechooser.sgml +++ b/docs/reference/gtk/tmpl/gtkfilechooser.sgml @@ -157,6 +157,68 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data) describes the available key binding signals. </para> + <example id="gtkfilechooser-key-binding-example"> + <title>GtkFileChooser key binding example</title> + + <para> + The default keys that activate the key-binding signals in + <classname>GtkFileChooserDefaultClass</classname> are as + follows: + </para> + + <informaltable> + <tgroup cols="2"> + <tbody> + <row> + <entry>Signal name</entry> + <entry>Key</entry> + </row> + <row> + <entry>location-popup</entry> + <entry><keycombo><keycap>Control</keycap><keycap>L</keycap></keycombo></entry> + </row> + <row> + <entry>up-folder</entry> + <entry><keycombo><keycap>Alt</keycap><keycap>Up</keycap></keycombo></entry> + </row> + <row> + <entry>down-folder</entry> + <entry><keycombo><keycap>Alt</keycap><keycap>Down</keycap></keycombo></entry> + </row> + <row> + <entry>home-folder</entry> + <entry><keycombo><keycap>Alt</keycap><keycap>Home</keycap></keycombo></entry> + </row> + </tbody> + </tgroup> + </informaltable> + + <para> + To change these defaults to something else, you could + include the following fragment in your + <filename>.gtkrc-2.0</filename> file: + </para> + + <programlisting> +binding "my-own-gtkfilechooser-bindings" { + bind "<Alt><Shift>l" { + "location-popup" () + } + bind "<Alt><Shift>Up" { + "up-folder" () + } + bind "<Alt><Shift>Down" { + "down-folder" () + } + bind "<Alt><Shift>Home" { + "home-folder-folder" () + } +} + +class "GtkFileChooserDefault" binding "my-own-gtkfilechooser-bindings" + </programlisting> + </example> + <refsect3 id="GtkFileChooserDefault-location-popup"> <title>The "GtkFileChooserDefault::location-popup" signal</title> diff --git a/docs/reference/gtk/tmpl/gtkfilechooserdialog.sgml b/docs/reference/gtk/tmpl/gtkfilechooserdialog.sgml index 0fd748a7b..dac3203e9 100644 --- a/docs/reference/gtk/tmpl/gtkfilechooserdialog.sgml +++ b/docs/reference/gtk/tmpl/gtkfilechooserdialog.sgml @@ -130,7 +130,6 @@ dialog = gtk_file_chooser_dialog_new ("Open File", @Returns: - <!-- ##### FUNCTION gtk_file_chooser_dialog_new_with_backend ##### --> <para> @@ -151,3 +150,5 @@ mode: sgml sgml-parent-document: ("../gtk-docs.sgml" "book" "refsect1") End: --> + + |