According to bug 312353 [1], IE users expect alt+d to activate the location entry widget. Proposed patch attached, which still correctly brings up the "_Datei" (file) menu for German locales, i.e. it does not mess up menu mnemonics. [1] http://bugzilla.gnome.org/show_bug.cgi?id=312353 -- Christian Neumair <chris gnome-de org>
Index: src/nautilus-window.c =================================================================== RCS file: /cvs/gnome/nautilus/src/nautilus-window.c,v retrieving revision 1.454 diff -u -p -r1.454 nautilus-window.c --- src/nautilus-window.c 23 Jul 2005 17:41:04 -0000 1.454 +++ src/nautilus-window.c 3 Aug 2005 14:23:07 -0000 @@ -105,6 +105,7 @@ enum { enum { GO_UP, + PROMPT_FOR_LOCATION, LAST_SIGNAL }; @@ -1492,11 +1493,21 @@ nautilus_window_class_init (NautilusWind g_signal_accumulator_true_handled, NULL, eel_marshal_BOOLEAN__BOOLEAN, G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN); + signals[PROMPT_FOR_LOCATION] = + g_signal_new ("prompt_for_location", + G_TYPE_FROM_CLASS (class), + G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, + G_STRUCT_OFFSET (NautilusWindowClass, prompt_for_location), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); binding_set = gtk_binding_set_by_class (class); gtk_binding_entry_add_signal (binding_set, GDK_BackSpace, 0, "go_up", 1, G_TYPE_BOOLEAN, FALSE); + gtk_binding_entry_add_signal (binding_set, GDK_d, GDK_MOD1_MASK, + "prompt_for_location", 0); class->go_up = nautilus_window_go_up_signal; }
Attachment:
signature.asc
Description: This is a digitally signed message part