updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / nautilus-shortcutfix / nautilus-shortcutfix.patch
blob1701e77762c6cdf6f272808bba93a0c0718faa04
1 diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
2 index 0997a15..193cb39 100644
3 --- a/src/file-manager/fm-directory-view.c
4 +++ b/src/file-manager/fm-directory-view.c
5 @@ -1894,6 +1894,17 @@ fm_directory_view_init_view_iface (NautilusViewIface *iface)
6 iface->drop_proxy_received_uris = (gpointer)fm_directory_view_drop_proxy_received_uris;
7 iface->drop_proxy_received_netscape_url = (gpointer)fm_directory_view_drop_proxy_received_netscape_url;
9 +static void
10 +real_update_menus (FMDirectoryView *view);
11 +static gboolean
12 +key_press_event_cb (GtkWidget *widget,
13 + GdkEventKey *event,
14 + FMDirectoryView *view)
16 + remove_update_menus_timeout_callback (view);
17 + real_update_menus (view);
18 + return FALSE;
21 static void
22 fm_directory_view_init (FMDirectoryView *view)
23 @@ -1903,6 +1913,9 @@ fm_directory_view_init (FMDirectoryView *view)
24 NautilusDirectory *templates_directory;
25 char *templates_uri;
27 + g_signal_connect (view, "key-press-event",
28 + G_CALLBACK (key_press_event_cb), view);
30 if (!setup_autos) {
31 setup_autos = TRUE;
32 eel_preferences_add_auto_boolean (NAUTILUS_PREFERENCES_CONFIRM_TRASH,