diff options
author | Alexander Larsson <alexl@redhat.com> | 2005-10-18 14:22:54 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2005-10-18 14:22:54 +0000 |
commit | 675ad5e9c0fb6ddfa214eec648201257482d892f (patch) | |
tree | 3c4767a665206bb63bb21979211802ee80498c7c /src/nautilus-window.c | |
parent | 627737fb1723927509f38f302ef3fdf2a067c74b (diff) | |
download | nautilus-675ad5e9c0fb6ddfa214eec648201257482d892f.tar.gz |
Don't send slash to typeahead
2005-10-18 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c: (key_press_event):
Don't send slash to typeahead
* src/nautilus-location-dialog.[ch]:
Add nautilus_location_dialog_set_location.
* src/nautilus-navigation-window-menus.c:
* src/nautilus-navigation-window.c:
* src/nautilus-spatial-window.c:
* src/nautilus-window.[ch]:
Open location dialog/entry when you press '/'.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r-- | src/nautilus-window.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 19183129c..6bd000133 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -378,12 +378,13 @@ nautilus_window_go_home (NautilusWindow *window) } void -nautilus_window_prompt_for_location (NautilusWindow *window) +nautilus_window_prompt_for_location (NautilusWindow *window, + const char *initial) { g_return_if_fail (NAUTILUS_IS_WINDOW (window)); EEL_CALL_METHOD (NAUTILUS_WINDOW_CLASS, window, - prompt_for_location, (window)); + prompt_for_location, (window, initial)); } char * @@ -1542,8 +1543,8 @@ nautilus_window_class_init (NautilusWindowClass *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); + g_cclosure_marshal_VOID__STRING, + G_TYPE_NONE, 1, G_TYPE_STRING); binding_set = gtk_binding_set_by_class (class); gtk_binding_entry_add_signal (binding_set, GDK_BackSpace, 0, @@ -1551,8 +1552,9 @@ nautilus_window_class_init (NautilusWindowClass *class) G_TYPE_BOOLEAN, FALSE); gtk_binding_entry_add_signal (binding_set, GDK_F5, 0, "reload", 0); - gtk_binding_entry_add_signal (binding_set, GDK_d, GDK_MOD1_MASK, - "prompt-for-location", 0); + gtk_binding_entry_add_signal (binding_set, GDK_slash, 0, + "prompt-for-location", 1, + G_TYPE_STRING, "/"); class->reload = nautilus_window_reload; class->go_up = nautilus_window_go_up_signal; |