From e28adbacc73f8dfff98bce45821374e31b7a0f8e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 29 Apr 2004 21:13:12 +0000 Subject: Added an .gtkrc-2.0 example of how to actually change the key bindings. 2004-04-29 Federico Mena Quintero * gtk/tmpl/gtkfilechooser.sgml: Added an .gtkrc-2.0 example of how to actually change the key bindings. --- docs/reference/ChangeLog | 5 ++ docs/reference/gtk/tmpl/gtkfilechooser.sgml | 62 +++++++++++++++++++++++ docs/reference/gtk/tmpl/gtkfilechooserdialog.sgml | 3 +- 3 files changed, 69 insertions(+), 1 deletion(-) 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 + + * gtk/tmpl/gtkfilechooser.sgml: Added an .gtkrc-2.0 example of how + to actually change the key bindings. + 2004-04-23 Matthias Clasen * 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. + + GtkFileChooser key binding example + + + The default keys that activate the key-binding signals in + GtkFileChooserDefaultClass are as + follows: + + + + + + + Signal name + Key + + + location-popup + ControlL + + + up-folder + AltUp + + + down-folder + AltDown + + + home-folder + AltHome + + + + + + + To change these defaults to something else, you could + include the following fragment in your + .gtkrc-2.0 file: + + + +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" + + + The "GtkFileChooserDefault::location-popup" signal 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: - @@ -151,3 +150,5 @@ mode: sgml sgml-parent-document: ("../gtk-docs.sgml" "book" "refsect1") End: --> + + -- cgit v1.2.1