forked from AuroraMiddleware/gtk
Fixes bug #328820:
2006-01-27 Federico Mena Quintero <federico@ximian.com> Fixes bug #328820: * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up the location dialog populated to "/". (tree_view_keybinding_cb): Likewise. (trap_activate_cb): Likewise.
This commit is contained in:
parent
dfdd89de5f
commit
bd51b09f77
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2006-01-27 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fixes bug #328820:
|
||||
|
||||
* gtk/gtkfilechooserdefault.c
|
||||
(gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up
|
||||
the location dialog populated to "/".
|
||||
(tree_view_keybinding_cb): Likewise.
|
||||
(trap_activate_cb): Likewise.
|
||||
|
||||
2006-01-25 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): Use translated format
|
||||
|
@ -1,3 +1,13 @@
|
||||
2006-01-27 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fixes bug #328820:
|
||||
|
||||
* gtk/gtkfilechooserdefault.c
|
||||
(gtk_file_chooser_default_class_init): Make GDK_KP_Divide pop up
|
||||
the location dialog populated to "/".
|
||||
(tree_view_keybinding_cb): Likewise.
|
||||
(trap_activate_cb): Likewise.
|
||||
|
||||
2006-01-25 Behdad Esfahbod <behdad@gnome.org>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): Use translated format
|
||||
|
@ -1,3 +1,8 @@
|
||||
2006-01-27 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* gtk/tmpl/gtkfilechooser.sgml: Mention that ~ is also a default
|
||||
key binding.
|
||||
|
||||
2006-01-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtk-sections.txt:
|
||||
|
@ -209,8 +209,14 @@ update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
|
||||
<row>
|
||||
<entry>location-popup</entry>
|
||||
<entry>
|
||||
<keycombo><keycap>Control</keycap><keycap>L</keycap></keycombo>;
|
||||
<keycap>/</keycap>
|
||||
<keycombo><keycap>Control</keycap><keycap>L</keycap></keycombo> (empty path);
|
||||
<keycap>/</keycap> (path of "/")<footnote>
|
||||
<para>
|
||||
Both the individual <keycap>/</keycap> key and the
|
||||
numeric keypad's "divide" key are supported.
|
||||
</para>
|
||||
</footnote>;
|
||||
<keycap>~</keycap> (path of "~")
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
@ -287,10 +293,12 @@ class "GtkFileChooserDefault" binding "my-own-gtkfilechooser-bindings"
|
||||
put in the text entry for the file name. By default this is bound to
|
||||
<keycombo><keycap>Control</keycap><keycap>L</keycap></keycombo>
|
||||
with a <parameter>path</parameter> string of "" (the empty
|
||||
string); it is also bound to <keycap>/</keycap> with a
|
||||
string). It is also bound to <keycap>/</keycap> with a
|
||||
<parameter>path</parameter> string of "<literal>/</literal>"
|
||||
(a slash): this lets you type <keycap>/</keycap> and
|
||||
immediately type a path name.
|
||||
immediately type a path name. On Unix systems, this is bound to
|
||||
<keycap>~</keycap> (tilde) with a <parameter>path</parameter> string
|
||||
of "~" itself for access to home directories.
|
||||
</para>
|
||||
|
||||
<variablelist role="params">
|
||||
|
@ -576,6 +576,10 @@ gtk_file_chooser_default_class_init (GtkFileChooserDefaultClass *class)
|
||||
GDK_slash, 0,
|
||||
"location-popup",
|
||||
1, G_TYPE_STRING, "/");
|
||||
gtk_binding_entry_add_signal (binding_set,
|
||||
GDK_KP_Divide, 0,
|
||||
"location-popup",
|
||||
1, G_TYPE_STRING, "/");
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
gtk_binding_entry_add_signal (binding_set,
|
||||
@ -2938,6 +2942,7 @@ tree_view_keybinding_cb (GtkWidget *tree_view,
|
||||
GtkFileChooserDefault *impl)
|
||||
{
|
||||
if ((event->keyval == GDK_slash
|
||||
|| event->keyval == GDK_KP_Divide
|
||||
#ifdef G_OS_UNIX
|
||||
|| event->keyval == GDK_asciitilde
|
||||
#endif
|
||||
@ -3303,6 +3308,7 @@ trap_activate_cb (GtkWidget *widget,
|
||||
modifiers = gtk_accelerator_get_default_mod_mask ();
|
||||
|
||||
if ((event->keyval == GDK_slash
|
||||
|| event->keyval == GDK_KP_Divide
|
||||
#ifdef G_OS_UNIX
|
||||
|| event->keyval == GDK_asciitilde
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user