From 487f808bbbb5b743711156bfe48bec1f9ca18b3a Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Dec 05 2008 14:19:38 +0000 Subject: - Properly open new windows after long mount operation --- diff --git a/nautilus.spec b/nautilus.spec index db5f38b..2ef9e1f 100644 --- a/nautilus.spec +++ b/nautilus.spec @@ -19,7 +19,7 @@ Name: nautilus Summary: Nautilus is a file manager for GNOME Version: 2.24.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: User Interface/Desktops Source: http://download.gnome.org/sources/%{name}/2.24/%{name}-%{version}.tar.bz2 @@ -99,6 +99,9 @@ Patch15: nautilus-2.22.0-treeview-xds-dnd.patch # http://bugzilla.gnome.org/show_bug.cgi?id=519743 Patch17: nautilus-filetype-symlink-fix.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=524485 +Patch18: nautilus_new_windows_after_mount.patch + %description Nautilus integrates access to files, applications, media, Internet-based resources and the Web. Nautilus delivers a dynamic and @@ -137,6 +140,7 @@ for writing nautilus extensions. %patch10 -p0 -b .gvfs-desktop-key %patch15 -p0 -b .xds %patch17 -p0 -b .symlink +%patch18 -p0 -b .new-windows %build @@ -265,6 +269,9 @@ fi %changelog +* Fri Dec 5 2008 Tomas Bzatek - 2.24.2-2 +- Properly open new windows after long mount operation + * Wed Nov 26 2008 Tomas Bzatek - 2.24.2-1 - Update to 2.24.2 diff --git a/nautilus_new_windows_after_mount.patch b/nautilus_new_windows_after_mount.patch new file mode 100644 index 0000000..c1f8eff --- /dev/null +++ b/nautilus_new_windows_after_mount.patch @@ -0,0 +1,27 @@ +Index: libnautilus-private/nautilus-mime-actions.c +=================================================================== +--- libnautilus-private/nautilus-mime-actions.c (revision 14785) ++++ libnautilus-private/nautilus-mime-actions.c (working copy) +@@ -1327,6 +1327,7 @@ + NautilusFile *file; + GFile *location; + GMountOperation *mount_op; ++ GList *l, *next; + + if (parameters->not_mounted != NULL) { + file = parameters->not_mounted->data; +@@ -1348,6 +1349,14 @@ + return; + } + ++ /* once the mount is finished, refresh all attributes */ ++ /* - fixes new windows not appearing after successful mount */ ++ for (l = parameters->files; l != NULL; l = next) { ++ file = NAUTILUS_FILE (l->data); ++ next = l->next; ++ nautilus_file_invalidate_all_attributes (file); ++ } ++ + nautilus_file_list_call_when_ready + (parameters->files, + nautilus_mime_actions_get_required_file_attributes () | NAUTILUS_FILE_ATTRIBUTE_LINK_INFO,