Merge lp:~jbicha/nautilus/nautilus-3.8 into lp:~ubuntu-desktop/nautilus/ubuntu

Proposed by Jeremy Bícha
Status: Merged
Merged at revision: 388
Proposed branch: lp:~jbicha/nautilus/nautilus-3.8
Merge into: lp:~ubuntu-desktop/nautilus/ubuntu
Diff against target: 2883 lines (+198/-2063)
34 files modified
debian/changelog (+40/-0)
debian/control (+5/-4)
debian/control.in (+5/-4)
debian/nautilus.install (+0/-1)
debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch (+0/-25)
debian/patches/06_never_exec_nonexec_launchers.patch (+4/-5)
debian/patches/09_no-initial-fade.patch (+0/-18)
debian/patches/12_unity_launcher_support.patch (+44/-48)
debian/patches/15_use-ubuntu-help.patch (+26/-28)
debian/patches/17_static_unity_quicklist.patch (+4/-4)
debian/patches/18_unity_icon_color.patch (+5/-5)
debian/patches/19_unity_open_location_xid.patch (+39/-29)
debian/patches/git_add_desktop_keywords.patch (+0/-12)
debian/patches/git_add_missing_tooltips.patch (+0/-88)
debian/patches/git_eel_needs_terminal.patch (+0/-175)
debian/patches/git_enable_copy_from_recent.patch (+0/-58)
debian/patches/git_enable_simple_search_engine.patch (+0/-31)
debian/patches/git_export_opened_locations_on_dbus.patch (+0/-261)
debian/patches/git_fix_touch_double_click.patch (+0/-29)
debian/patches/git_launcher_no_frame.patch (+0/-103)
debian/patches/git_margin_primary_workarea_revert.patch (+0/-60)
debian/patches/git_rank_exact_matches_higher.patch (+0/-49)
debian/patches/git_rank_reversed.patch (+0/-26)
debian/patches/git_reset_view_to_defaults.patch (+0/-18)
debian/patches/git_restore_filename.patch (+0/-46)
debian/patches/git_restore_from_missing_directories.patch (+0/-142)
debian/patches/git_reuse_already_opened_views.patch (+0/-302)
debian/patches/git_search_dir_incremental_load.patch (+0/-148)
debian/patches/git_search_dont_follow_symlinks.patch (+0/-26)
debian/patches/git_search_recursive_dir.patch (+0/-78)
debian/patches/git_show_accelerators.patch (+0/-76)
debian/patches/git_single_filesystem_count.patch (+0/-115)
debian/patches/series (+0/-23)
debian/patches/zg_activity_logging.patch (+26/-26)
To merge this branch: bzr merge lp:~jbicha/nautilus/nautilus-3.8
Reviewer Review Type Date Requested Status
VCS imports Pending
Review via email: mp+168538@code.launchpad.net

This proposal supersedes a proposal from 2013-06-05.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote : Posted in a previous version of this proposal

Thanks Jeremy, what's the plan for the background drawing if we merge that change?

Revision history for this message
Jeremy Bícha (jbicha) wrote : Posted in a previous version of this proposal

Seb, I don't know. I've been confused about background drawing handling since
https://launchpad.net/ubuntu/+source/ubuntu-settings/12.10.7

There's quite a few different scenarios (which version of gsd? which desktop? with nautilus drawing desktop icons or not?). See also bug 1159430 which talks about Compiz some. I believe wallpaper handling in metacity will be broken (because no developer cares enough).

lp:~jbicha/nautilus/nautilus-3.8 updated
383. By Jeremy Bícha

TODO
* 16_unity_new_documents.patch: Doesn't work, the Raring
  "fix" used a bug that was fixed
  https://git.gnome.org/browse/nautilus/commit/?id=9323dd
* New upstream release (LP: #1130746)
  - Share the show-hidden-files setting with the GTK file chooser
    (LP: #1039014)
  - Limit folder size and content count to a single filesystem (LP: #585472)
* debian/nautilus.install:
  - Shell search provider doesn't need a separate library any more
* Drop git patches
* Refreshed patches

* debian/control:
  - Bump build-depends on libglib2.0-dev
* New upstream release
* debian/control:
  - Bump build-depends on libgtk-3-dev (>= 3.7.7)
* debian/patches:
  - 09_no-initial-fade.patch:
  - 10_sync_background_to_accountsservice.patch:
    + Dropped, Nautilus doesn't draw the background itself any more
* Refreshed patches
* Add build-dep on gsettings-desktop-schemas
* debian/patches:
  - 19_unity_open_location_xid.patch: updated to apply properly

384. By Jeremy Bícha

bump version to 3.8.2

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-06-10 17:06:35 +0000
+++ debian/changelog 2013-06-17 03:30:40 +0000
@@ -1,3 +1,43 @@
1nautilus (1:3.8.2-0ubuntu1) UNRELEASED; urgency=low
2
3 TODO
4 * 16_unity_new_documents.patch: Doesn't work, the Raring
5 "fix" used a bug that was fixed
6 https://git.gnome.org/browse/nautilus/commit/?id=9323dd
7
8 [ Jeremy Bicha ]
9 * New upstream release (LP: #1130746)
10 - Share the show-hidden-files setting with the GTK file chooser
11 (LP: #1039014)
12 - Limit folder size and content count to a single filesystem (LP: #585472)
13 * debian/nautilus.install:
14 - Shell search provider doesn't need a separate library any more
15 * Drop git patches
16 * Refreshed patches
17
18 [ Robert Ancell ]
19 * debian/control:
20 - Bump build-depends on libglib2.0-dev
21
22 [ Rico Tzschichholz ]
23 * New upstream release
24 * debian/control:
25 - Bump build-depends on libgtk-3-dev (>= 3.7.7)
26 * debian/patches:
27 - 09_no-initial-fade.patch:
28 - 10_sync_background_to_accountsservice.patch:
29 + Dropped, Nautilus doesn't draw the background itself any more
30 * Refreshed patches
31
32 [ Tim Lunn ]
33 * Add build-dep on gsettings-desktop-schemas
34
35 [ Marco Trevisan (Treviño) ]
36 * debian/patches:
37 - 19_unity_open_location_xid.patch: updated to apply properly
38
39 -- Jeremy Bicha <jbicha@ubuntu.com> Mon, 10 Jun 2013 16:28:56 -0400
40
1nautilus (1:3.6.3-0ubuntu18) saucy; urgency=low41nautilus (1:3.6.3-0ubuntu18) saucy; urgency=low
242
3 * debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch:43 * debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch:
444
=== modified file 'debian/control'
--- debian/control 2013-05-28 10:48:02 +0000
+++ debian/control 2013-06-17 03:30:40 +0000
@@ -13,9 +13,9 @@
13 dh-migrations,13 dh-migrations,
14 cdbs (>= 0.4.90),14 cdbs (>= 0.4.90),
15 gnome-pkg-tools (>= 0.13),15 gnome-pkg-tools (>= 0.13),
16 libglib2.0-dev (>= 2.33.13),16 libglib2.0-dev (>= 2.35.3),
17 libatk1.0-dev (>= 1.32.0),17 libatk1.0-dev (>= 1.32.0),
18 libgtk-3-dev (>= 3.5.12),18 libgtk-3-dev (>= 3.7.7),
19 libgail-3-dev,19 libgail-3-dev,
20 libgnome-desktop-3-dev (>= 3.0.0),20 libgnome-desktop-3-dev (>= 3.0.0),
21 libxml2-dev (>= 2.7.8),21 libxml2-dev (>= 2.7.8),
@@ -31,6 +31,7 @@
31 x11proto-core-dev,31 x11proto-core-dev,
32 shared-mime-info (>= 0.50),32 shared-mime-info (>= 0.50),
33 gobject-introspection (>= 0.9.12-4~),33 gobject-introspection (>= 0.9.12-4~),
34 gsettings-desktop-schemas (>= 3.8.0),
34 libgirepository1.0-dev (>= 0.9.12),35 libgirepository1.0-dev (>= 0.9.12),
35 libglib2.0-doc,36 libglib2.0-doc,
36 libgtk-3-doc,37 libgtk-3-doc,
@@ -112,8 +113,8 @@
112Section: libdevel113Section: libdevel
113Depends: libnautilus-extension1a (= ${binary:Version}),114Depends: libnautilus-extension1a (= ${binary:Version}),
114 gir1.2-nautilus-3.0 (= ${binary:Version}),115 gir1.2-nautilus-3.0 (= ${binary:Version}),
115 libglib2.0-dev (>= 2.33.13),116 libglib2.0-dev (>= 2.35.3),
116 libgtk-3-dev (>= 3.5.12),117 libgtk-3-dev (>= 3.7.7),
117 ${shlibs:Depends},118 ${shlibs:Depends},
118 ${misc:Depends}119 ${misc:Depends}
119Description: libraries for nautilus components - development version120Description: libraries for nautilus components - development version
120121
=== modified file 'debian/control.in'
--- debian/control.in 2013-03-08 15:55:47 +0000
+++ debian/control.in 2013-06-17 03:30:40 +0000
@@ -9,9 +9,9 @@
9 dh-migrations,9 dh-migrations,
10 cdbs (>= 0.4.90),10 cdbs (>= 0.4.90),
11 gnome-pkg-tools (>= 0.13),11 gnome-pkg-tools (>= 0.13),
12 libglib2.0-dev (>= 2.33.13),12 libglib2.0-dev (>= 2.35.3),
13 libatk1.0-dev (>= 1.32.0),13 libatk1.0-dev (>= 1.32.0),
14 libgtk-3-dev (>= 3.5.12),14 libgtk-3-dev (>= 3.7.7),
15 libgail-3-dev,15 libgail-3-dev,
16 libgnome-desktop-3-dev (>= 3.0.0),16 libgnome-desktop-3-dev (>= 3.0.0),
17 libxml2-dev (>= 2.7.8),17 libxml2-dev (>= 2.7.8),
@@ -27,6 +27,7 @@
27 x11proto-core-dev,27 x11proto-core-dev,
28 shared-mime-info (>= 0.50),28 shared-mime-info (>= 0.50),
29 gobject-introspection (>= 0.9.12-4~),29 gobject-introspection (>= 0.9.12-4~),
30 gsettings-desktop-schemas (>= 3.8.0),
30 libgirepository1.0-dev (>= 0.9.12),31 libgirepository1.0-dev (>= 0.9.12),
31 libglib2.0-doc,32 libglib2.0-doc,
32 libgtk-3-doc,33 libgtk-3-doc,
@@ -108,8 +109,8 @@
108Section: libdevel109Section: libdevel
109Depends: libnautilus-extension1a (= ${binary:Version}),110Depends: libnautilus-extension1a (= ${binary:Version}),
110 gir1.2-nautilus-3.0 (= ${binary:Version}),111 gir1.2-nautilus-3.0 (= ${binary:Version}),
111 libglib2.0-dev (>= 2.33.13),112 libglib2.0-dev (>= 2.35.3),
112 libgtk-3-dev (>= 3.5.12),113 libgtk-3-dev (>= 3.7.7),
113 ${shlibs:Depends},114 ${shlibs:Depends},
114 ${misc:Depends}115 ${misc:Depends}
115Description: libraries for nautilus components - development version116Description: libraries for nautilus components - development version
116117
=== modified file 'debian/nautilus.install'
--- debian/nautilus.install 2012-10-29 00:09:57 +0000
+++ debian/nautilus.install 2013-06-17 03:30:40 +0000
@@ -3,7 +3,6 @@
3debian/nautilus-folder-handler.desktop usr/share/applications3debian/nautilus-folder-handler.desktop usr/share/applications
4usr/bin4usr/bin
5usr/lib/nautilus/nautilus-convert-metadata5usr/lib/nautilus/nautilus-convert-metadata
6usr/lib/nautilus/nautilus-shell-search-provider
7usr/lib/nautilus/extensions-3.0/*.so6usr/lib/nautilus/extensions-3.0/*.so
8usr/share/applications7usr/share/applications
9usr/share/dbus-18usr/share/dbus-1
109
=== removed file 'debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch'
--- debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch 2013-06-10 16:47:24 +0000
+++ debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch 1970-01-01 00:00:00 +0000
@@ -1,25 +0,0 @@
1From 3d278607782dffa724d91680f4278273583e3962 Mon Sep 17 00:00:00 2001
2From: Pavel Vasin <rat4vier@gmail.com>
3Date: Tue, 1 Jan 2013 15:53:26 +0400
4Subject: [PATCH] trash-bar: fix double disconnect handler
5
6https://bugzilla.gnome.org/show_bug.cgi?id=691004
7---
8 src/nautilus-trash-bar.c | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/src/nautilus-trash-bar.c b/src/nautilus-trash-bar.c
12index 753de57..c41f48b 100644
13--- a/src/nautilus-trash-bar.c
14+++ b/src/nautilus-trash-bar.c
15@@ -107,6 +107,7 @@ nautilus_trash_bar_dispose (GObject *obj)
16
17 if (bar->priv->selection_handler_id) {
18 g_signal_handler_disconnect (bar->priv->view, bar->priv->selection_handler_id);
19+ bar->priv->selection_handler_id = 0;
20 }
21
22 G_OBJECT_CLASS (nautilus_trash_bar_parent_class)->dispose (obj);
23--
241.8.3
25
260
=== modified file 'debian/patches/06_never_exec_nonexec_launchers.patch'
--- debian/patches/06_never_exec_nonexec_launchers.patch 2012-08-08 08:29:34 +0000
+++ debian/patches/06_never_exec_nonexec_launchers.patch 2013-06-17 03:30:40 +0000
@@ -3,11 +3,11 @@
3 https://wiki.ubuntu.com/SecurityTeam/Policies#Execute-Permission%20Bit%20Required3 https://wiki.ubuntu.com/SecurityTeam/Policies#Execute-Permission%20Bit%20Required
4Author: Kees Cook <kees@ubuntu.com>4Author: Kees Cook <kees@ubuntu.com>
55
6Index: nautilus-3.5.5/src/nautilus-mime-actions.c6Index: nautilus-3.7.2/src/nautilus-mime-actions.c
7===================================================================7===================================================================
8--- nautilus-3.5.5.orig/src/nautilus-mime-actions.c 2012-07-02 18:16:48.000000000 +02008--- nautilus-3.7.2.orig/src/nautilus-mime-actions.c 2012-11-16 03:54:24.000000000 +1300
9+++ nautilus-3.5.5/src/nautilus-mime-actions.c 2012-08-08 09:41:29.943206858 +02009+++ nautilus-3.7.2/src/nautilus-mime-actions.c 2012-11-27 12:40:56.976344888 +1300
10@@ -1553,12 +1553,14 @@10@@ -1562,12 +1562,14 @@
11 "text", primary,11 "text", primary,
12 "secondary-text", secondary,12 "secondary-text", secondary,
13 NULL);13 NULL);
@@ -22,4 +22,3 @@
22 gtk_dialog_add_button (GTK_DIALOG (dialog),22 gtk_dialog_add_button (GTK_DIALOG (dialog),
23 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);23 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
24 gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);24 gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
25
2625
=== removed file 'debian/patches/09_no-initial-fade.patch'
--- debian/patches/09_no-initial-fade.patch 2012-10-29 00:09:57 +0000
+++ debian/patches/09_no-initial-fade.patch 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=575964
2# Patch: http://bugzilla.gnome.org/attachment.cgi?id=130970&action=view
3# Description: remove initial background fade-in
4#
5#
6Index: nautilus-3.5.5/libnautilus-private/nautilus-desktop-background.c
7===================================================================
8--- nautilus-3.5.5.orig/libnautilus-private/nautilus-desktop-background.c 2012-08-07 17:53:26.000000000 +0200
9+++ nautilus-3.5.5/libnautilus-private/nautilus-desktop-background.c 2012-08-08 09:41:30.007206861 +0200
10@@ -394,8 +394,6 @@
11 self->details->screen_monitors_handler =
12 g_signal_connect (screen, "monitors-changed",
13 G_CALLBACK (screen_size_changed), self);
14-
15- init_fade (self);
16 nautilus_desktop_background_set_up_widget (self);
17 }
18
190
=== modified file 'debian/patches/12_unity_launcher_support.patch'
--- debian/patches/12_unity_launcher_support.patch 2013-03-12 18:26:02 +0000
+++ debian/patches/12_unity_launcher_support.patch 2013-06-17 03:30:40 +0000
@@ -1,18 +1,18 @@
1=== modified file 'configure.in'1=== modified file 'configure.ac'
2Index: nautilus/configure.in2Index: nautilus-3.8.1/configure.ac
3===================================================================3===================================================================
4--- nautilus.orig/configure.in 2013-03-12 17:57:43.417743091 +01004--- nautilus-3.8.1.orig/configure.ac 2013-06-04 22:54:22.616331061 -0400
5+++ nautilus/configure.in 2013-03-12 17:57:43.413743092 +01005+++ nautilus-3.8.1/configure.ac 2013-06-04 22:54:22.608331062 -0400
6@@ -10,6 +10,8 @@6@@ -11,6 +11,8 @@
7 m4_define(exif_minver, 0.6.20)
8 m4_define(exempi_minver, 2.1.0)7 m4_define(exempi_minver, 2.1.0)
9 m4_define(notify_minver, 0.7.0)8 m4_define(notify_minver, 0.7.0)
9 m4_define(schemas_minver, 3.8.0)
10+m4_define(unity_minver, 4.0.0)10+m4_define(unity_minver, 4.0.0)
11+m4_define(dbusmenu_minver, 0.4.90)11+m4_define(dbusmenu_minver, 0.4.90)
12 12
13
14 dnl 1. If the library code has changed at all since last release, then increment revision.13 dnl 1. If the library code has changed at all since last release, then increment revision.
15@@ -191,6 +193,29 @@14 dnl 2. If any interfaces have been added, then increment current and set revision to 0.
15@@ -193,6 +195,29 @@
16 16
17 dnl ==========================================================================17 dnl ==========================================================================
18 18
@@ -42,7 +42,7 @@
42 dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.42 dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
43 43
44 WARNING_CFLAGS=""44 WARNING_CFLAGS=""
45@@ -345,6 +370,7 @@45@@ -333,6 +358,7 @@
46 libexif support: ${enable_exif}46 libexif support: ${enable_exif}
47 libexempi support: ${enable_xmp}47 libexempi support: ${enable_xmp}
48 PackageKit support: $msg_packagekit48 PackageKit support: $msg_packagekit
@@ -50,10 +50,10 @@
50 nautilus-sendto ext: $enable_nst_extension50 nautilus-sendto ext: $enable_nst_extension
51 Tracker support: $enable_tracker51 Tracker support: $enable_tracker
52 52
53Index: nautilus/libnautilus-private/nautilus-progress-info.c53Index: nautilus-3.8.1/libnautilus-private/nautilus-progress-info.c
54===================================================================54===================================================================
55--- nautilus.orig/libnautilus-private/nautilus-progress-info.c 2013-03-12 17:57:43.417743091 +010055--- nautilus-3.8.1.orig/libnautilus-private/nautilus-progress-info.c 2013-06-04 22:54:22.616331061 -0400
56+++ nautilus/libnautilus-private/nautilus-progress-info.c 2013-03-12 17:57:43.413743092 +010056+++ nautilus-3.8.1/libnautilus-private/nautilus-progress-info.c 2013-06-04 22:54:22.608331062 -0400
57@@ -52,6 +52,8 @@57@@ -52,6 +52,8 @@
58 char *status;58 char *status;
59 char *details;59 char *details;
@@ -115,10 +115,10 @@
115 info->progress_at_idle = TRUE;115 info->progress_at_idle = TRUE;
116 queue_idle (info, FALSE);116 queue_idle (info, FALSE);
117 }117 }
118Index: nautilus/libnautilus-private/nautilus-progress-info.h118Index: nautilus-3.8.1/libnautilus-private/nautilus-progress-info.h
119===================================================================119===================================================================
120--- nautilus.orig/libnautilus-private/nautilus-progress-info.h 2013-03-12 17:57:43.417743091 +0100120--- nautilus-3.8.1.orig/libnautilus-private/nautilus-progress-info.h 2013-06-04 22:54:22.616331061 -0400
121+++ nautilus/libnautilus-private/nautilus-progress-info.h 2013-03-12 17:57:43.413743092 +0100121+++ nautilus-3.8.1/libnautilus-private/nautilus-progress-info.h 2013-06-04 22:54:22.608331062 -0400
122@@ -62,6 +62,8 @@122@@ -62,6 +62,8 @@
123 gboolean nautilus_progress_info_get_is_started (NautilusProgressInfo *info);123 gboolean nautilus_progress_info_get_is_started (NautilusProgressInfo *info);
124 gboolean nautilus_progress_info_get_is_finished (NautilusProgressInfo *info);124 gboolean nautilus_progress_info_get_is_finished (NautilusProgressInfo *info);
@@ -128,19 +128,19 @@
128 128
129 void nautilus_progress_info_start (NautilusProgressInfo *info);129 void nautilus_progress_info_start (NautilusProgressInfo *info);
130 void nautilus_progress_info_finish (NautilusProgressInfo *info);130 void nautilus_progress_info_finish (NautilusProgressInfo *info);
131Index: nautilus/src/Makefile.am131Index: nautilus-3.8.1/src/Makefile.am
132===================================================================132===================================================================
133--- nautilus.orig/src/Makefile.am 2013-03-12 17:57:43.417743091 +0100133--- nautilus-3.8.1.orig/src/Makefile.am 2013-06-04 22:54:22.616331061 -0400
134+++ nautilus/src/Makefile.am 2013-03-12 17:57:43.413743092 +0100134+++ nautilus-3.8.1/src/Makefile.am 2013-06-04 22:54:22.608331062 -0400
135@@ -31,6 +31,7 @@135@@ -29,6 +29,7 @@
136 -DSYSCONFDIR=\""$(sysconfdir)"\" \136 -DSYSCONFDIR=\""$(sysconfdir)"\" \
137 -DVERSION="\"$(VERSION)\"" \137 -DVERSION="\"$(VERSION)\"" \
138 $(DISABLE_DEPRECATED_CFLAGS) \138 $(DISABLE_DEPRECATED) \
139+ $(UNITY_CFLAGS) \139+ $(UNITY_CFLAGS) \
140 $(NULL)140 $(NULL)
141 141
142 LDADD =\142 LDADD =\
143@@ -42,6 +43,7 @@143@@ -40,6 +41,7 @@
144 $(EXIF_LIBS) \144 $(EXIF_LIBS) \
145 $(EXEMPI_LIBS) \145 $(EXEMPI_LIBS) \
146 $(POPT_LIBS) \146 $(POPT_LIBS) \
@@ -159,10 +159,10 @@
159 $(NULL)159 $(NULL)
160 160
161 nodist_nautilus_SOURCES = \161 nodist_nautilus_SOURCES = \
162Index: nautilus/src/nautilus-progress-ui-handler.c162Index: nautilus-3.8.1/src/nautilus-progress-ui-handler.c
163===================================================================163===================================================================
164--- nautilus.orig/src/nautilus-progress-ui-handler.c 2013-03-12 17:57:43.417743091 +0100164--- nautilus-3.8.1.orig/src/nautilus-progress-ui-handler.c 2013-06-04 22:54:22.616331061 -0400
165+++ nautilus/src/nautilus-progress-ui-handler.c 2013-03-12 17:57:43.413743092 +0100165+++ nautilus-3.8.1/src/nautilus-progress-ui-handler.c 2013-06-04 22:54:22.608331062 -0400
166@@ -38,6 +38,11 @@166@@ -38,6 +38,11 @@
167 167
168 #include <libnotify/notify.h>168 #include <libnotify/notify.h>
@@ -185,7 +185,7 @@
185 };185 };
186 186
187 G_DEFINE_TYPE (NautilusProgressUIHandler, nautilus_progress_ui_handler, G_TYPE_OBJECT);187 G_DEFINE_TYPE (NautilusProgressUIHandler, nautilus_progress_ui_handler, G_TYPE_OBJECT);
188@@ -181,6 +189,221 @@188@@ -183,6 +191,221 @@
189 gtk_status_icon_set_visible (self->priv->status_icon, TRUE);189 gtk_status_icon_set_visible (self->priv->status_icon, TRUE);
190 }190 }
191 191
@@ -407,7 +407,7 @@
407 static gboolean407 static gboolean
408 progress_window_delete_event (GtkWidget *widget,408 progress_window_delete_event (GtkWidget *widget,
409 GdkEvent *event,409 GdkEvent *event,
410@@ -313,6 +536,10 @@410@@ -317,6 +540,10 @@
411 progress_ui_handler_show_complete_notification (self);411 progress_ui_handler_show_complete_notification (self);
412 }412 }
413 }413 }
@@ -418,7 +418,7 @@
418 }418 }
419 419
420 static void420 static void
421@@ -335,6 +562,10 @@421@@ -339,6 +566,10 @@
422 progress_ui_handler_update_notification_or_status (self);422 progress_ui_handler_update_notification_or_status (self);
423 }423 }
424 }424 }
@@ -429,10 +429,10 @@
429 }429 }
430 430
431 typedef struct {431 typedef struct {
432Index: nautilus/src/unity-quicklist-handler.c432Index: nautilus-3.8.1/src/unity-quicklist-handler.c
433===================================================================433===================================================================
434--- /dev/null 1970-01-01 00:00:00.000000000 +0000434--- /dev/null 1970-01-01 00:00:00.000000000 +0000
435+++ nautilus/src/unity-quicklist-handler.c 2013-03-12 17:57:43.413743092 +0100435+++ nautilus-3.8.1/src/unity-quicklist-handler.c 2013-06-04 22:54:22.608331062 -0400
436@@ -0,0 +1,153 @@436@@ -0,0 +1,153 @@
437+/*unity-quicklist-handler.c: handle Unity quicklists437+/*unity-quicklist-handler.c: handle Unity quicklists
438+ *438+ *
@@ -587,10 +587,10 @@
587+ return g_object_new (UNITY_TYPE_QUICKLIST_HANDLER, NULL);587+ return g_object_new (UNITY_TYPE_QUICKLIST_HANDLER, NULL);
588+}588+}
589+589+
590Index: nautilus/src/unity-quicklist-handler.h590Index: nautilus-3.8.1/src/unity-quicklist-handler.h
591===================================================================591===================================================================
592--- /dev/null 1970-01-01 00:00:00.000000000 +0000592--- /dev/null 1970-01-01 00:00:00.000000000 +0000
593+++ nautilus/src/unity-quicklist-handler.h 2013-03-12 17:57:43.413743092 +0100593+++ nautilus-3.8.1/src/unity-quicklist-handler.h 2013-06-04 22:54:22.612331061 -0400
594@@ -0,0 +1,75 @@594@@ -0,0 +1,75 @@
595+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */595+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
596+/*596+/*
@@ -667,10 +667,10 @@
667+#define UNITY_QUICKLIST_CANCEL_COPY _("Cancel All In-progress Actions")667+#define UNITY_QUICKLIST_CANCEL_COPY _("Cancel All In-progress Actions")
668+668+
669+#endif /* __UNITY_QUICKLIST_HANDLER_H__ */669+#endif /* __UNITY_QUICKLIST_HANDLER_H__ */
670Index: nautilus/src/nautilus-application.c670Index: nautilus-3.8.1/src/nautilus-application.c
671===================================================================671===================================================================
672--- nautilus.orig/src/nautilus-application.c 2013-03-12 17:57:43.417743091 +0100672--- nautilus-3.8.1.orig/src/nautilus-application.c 2013-06-04 22:54:22.616331061 -0400
673+++ nautilus/src/nautilus-application.c 2013-03-12 17:57:43.417743091 +0100673+++ nautilus-3.8.1/src/nautilus-application.c 2013-06-04 22:54:22.612331061 -0400
674@@ -79,6 +79,10 @@674@@ -79,6 +79,10 @@
675 #include <gdk/gdkx.h>675 #include <gdk/gdkx.h>
676 #include <gtk/gtk.h>676 #include <gtk/gtk.h>
@@ -682,8 +682,8 @@
682 /* Keep window from shrinking down ridiculously small; numbers are somewhat arbitrary */682 /* Keep window from shrinking down ridiculously small; numbers are somewhat arbitrary */
683 #define APPLICATION_WINDOW_MIN_WIDTH 300683 #define APPLICATION_WINDOW_MIN_WIDTH 300
684 #define APPLICATION_WINDOW_MIN_HEIGHT 100684 #define APPLICATION_WINDOW_MIN_HEIGHT 100
685@@ -1548,6 +1552,10 @@685@@ -1646,6 +1650,10 @@
686 nautilus_application_init_actions (self);686 init_desktop (self);
687 687
688 nautilus_profile_end (NULL);688 nautilus_profile_end (NULL);
689+689+
@@ -693,11 +693,11 @@
693 }693 }
694 694
695 static void695 static void
696Index: nautilus/src/unity-bookmarks-handler.c696Index: nautilus-3.8.1/src/unity-bookmarks-handler.c
697===================================================================697===================================================================
698--- /dev/null 1970-01-01 00:00:00.000000000 +0000698--- /dev/null 1970-01-01 00:00:00.000000000 +0000
699+++ nautilus/src/unity-bookmarks-handler.c 2013-03-12 18:57:09.410958729 +0100699+++ nautilus-3.8.1/src/unity-bookmarks-handler.c 2013-06-04 22:54:36.572330478 -0400
700@@ -0,0 +1,144 @@700@@ -0,0 +1,140 @@
701+/*unity-bookmarks-handler.c: handle Unity bookmark for quicklist701+/*unity-bookmarks-handler.c: handle Unity bookmark for quicklist
702+ *702+ *
703+ * Copyright (C) 2012 Canonical703+ * Copyright (C) 2012 Canonical
@@ -802,10 +802,6 @@
802+802+
803+ bookmark = nautilus_bookmark_list_item_at (bookmarks, index);803+ bookmark = nautilus_bookmark_list_item_at (bookmarks, index);
804+804+
805+ if (nautilus_bookmark_uri_known_not_to_exist (bookmark)) {
806+ continue;
807+ }
808+
809+ for (l = unity_quicklist_get_launcher_entries (unity_quicklist_handler); l; l = l->next) {805+ for (l = unity_quicklist_get_launcher_entries (unity_quicklist_handler); l; l = l->next) {
810+ UnityLauncherEntry *entry = l->data;806+ UnityLauncherEntry *entry = l->data;
811+807+
@@ -842,10 +838,10 @@
842+ G_CALLBACK (unity_bookmarks_handler_refresh_bookmarks), 0);838+ G_CALLBACK (unity_bookmarks_handler_refresh_bookmarks), 0);
843+}839+}
844+840+
845Index: nautilus/src/unity-bookmarks-handler.h841Index: nautilus-3.8.1/src/unity-bookmarks-handler.h
846===================================================================842===================================================================
847--- /dev/null 1970-01-01 00:00:00.000000000 +0000843--- /dev/null 1970-01-01 00:00:00.000000000 +0000
848+++ nautilus/src/unity-bookmarks-handler.h 2013-03-12 17:57:43.417743091 +0100844+++ nautilus-3.8.1/src/unity-bookmarks-handler.h 2013-06-04 22:54:22.612331061 -0400
849@@ -0,0 +1,31 @@845@@ -0,0 +1,31 @@
850+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */846+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
851+/*847+/*
@@ -878,10 +874,10 @@
878+void unity_bookmarks_handler_initialize (void);874+void unity_bookmarks_handler_initialize (void);
879+875+
880+#endif /* __UNITY_BOOKMARKS_HANDLER_H__*/876+#endif /* __UNITY_BOOKMARKS_HANDLER_H__*/
881Index: nautilus/po/POTFILES.in877Index: nautilus-3.8.1/po/POTFILES.in
882===================================================================878===================================================================
883--- nautilus.orig/po/POTFILES.in 2013-03-12 17:57:43.417743091 +0100879--- nautilus-3.8.1.orig/po/POTFILES.in 2013-06-04 22:54:22.616331061 -0400
884+++ nautilus/po/POTFILES.in 2013-03-12 17:57:43.417743091 +0100880+++ nautilus-3.8.1/po/POTFILES.in 2013-06-04 22:54:22.612331061 -0400
885@@ -90,3 +90,4 @@881@@ -90,3 +90,4 @@
886 src/nautilus-window-private.h882 src/nautilus-window-private.h
887 src/nautilus-window-slot.c883 src/nautilus-window-slot.c
888884
=== modified file 'debian/patches/15_use-ubuntu-help.patch'
--- debian/patches/15_use-ubuntu-help.patch 2012-11-03 15:59:48 +0000
+++ debian/patches/15_use-ubuntu-help.patch 2013-06-17 03:30:40 +0000
@@ -3,10 +3,10 @@
3Forwarded: Not needed3Forwarded: Not needed
4Author: Jeremy Bicha <jbicha@ubuntu.com>4Author: Jeremy Bicha <jbicha@ubuntu.com>
55
6Index: nautilus-3.6.2/src/nautilus-connect-server-dialog.c6Index: nautilus-3.7.2/src/nautilus-connect-server-dialog.c
7===================================================================7===================================================================
8--- nautilus-3.6.2.orig/src/nautilus-connect-server-dialog.c 2012-11-02 22:03:55.514929059 -04008--- nautilus-3.7.2.orig/src/nautilus-connect-server-dialog.c 2012-10-30 12:39:52.000000000 +1300
9+++ nautilus-3.6.2/src/nautilus-connect-server-dialog.c 2012-11-02 22:04:24.466927848 -04009+++ nautilus-3.7.2/src/nautilus-connect-server-dialog.c 2012-11-27 12:42:46.844343840 +1300
10@@ -97,7 +97,12 @@10@@ -97,7 +97,12 @@
11 break;11 break;
12 case GTK_RESPONSE_HELP:12 case GTK_RESPONSE_HELP:
@@ -21,10 +21,10 @@
21 "help:gnome-help/nautilus-connect",21 "help:gnome-help/nautilus-connect",
22 gtk_get_current_event_time (), &error);22 gtk_get_current_event_time (), &error);
23 if (error) {23 if (error) {
24Index: nautilus-3.6.2/src/nautilus-file-management-properties.c24Index: nautilus-3.7.2/src/nautilus-file-management-properties.c
25===================================================================25===================================================================
26--- nautilus-3.6.2.orig/src/nautilus-file-management-properties.c 2012-11-02 22:03:55.514929059 -040026--- nautilus-3.7.2.orig/src/nautilus-file-management-properties.c 2012-10-30 12:39:52.000000000 +1300
27+++ nautilus-3.6.2/src/nautilus-file-management-properties.c 2012-11-02 22:04:24.466927848 -040027+++ nautilus-3.7.2/src/nautilus-file-management-properties.c 2012-11-27 12:42:46.844343840 +1300
28@@ -232,7 +232,10 @@28@@ -232,7 +232,10 @@
29 section = "nautilus-preview";29 section = "nautilus-preview";
30 break;30 break;
@@ -37,11 +37,11 @@
37 } else if (response_id == GTK_RESPONSE_CLOSE) {37 } else if (response_id == GTK_RESPONSE_CLOSE) {
38 gtk_widget_destroy (GTK_WIDGET (parent));38 gtk_widget_destroy (GTK_WIDGET (parent));
39 }39 }
40Index: nautilus-3.6.2/src/nautilus-properties-window.c40Index: nautilus-3.7.2/src/nautilus-properties-window.c
41===================================================================41===================================================================
42--- nautilus-3.6.2.orig/src/nautilus-properties-window.c 2012-11-02 22:03:55.514929059 -040042--- nautilus-3.7.2.orig/src/nautilus-properties-window.c 2012-11-14 02:19:44.000000000 +1300
43+++ nautilus-3.6.2/src/nautilus-properties-window.c 2012-11-02 22:08:49.666916757 -040043+++ nautilus-3.7.2/src/nautilus-properties-window.c 2012-11-27 12:42:46.844343840 +1300
44@@ -3158,7 +3158,11 @@44@@ -3197,7 +3197,11 @@
45 GtkWidget *volume_usage;45 GtkWidget *volume_usage;
46 GtkWidget *hbox, *vbox;46 GtkWidget *hbox, *vbox;
47 47
@@ -54,7 +54,7 @@
54 "help:gnome-help/nautilus-file-properties-basic");54 "help:gnome-help/nautilus-file-properties-basic");
55 55
56 /* Icon pixmap */56 /* Icon pixmap */
57@@ -4491,10 +4495,16 @@57@@ -4532,10 +4536,16 @@
58 char *file_name, *prompt_text;58 char *file_name, *prompt_text;
59 GList *file_list;59 GList *file_list;
60 60
@@ -72,7 +72,7 @@
72 file_list = window->details->original_files;72 file_list = window->details->original_files;
73 73
74 window->details->initial_permissions = NULL;74 window->details->initial_permissions = NULL;
75@@ -4791,7 +4801,11 @@75@@ -4832,7 +4842,11 @@
76 g_free (mime_type);76 g_free (mime_type);
77 g_list_free (files);77 g_list_free (files);
78 78
@@ -85,7 +85,7 @@
85 gtk_notebook_append_page (window->details->notebook, 85 gtk_notebook_append_page (window->details->notebook,
86 vbox, gtk_label_new (_("Open With")));86 vbox, gtk_label_new (_("Open With")));
87 }87 }
88@@ -5143,10 +5157,18 @@88@@ -5184,10 +5198,18 @@
89 curpage = gtk_notebook_get_nth_page (window->details->notebook,89 curpage = gtk_notebook_get_nth_page (window->details->notebook,
90 gtk_notebook_get_current_page (window->details->notebook));90 gtk_notebook_get_current_page (window->details->notebook));
91 helpuri = g_object_get_data (G_OBJECT (curpage), "help-uri");91 helpuri = g_object_get_data (G_OBJECT (curpage), "help-uri");
@@ -105,11 +105,11 @@
105 if (error != NULL) {105 if (error != NULL) {
106 eel_show_error_dialog (_("There was an error displaying help."), error->message,106 eel_show_error_dialog (_("There was an error displaying help."), error->message,
107 GTK_WINDOW (dialog));107 GTK_WINDOW (dialog));
108Index: nautilus-3.6.2/src/nautilus-view.c108Index: nautilus-3.7.2/src/nautilus-view.c
109===================================================================109===================================================================
110--- nautilus-3.6.2.orig/src/nautilus-view.c 2012-11-02 22:03:55.514929059 -0400110--- nautilus-3.7.2.orig/src/nautilus-view.c 2012-11-27 12:41:58.000000000 +1300
111+++ nautilus-3.6.2/src/nautilus-view.c 2012-11-02 22:04:24.474927848 -0400111+++ nautilus-3.7.2/src/nautilus-view.c 2012-11-27 12:42:46.848343840 +1300
112@@ -1434,7 +1434,12 @@112@@ -1431,7 +1431,12 @@
113 break;113 break;
114 case GTK_RESPONSE_HELP :114 case GTK_RESPONSE_HELP :
115 error = NULL;115 error = NULL;
@@ -123,11 +123,11 @@
123 "help:gnome-help/files-select",123 "help:gnome-help/files-select",
124 gtk_get_current_event_time (), &error);124 gtk_get_current_event_time (), &error);
125 if (error) {125 if (error) {
126Index: nautilus-3.6.2/src/nautilus-window-menus.c126Index: nautilus-3.7.2/src/nautilus-window-menus.c
127===================================================================127===================================================================
128--- nautilus-3.6.2.orig/src/nautilus-window-menus.c 2012-11-02 22:03:55.514929059 -0400128--- nautilus-3.7.2.orig/src/nautilus-window-menus.c 2012-11-20 10:20:41.000000000 +1300
129+++ nautilus-3.6.2/src/nautilus-window-menus.c 2012-11-02 22:04:24.474927848 -0400129+++ nautilus-3.7.2/src/nautilus-window-menus.c 2012-11-27 12:42:46.848343840 +1300
130@@ -221,31 +221,39 @@130@@ -220,31 +220,39 @@
131 GError *error;131 GError *error;
132 GtkWidget *dialog;132 GtkWidget *dialog;
133 const char* helpuri;133 const char* helpuri;
@@ -173,17 +173,15 @@
173 if (error) {173 if (error) {
174 dialog = gtk_message_dialog_new (GTK_WINDOW (window),174 dialog = gtk_message_dialog_new (GTK_WINDOW (window),
175 GTK_DIALOG_MODAL,175 GTK_DIALOG_MODAL,
176Index: nautilus-3.6.2/src/nautilus-application.c176Index: nautilus-3.7.2/src/nautilus-application.c
177===================================================================177===================================================================
178--- nautilus-3.6.2.orig/src/nautilus-application.c 2012-11-02 22:03:55.514929059 -0400178--- nautilus-3.7.2.orig/src/nautilus-application.c 2012-11-27 12:42:33.680343967 +1300
179+++ nautilus-3.6.2/src/nautilus-application.c 2012-11-02 22:04:24.474927848 -0400179+++ nautilus-3.7.2/src/nautilus-application.c 2012-11-27 12:42:46.848343840 +1300
180@@ -874,8 +874,15 @@180@@ -860,7 +860,14 @@
181 GtkApplication *application = user_data;
182 GError *error = NULL;181 GError *error = NULL;
183 182
184- window = get_focus_window (application); 183 window = gtk_application_get_active_window (application);
185- gtk_show_uri (window ? 184- gtk_show_uri (window ?
186+ window = get_focus_window (application);
187+ if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "Unity"))185+ if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "Unity"))
188+ gtk_show_uri (window ? 186+ gtk_show_uri (window ?
189+ gtk_window_get_screen (GTK_WINDOW (window)) :187+ gtk_window_get_screen (GTK_WINDOW (window)) :
190188
=== modified file 'debian/patches/17_static_unity_quicklist.patch'
--- debian/patches/17_static_unity_quicklist.patch 2013-03-12 18:26:02 +0000
+++ debian/patches/17_static_unity_quicklist.patch 2013-06-17 03:30:40 +0000
@@ -1,11 +1,11 @@
1Index: nautilus/data/nautilus.desktop.in.in1Index: nautilus-3.7.2/data/nautilus.desktop.in.in
2===================================================================2===================================================================
3--- nautilus.orig/data/nautilus.desktop.in.in 2013-03-12 17:08:37.121951465 +01003--- nautilus-3.7.2.orig/data/nautilus.desktop.in.in 2012-11-14 02:19:44.000000000 +1300
4+++ nautilus/data/nautilus.desktop.in.in 2013-03-12 17:11:35.029894735 +01004+++ nautilus-3.7.2/data/nautilus.desktop.in.in 2012-11-27 12:42:49.748343814 +1300
5@@ -14,3 +14,9 @@5@@ -14,3 +14,9 @@
6 X-GNOME-Bugzilla-Product=nautilus
7 X-GNOME-Bugzilla-Component=general6 X-GNOME-Bugzilla-Component=general
8 X-GNOME-Bugzilla-Version=@VERSION@7 X-GNOME-Bugzilla-Version=@VERSION@
8 X-GNOME-UsesNotifications=true
9+Actions=Window;9+Actions=Window;
10+10+
11+[Desktop Action Window]11+[Desktop Action Window]
1212
=== modified file 'debian/patches/18_unity_icon_color.patch'
--- debian/patches/18_unity_icon_color.patch 2013-03-08 13:44:44 +0000
+++ debian/patches/18_unity_icon_color.patch 2013-06-17 03:30:40 +0000
@@ -1,10 +1,10 @@
1Index: nautilus-3.6.3/data/nautilus.desktop.in.in1Index: nautilus-3.8.1/data/nautilus.desktop.in.in
2===================================================================2===================================================================
3--- nautilus-3.6.3.orig/data/nautilus.desktop.in.in 2013-03-08 11:22:36.712732149 +01003--- nautilus-3.8.1.orig/data/nautilus.desktop.in.in 2013-06-04 22:27:44.308397907 -0400
4+++ nautilus-3.6.3/data/nautilus.desktop.in.in 2013-03-08 11:23:04.052733060 +01004+++ nautilus-3.8.1/data/nautilus.desktop.in.in 2013-06-04 22:27:44.304397907 -0400
5@@ -14,6 +14,7 @@5@@ -16,6 +16,7 @@
6 X-GNOME-Bugzilla-Component=general
7 X-GNOME-Bugzilla-Version=@VERSION@6 X-GNOME-Bugzilla-Version=@VERSION@
7 X-GNOME-UsesNotifications=true
8 Actions=Window;8 Actions=Window;
9+X-Unity-IconBackgroundColor=#af48539+X-Unity-IconBackgroundColor=#af4853
10 10
1111
=== modified file 'debian/patches/19_unity_open_location_xid.patch'
--- debian/patches/19_unity_open_location_xid.patch 2013-03-27 18:56:42 +0000
+++ debian/patches/19_unity_open_location_xid.patch 2013-06-17 03:30:40 +0000
@@ -1,7 +1,15 @@
1Description: Add a new dbus property to the nautilus'
2 "org.freedesktop.FileManager1" dbus interface where it stores the lists of
3 opened locations referenced by their parent nautilus window XID.
4
5Bug-Ubuntu: https://bugs.launchpad.net/unity/+bug/887449
6Forwarded: no
7Author: Marco Trevisan <marco@ubuntu.com>
8
1Index: nautilus/data/freedesktop-dbus-interfaces.xml9Index: nautilus/data/freedesktop-dbus-interfaces.xml
2===================================================================10===================================================================
3--- nautilus.orig/data/freedesktop-dbus-interfaces.xml 2013-03-27 15:18:14.620455679 +010011--- nautilus.orig/data/freedesktop-dbus-interfaces.xml 2013-06-10 21:00:24.913944953 +0200
4+++ nautilus/data/freedesktop-dbus-interfaces.xml 2013-03-27 15:18:36.812457731 +010012+++ nautilus/data/freedesktop-dbus-interfaces.xml 2013-06-10 21:00:24.905944954 +0200
5@@ -33,5 +33,6 @@13@@ -33,5 +33,6 @@
6 <arg type='s' name='StartupId' direction='in'/>14 <arg type='s' name='StartupId' direction='in'/>
7 </method>15 </method>
@@ -11,9 +19,9 @@
11 </node>19 </node>
12Index: nautilus/src/nautilus-application.c20Index: nautilus/src/nautilus-application.c
13===================================================================21===================================================================
14--- nautilus.orig/src/nautilus-application.c 2013-03-27 14:24:02.345633000 +010022--- nautilus.orig/src/nautilus-application.c 2013-06-10 21:00:24.913944953 +0200
15+++ nautilus/src/nautilus-application.c 2013-03-27 17:22:49.598601760 +010023+++ nautilus/src/nautilus-application.c 2013-06-10 21:00:24.905944954 +0200
16@@ -1589,6 +1589,11 @@24@@ -1672,6 +1672,11 @@
17 25
18 g_return_if_fail (NAUTILUS_IS_APPLICATION (app));26 g_return_if_fail (NAUTILUS_IS_APPLICATION (app));
19 27
@@ -25,7 +33,7 @@
25 for (l = gtk_application_get_windows (GTK_APPLICATION (app)); l; l = l->next) {33 for (l = gtk_application_get_windows (GTK_APPLICATION (app)); l; l = l->next) {
26 NautilusWindow *win = NAUTILUS_WINDOW (l->data);34 NautilusWindow *win = NAUTILUS_WINDOW (l->data);
27 35
28@@ -1596,11 +1601,15 @@36@@ -1679,11 +1684,15 @@
29 continue;37 continue;
30 }38 }
31 39
@@ -41,7 +49,7 @@
41 GList *found = g_list_find_custom (locations, uri, (GCompareFunc) g_strcmp0);49 GList *found = g_list_find_custom (locations, uri, (GCompareFunc) g_strcmp0);
42 50
43 if (!found) {51 if (!found) {
44@@ -1611,6 +1620,17 @@52@@ -1694,6 +1703,17 @@
45 }53 }
46 }54 }
47 }55 }
@@ -59,15 +67,16 @@
59 }67 }
60 68
61 locations_array = g_new (gchar*, locations_size + 1);69 locations_array = g_new (gchar*, locations_size + 1);
62@@ -1623,6 +1643,7 @@70@@ -1707,6 +1727,8 @@
63 locations_array[locations_size] = NULL;
64 71
65 nautilus_freedesktop_dbus_set_open_locations ((const gchar**) locations_array);72 nautilus_freedesktop_dbus_set_open_locations (app->priv->fdb_manager,
66+ nautilus_freedesktop_dbus_set_open_locations_xids (g_variant_builder_end (&b));73 (const gchar**) locations_array);
74+ nautilus_freedesktop_dbus_set_open_locations_xids (app->priv->fdb_manager,
75+ g_variant_builder_end (&b));
67 76
68 g_free (locations_array);77 g_free (locations_array);
69 g_list_free_full (locations, g_free);78 g_list_free_full (locations, g_free);
70@@ -1660,14 +1681,24 @@79@@ -1744,14 +1766,24 @@
71 }80 }
72 81
73 static void82 static void
@@ -94,7 +103,7 @@
94 }103 }
95 104
96 static void105 static void
97@@ -1685,8 +1716,11 @@106@@ -1769,8 +1801,11 @@
98 nautilus_previewer_call_close (previewer);107 nautilus_previewer_call_close (previewer);
99 }108 }
100 109
@@ -110,31 +119,32 @@
110 static void119 static void
111Index: nautilus/src/nautilus-freedesktop-dbus.c120Index: nautilus/src/nautilus-freedesktop-dbus.c
112===================================================================121===================================================================
113--- nautilus.orig/src/nautilus-freedesktop-dbus.c 2013-03-27 14:24:02.345633000 +0100122--- nautilus.orig/src/nautilus-freedesktop-dbus.c 2013-06-10 21:00:24.913944953 +0200
114+++ nautilus/src/nautilus-freedesktop-dbus.c 2013-03-27 14:37:39.224743813 +0100123+++ nautilus/src/nautilus-freedesktop-dbus.c 2013-06-10 21:01:11.485942497 +0200
115@@ -303,6 +303,14 @@124@@ -229,6 +229,15 @@
116 nautilus_freedesktop_file_manager1_set_open_locations (singleton->skeleton, locations);125 nautilus_freedesktop_file_manager1_set_open_locations (fdb->skeleton, locations);
117 }126 }
118 127
119+void128+void
120+nautilus_freedesktop_dbus_set_open_locations_xids (GVariant *locations)129+nautilus_freedesktop_dbus_set_open_locations_xids (NautilusFreedesktopDBus *fdb,
130+ GVariant *locations)
121+{131+{
122+ g_return_if_fail (singleton);132+ g_return_if_fail (NAUTILUS_IS_FREEDESKTOP_DBUS (fdb));
123+133+
124+ nautilus_freedesktop_file_manager1_set_xubuntu_open_locations_xids (singleton->skeleton, locations);134+ nautilus_freedesktop_file_manager1_set_xubuntu_open_locations_xids (fdb->skeleton, locations);
125+}135+}
126+136+
127 /* Tries to own the org.freedesktop.FileManager1 service name */137 /* Tries to own the org.freedesktop.FileManager1 service name */
128 void138 NautilusFreedesktopDBus *
129 nautilus_freedesktop_dbus_start (NautilusApplication *app)139 nautilus_freedesktop_dbus_new (void)
130Index: nautilus/src/nautilus-freedesktop-dbus.h140Index: nautilus/src/nautilus-freedesktop-dbus.h
131===================================================================141===================================================================
132--- nautilus.orig/src/nautilus-freedesktop-dbus.h 2013-03-27 14:24:02.345633000 +0100142--- nautilus.orig/src/nautilus-freedesktop-dbus.h 2013-06-10 21:00:24.913944953 +0200
133+++ nautilus/src/nautilus-freedesktop-dbus.h 2013-03-27 15:17:59.012454136 +0100143+++ nautilus/src/nautilus-freedesktop-dbus.h 2013-06-10 21:00:24.909944954 +0200
134@@ -28,5 +28,6 @@144@@ -48,5 +48,6 @@
135 void nautilus_freedesktop_dbus_start (NautilusApplication *app);145 NautilusFreedesktopDBus * nautilus_freedesktop_dbus_new (void);
136 void nautilus_freedesktop_dbus_stop (void);146
137 void nautilus_freedesktop_dbus_set_open_locations (const gchar **locations);147 void nautilus_freedesktop_dbus_set_open_locations (NautilusFreedesktopDBus *fdb, const gchar **locations);
138+void nautilus_freedesktop_dbus_set_open_locations_xids (GVariant *locations);148+void nautilus_freedesktop_dbus_set_open_locations_xids (NautilusFreedesktopDBus *fdb, GVariant *locations);
139 149
140 #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */150 #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */
141151
=== removed file 'debian/patches/git_add_desktop_keywords.patch'
--- debian/patches/git_add_desktop_keywords.patch 2013-03-14 10:35:52 +0000
+++ debian/patches/git_add_desktop_keywords.patch 1970-01-01 00:00:00 +0000
@@ -1,12 +0,0 @@
1Index: nautilus/data/nautilus.desktop.in.in
2===================================================================
3--- nautilus.orig/data/nautilus.desktop.in.in 2013-03-12 19:35:01.714349423 +0100
4+++ nautilus/data/nautilus.desktop.in.in 2013-03-12 19:37:25.077722944 +0100
5@@ -1,6 +1,7 @@
6 [Desktop Entry]
7 _Name=Files
8 _Comment=Access and organize files
9+_Keywords=folder;manager;explore;disk;filesystem;
10 Exec=nautilus --new-window %U
11 Icon=system-file-manager
12 Terminal=false
130
=== removed file 'debian/patches/git_add_missing_tooltips.patch'
--- debian/patches/git_add_missing_tooltips.patch 2012-10-31 07:02:17 +0000
+++ debian/patches/git_add_missing_tooltips.patch 1970-01-01 00:00:00 +0000
@@ -1,88 +0,0 @@
1From f017a93b9ba3a465059ebca8eeb79138c983bd96 Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Fri, 26 Oct 2012 20:43:40 +0000
4Subject: toolbar: add missing tooltips for toolbar menubuttons
5
6These require new strings, so it's a separate commit from the previous
7one.
8
9https://bugzilla.gnome.org/show_bug.cgi?id=686903
10---
11diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
12index 94be1c0..fbea52f 100644
13--- a/src/nautilus-toolbar.c
14+++ b/src/nautilus-toolbar.c
15@@ -34,6 +34,7 @@
16 #include <libnautilus-private/nautilus-global-preferences.h>
17 #include <libnautilus-private/nautilus-ui-utilities.h>
18
19+#include <glib/gi18n.h>
20 #include <math.h>
21
22 typedef enum {
23@@ -100,7 +101,8 @@ static GtkWidget *
24 toolbar_create_toolbutton (NautilusToolbar *self,
25 gboolean create_menu,
26 gboolean create_toggle,
27- const gchar *name)
28+ const gchar *name,
29+ const gchar *tooltip)
30 {
31 GtkWidget *button, *image;
32 GtkActionGroup *action_group;
33@@ -124,6 +126,7 @@ toolbar_create_toolbutton (NautilusToolbar *self,
34 if (create_menu) {
35 gtk_image_set_from_icon_name (GTK_IMAGE (image), name,
36 GTK_ICON_SIZE_MENU);
37+ gtk_widget_set_tooltip_text (button, tooltip);
38 } else {
39 action = gtk_action_group_get_action (action_group, name);
40 gtk_activatable_set_related_action (GTK_ACTIVATABLE (button), action);
41@@ -357,12 +360,12 @@ nautilus_toolbar_constructed (GObject *obj)
42 box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
43
44 /* Back */
45- tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_BACK);
46+ tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_BACK, NULL);
47 navigation_button_setup_menu (self, tool_button, NAUTILUS_NAVIGATION_DIRECTION_BACK);
48 gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
49
50 /* Forward */
51- tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_FORWARD);
52+ tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_FORWARD, NULL);
53 navigation_button_setup_menu (self, tool_button, NAUTILUS_NAVIGATION_DIRECTION_FORWARD);
54 gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
55
56@@ -396,7 +399,7 @@ nautilus_toolbar_constructed (GObject *obj)
57
58 /* search */
59 tool_item = gtk_tool_item_new ();
60- tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_SEARCH);
61+ tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_SEARCH, NULL);
62 gtk_container_add (GTK_CONTAINER (tool_item), GTK_WIDGET (tool_button));
63 gtk_container_add (GTK_CONTAINER (self->priv->toolbar), GTK_WIDGET (tool_item));
64 gtk_widget_show_all (GTK_WIDGET (tool_item));
65@@ -406,11 +409,11 @@ nautilus_toolbar_constructed (GObject *obj)
66 tool_item = gtk_tool_item_new ();
67 box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
68
69- tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_LIST);
70+ tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_LIST, NULL);
71 gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
72- tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_GRID);
73+ tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_GRID, NULL);
74 gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
75- tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "go-down-symbolic");
76+ tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "go-down-symbolic", _("View options"));
77 gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
78 menu = gtk_ui_manager_get_widget (ui_manager, "/ViewMenu");
79 gtk_menu_button_set_popup (GTK_MENU_BUTTON (tool_button), menu);
80@@ -427,7 +430,7 @@ nautilus_toolbar_constructed (GObject *obj)
81
82 /* Action Menu */
83 tool_item = gtk_tool_item_new ();
84- tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "emblem-system-symbolic");
85+ tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "emblem-system-symbolic", _("Location options"));
86 menu = gtk_ui_manager_get_widget (ui_manager, "/ActionMenu");
87 gtk_widget_set_halign (menu, GTK_ALIGN_END);
88 gtk_menu_button_set_popup (GTK_MENU_BUTTON (tool_button), menu);
890
=== removed file 'debian/patches/git_eel_needs_terminal.patch'
--- debian/patches/git_eel_needs_terminal.patch 2013-05-28 10:48:02 +0000
+++ debian/patches/git_eel_needs_terminal.patch 1970-01-01 00:00:00 +0000
@@ -1,175 +0,0 @@
1From 447d2ad6944afd94434a774b28f8c6e8274955fe Mon Sep 17 00:00:00 2001
2From: William Jon McCann <jmccann@redhat.com>
3Date: Fri, 15 Feb 2013 18:30:39 +0000
4Subject: eel: use G_APP_INFO_CREATE_NEEDS_TERMINAL to run command in terminal
5
6---
7diff --git a/eel/eel-gnome-extensions.c b/eel/eel-gnome-extensions.c
8index eaddfe5..e7b8ecb 100644
9--- a/eel/eel-gnome-extensions.c
10+++ b/eel/eel-gnome-extensions.c
11@@ -31,153 +31,19 @@
12 #include "eel-gnome-extensions.h"
13
14 #include <gtk/gtk.h>
15-#include <libgnome-desktop/gnome-desktop-utils.h>
16
17 /* Return a command string containing the path to a terminal on this system. */
18
19-static char *
20-try_terminal_command (const char *program,
21- const char *args)
22-{
23- char *program_in_path, *quoted, *result;
24-
25- if (program == NULL) {
26- return NULL;
27- }
28-
29- program_in_path = g_find_program_in_path (program);
30- if (program_in_path == NULL) {
31- return NULL;
32- }
33-
34- quoted = g_shell_quote (program_in_path);
35- g_free (program_in_path);
36- if (args == NULL || args[0] == '\0') {
37- return quoted;
38- }
39- result = g_strconcat (quoted, " ", args, NULL);
40- g_free (quoted);
41- return result;
42-}
43-
44-static char *
45-try_terminal_command_argv (int argc,
46- char **argv)
47-{
48- GString *string;
49- int i;
50- char *quoted, *result;
51-
52- if (argc == 0) {
53- return NULL;
54- }
55-
56- if (argc == 1) {
57- return try_terminal_command (argv[0], NULL);
58- }
59-
60- string = g_string_new (argv[1]);
61- for (i = 2; i < argc; i++) {
62- quoted = g_shell_quote (argv[i]);
63- g_string_append_c (string, ' ');
64- g_string_append (string, quoted);
65- g_free (quoted);
66- }
67- result = try_terminal_command (argv[0], string->str);
68- g_string_free (string, TRUE);
69-
70- return result;
71-}
72-
73-static char *
74-get_terminal_command_prefix (gboolean for_command)
75-{
76- int argc;
77- char **argv;
78- char *command;
79- guint i;
80- static const char *const commands[][3] = {
81- { "gnome-terminal", "-x", "" },
82- { "dtterm", "-e", "-ls" },
83- { "nxterm", "-e", "-ls" },
84- { "color-xterm", "-e", "-ls" },
85- { "rxvt", "-e", "-ls" },
86- { "xterm", "-e", "-ls" },
87- };
88-
89- /* Try the terminal from preferences. Use without any
90- * arguments if we are just doing a standalone terminal.
91- */
92- argc = 0;
93- argv = g_new0 (char *, 1);
94- gnome_desktop_prepend_terminal_to_vector (&argc, &argv);
95-
96- command = NULL;
97- if (argc != 0) {
98- if (for_command) {
99- command = try_terminal_command_argv (argc, argv);
100- } else {
101- /* Strip off the arguments in a lame attempt
102- * to make it be an interactive shell.
103- */
104- command = try_terminal_command (argv[0], NULL);
105- }
106- }
107-
108- while (argc != 0) {
109- g_free (argv[--argc]);
110- }
111- g_free (argv);
112-
113- if (command != NULL) {
114- return command;
115- }
116-
117- /* Try well-known terminal applications in same order that gmc did. */
118- for (i = 0; i < G_N_ELEMENTS (commands); i++) {
119- command = try_terminal_command (commands[i][0],
120- commands[i][for_command ? 1 : 2]);
121- if (command != NULL) {
122- break;
123- }
124- }
125-
126- return command;
127-}
128-
129-static char *
130-eel_gnome_make_terminal_command (const char *command)
131-{
132- char *prefix, *quoted, *terminal_command;
133-
134- if (command == NULL) {
135- return get_terminal_command_prefix (FALSE);
136- }
137- prefix = get_terminal_command_prefix (TRUE);
138- quoted = g_shell_quote (command);
139- terminal_command = g_strconcat (prefix, " /bin/sh -c ", quoted, NULL);
140- g_free (prefix);
141- g_free (quoted);
142- return terminal_command;
143-}
144-
145 void
146 eel_gnome_open_terminal_on_screen (const char *command,
147 GdkScreen *screen)
148 {
149- char *command_line;
150 GAppInfo *app;
151 GdkAppLaunchContext *ctx;
152 GError *error = NULL;
153 GdkDisplay *display;
154
155- command_line = eel_gnome_make_terminal_command (command);
156- if (command_line == NULL) {
157- g_message ("Could not start a terminal");
158- return;
159- }
160-
161- app = g_app_info_create_from_commandline (command_line, NULL, 0, &error);
162+ app = g_app_info_create_from_commandline (command, NULL, G_APP_INFO_CREATE_NEEDS_TERMINAL, &error);
163
164 if (app != NULL && screen != NULL) {
165 display = gdk_screen_get_display (screen);
166@@ -195,6 +61,4 @@ eel_gnome_open_terminal_on_screen (const char *command,
167
168 g_error_free (error);
169 }
170-
171- g_free (command_line);
172 }
173--
174cgit v0.9.1
175
1760
=== removed file 'debian/patches/git_enable_copy_from_recent.patch'
--- debian/patches/git_enable_copy_from_recent.patch 2013-04-04 23:22:13 +0000
+++ debian/patches/git_enable_copy_from_recent.patch 1970-01-01 00:00:00 +0000
@@ -1,58 +0,0 @@
1From b61e1d03b42723e13cf7dd05a26c9bd92dbac0ce Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Wed, 03 Apr 2013 22:08:09 +0000
4Subject: view: allow copying, and not cutting, from Recent Files
5
6Previously, we enabled the Cut action for the Recent location, and kept
7Copy and Copy To disabled. This should be the other way around, as
8copying a file from there is a valid option, whereas cutting/moving it
9doesn't make sense, being a virtual location.
10
11https://bugzilla.gnome.org/show_bug.cgi?id=690138
12---
13diff --git a/src/nautilus-view.c b/src/nautilus-view.c
14index 6b1bed2..357da27 100644
15--- a/src/nautilus-view.c
16+++ b/src/nautilus-view.c
17@@ -8386,6 +8386,7 @@ real_update_menus (NautilusView *view)
18 gboolean selection_contains_recent;
19 gboolean can_create_files;
20 gboolean can_delete_files;
21+ gboolean can_move_files;
22 gboolean can_trash_files;
23 gboolean can_copy_files;
24 gboolean can_link_files;
25@@ -8422,9 +8423,9 @@ real_update_menus (NautilusView *view)
26 !selection_contains_special_link &&
27 !selection_contains_desktop_or_home_dir;
28 can_copy_files = selection_count != 0
29- && !selection_contains_recent
30 && !selection_contains_special_link;
31
32+ can_move_files = can_delete_files && !selection_contains_recent;
33 can_link_files = can_create_files && can_copy_files;
34
35 action = gtk_action_group_get_action (view->details->dir_action_group,
36@@ -8717,7 +8718,7 @@ real_update_menus (NautilusView *view)
37
38 action = gtk_action_group_get_action (view->details->dir_action_group,
39 NAUTILUS_ACTION_CUT);
40- gtk_action_set_sensitive (action, can_delete_files);
41+ gtk_action_set_sensitive (action, can_move_files);
42 gtk_action_set_visible (action, !selection_contains_recent);
43
44 action = gtk_action_group_get_action (view->details->dir_action_group,
45@@ -8749,10 +8750,10 @@ real_update_menus (NautilusView *view)
46 action = gtk_action_group_get_action (view->details->dir_action_group,
47 NAUTILUS_ACTION_COPY_TO);
48 gtk_action_set_sensitive (action, can_copy_files);
49- gtk_action_set_visible (action, !selection_contains_recent);
50+
51 action = gtk_action_group_get_action (view->details->dir_action_group,
52 NAUTILUS_ACTION_MOVE_TO);
53- gtk_action_set_sensitive (action, can_delete_files);
54+ gtk_action_set_sensitive (action, can_move_files);
55 gtk_action_set_visible (action, !selection_contains_recent);
56
57 action = gtk_action_group_get_action (view->details->dir_action_group, NAUTILUS_ACTION_SHOW_HIDDEN_FILES);
58
590
=== removed file 'debian/patches/git_enable_simple_search_engine.patch'
--- debian/patches/git_enable_simple_search_engine.patch 2013-03-22 17:44:56 +0000
+++ debian/patches/git_enable_simple_search_engine.patch 1970-01-01 00:00:00 +0000
@@ -1,31 +0,0 @@
1From f65d3e15916a12fe2fe35b63e862b9f9d20920bf Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Mon, 22 Oct 2012 22:59:38 +0000
4Subject: search-directory: always start the simple engine
5
6This is needed to load results incrementally, which will be done in a
7separate commit.
8
9https://bugzilla.gnome.org/show_bug.cgi?id=325146
10---
11diff --git a/libnautilus-private/nautilus-search-engine.c b/libnautilus-private/nautilus-search-engine.c
12index fbeabe0..c92b745 100644
13--- a/libnautilus-private/nautilus-search-engine.c
14+++ b/libnautilus-private/nautilus-search-engine.c
15@@ -92,10 +92,10 @@ search_engine_start_real (NautilusSearchEngine *engine)
16 if (nautilus_search_engine_model_get_model (engine->details->model)) {
17 nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine->details->model));
18 engine->details->providers_running++;
19- } else {
20- nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine->details->simple));
21- engine->details->providers_running++;
22 }
23+
24+ nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine->details->simple));
25+ engine->details->providers_running++;
26 }
27
28 static void
29--
30cgit v0.9.1
31
320
=== removed file 'debian/patches/git_export_opened_locations_on_dbus.patch'
--- debian/patches/git_export_opened_locations_on_dbus.patch 2013-03-14 10:35:52 +0000
+++ debian/patches/git_export_opened_locations_on_dbus.patch 1970-01-01 00:00:00 +0000
@@ -1,261 +0,0 @@
1Description: Add a new dbus property to the nautilus'
2 "org.freedesktop.FileManager1" dbus interface where it stores a list of
3 currently opened locations.
4
5Origin: upstream, https://git.gnome.org/browse/nautilus/commit/?id=e6fecc0500b83
6 https://git.gnome.org/browse/nautilus/commit/?id=980512c
7 https://git.gnome.org/browse/nautilus/commit/?id=49115b85
8 https://git.gnome.org/browse/nautilus/commit/?id=b8eebe95
9Bug: https://bugzilla.gnome.org/show_bug.cgi?id=694266
10Bug-Ubuntu: https://bugs.launchpad.net/nautilus/+bug/1063830
11Forwarded: yes
12Applied-Upstream: 3.7.91
13Author: Marco Trevisan <marco@ubuntu.com>
14
15Index: nautilus/src/nautilus-application.c
16===================================================================
17--- nautilus.orig/src/nautilus-application.c 2013-03-13 01:08:30.906653182 +0100
18+++ nautilus/src/nautilus-application.c 2013-03-13 01:27:30.152464886 +0100
19@@ -524,7 +524,7 @@
20 g_return_val_if_fail (NAUTILUS_IS_APPLICATION (application), NULL);
21 nautilus_profile_start (NULL);
22
23- window = nautilus_window_new (GTK_APPLICATION (application), screen);
24+ window = nautilus_window_new (screen);
25
26 maximized = g_settings_get_boolean
27 (nautilus_window_state, NAUTILUS_WINDOW_STATE_MAXIMIZED);
28@@ -1579,6 +1579,98 @@
29 }
30
31 static void
32+update_dbus_opened_locations (NautilusApplication *app)
33+{
34+ gint i;
35+ GList *l, *sl;
36+ GList *locations = NULL;
37+ gsize locations_size = 0;
38+ gchar **locations_array;
39+
40+ g_return_if_fail (NAUTILUS_IS_APPLICATION (app));
41+
42+ for (l = gtk_application_get_windows (GTK_APPLICATION (app)); l; l = l->next) {
43+ NautilusWindow *win = NAUTILUS_WINDOW (l->data);
44+
45+ if (NAUTILUS_IS_DESKTOP_WINDOW (win)) {
46+ continue;
47+ }
48+
49+ for (sl = nautilus_window_get_slots (win); sl; sl = sl->next) {
50+ NautilusWindowSlot *slot = NAUTILUS_WINDOW_SLOT (sl->data);
51+ gchar *uri = nautilus_window_slot_get_location_uri (slot);
52+
53+ if (uri) {
54+ GList *found = g_list_find_custom (locations, uri, (GCompareFunc) g_strcmp0);
55+
56+ if (!found) {
57+ locations = g_list_prepend (locations, uri);
58+ ++locations_size;
59+ } else {
60+ g_free (uri);
61+ }
62+ }
63+ }
64+ }
65+
66+ locations_array = g_new (gchar*, locations_size + 1);
67+
68+ for (i = 0, l = locations; l; l = l->next, ++i) {
69+ /* We reuse the locations string locations saved on list */
70+ locations_array[i] = l->data;
71+ }
72+
73+ locations_array[locations_size] = NULL;
74+
75+ nautilus_freedesktop_dbus_set_open_locations ((const gchar**) locations_array);
76+
77+ g_free (locations_array);
78+ g_list_free_full (locations, g_free);
79+}
80+
81+static void
82+on_slot_location_changed (NautilusWindowSlot *slot,
83+ const char *from,
84+ const char *to,
85+ NautilusApplication *application)
86+{
87+ update_dbus_opened_locations (application);
88+}
89+
90+static void
91+on_slot_added (NautilusWindow *window,
92+ NautilusWindowSlot *slot,
93+ NautilusApplication *application)
94+{
95+ if (nautilus_window_slot_get_location (slot)) {
96+ update_dbus_opened_locations (application);
97+ }
98+
99+ g_signal_connect (slot, "location-changed", G_CALLBACK (on_slot_location_changed), application);
100+}
101+
102+static void
103+on_slot_removed (NautilusWindow *window,
104+ NautilusWindowSlot *slot,
105+ NautilusApplication *application)
106+{
107+ update_dbus_opened_locations (application);
108+
109+ g_signal_handlers_disconnect_by_func (slot, on_slot_location_changed, application);
110+}
111+
112+static void
113+nautilus_application_window_added (GtkApplication *app,
114+ GtkWindow *window)
115+{
116+ /* chain to parent */
117+ GTK_APPLICATION_CLASS (nautilus_application_parent_class)->window_added (app, window);
118+
119+ g_signal_connect (window, "slot-added", G_CALLBACK (on_slot_added), app);
120+ g_signal_connect (window, "slot-removed", G_CALLBACK (on_slot_removed), app);
121+}
122+
123+static void
124 nautilus_application_window_removed (GtkApplication *app,
125 GtkWindow *window)
126 {
127@@ -1592,6 +1684,9 @@
128 previewer = nautilus_previewer_get_singleton ();
129 nautilus_previewer_call_close (previewer);
130 }
131+
132+ g_signal_handlers_disconnect_by_func (window, on_slot_added, app);
133+ g_signal_handlers_disconnect_by_func (window, on_slot_removed, app);
134 }
135
136 static void
137@@ -1611,6 +1706,7 @@
138 application_class->local_command_line = nautilus_application_local_command_line;
139
140 gtkapp_class = GTK_APPLICATION_CLASS (class);
141+ gtkapp_class->window_added = nautilus_application_window_added;
142 gtkapp_class->window_removed = nautilus_application_window_removed;
143
144 g_type_class_add_private (class, sizeof (NautilusApplicationPriv));
145Index: nautilus/src/nautilus-window.c
146===================================================================
147--- nautilus.orig/src/nautilus-window.c 2013-03-13 01:08:43.558919000 +0100
148+++ nautilus/src/nautilus-window.c 2013-03-13 01:29:17.256160975 +0100
149@@ -1119,6 +1119,7 @@
150 static void
151 nautilus_window_constructed (GObject *self)
152 {
153+ NautilusApplication *application;
154 NautilusWindow *window;
155 GtkWidget *grid;
156 NautilusWindowSlot *slot;
157@@ -1129,6 +1130,9 @@
158
159 G_OBJECT_CLASS (nautilus_window_parent_class)->constructed (self);
160
161+ application = NAUTILUS_APPLICATION (g_application_get_default ());
162+ gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (application));
163+
164 /* disable automatic menubar handling, since we show our regular
165 * menubar together with the app menu.
166 */
167@@ -2028,11 +2032,9 @@
168 }
169
170 NautilusWindow *
171-nautilus_window_new (GtkApplication *application,
172- GdkScreen *screen)
173+nautilus_window_new (GdkScreen *screen)
174 {
175 return g_object_new (NAUTILUS_TYPE_WINDOW,
176- "application", application,
177 "screen", screen,
178 NULL);
179 }
180Index: nautilus/data/freedesktop-dbus-interfaces.xml
181===================================================================
182--- nautilus.orig/data/freedesktop-dbus-interfaces.xml 2013-03-12 13:22:34.506542000 +0100
183+++ nautilus/data/freedesktop-dbus-interfaces.xml 2013-03-13 01:14:24.283872283 +0100
184@@ -32,5 +32,6 @@
185 <arg type='as' name='URIs' direction='in'/>
186 <arg type='s' name='StartupId' direction='in'/>
187 </method>
188+ <property name="OpenLocations" type="as" access="read"/>
189 </interface>
190 </node>
191Index: nautilus/src/nautilus-freedesktop-dbus.c
192===================================================================
193--- nautilus.orig/src/nautilus-freedesktop-dbus.c 2013-03-12 13:22:34.506542000 +0100
194+++ nautilus/src/nautilus-freedesktop-dbus.c 2013-03-13 01:27:53.096401970 +0100
195@@ -295,6 +295,14 @@
196 /* nothing */
197 }
198
199+void
200+nautilus_freedesktop_dbus_set_open_locations (const gchar **locations)
201+{
202+ g_return_if_fail (singleton);
203+
204+ nautilus_freedesktop_file_manager1_set_open_locations (singleton->skeleton, locations);
205+}
206+
207 /* Tries to own the org.freedesktop.FileManager1 service name */
208 void
209 nautilus_freedesktop_dbus_start (NautilusApplication *app)
210Index: nautilus/src/nautilus-freedesktop-dbus.h
211===================================================================
212--- nautilus.orig/src/nautilus-freedesktop-dbus.h 2013-03-12 13:22:34.506542000 +0100
213+++ nautilus/src/nautilus-freedesktop-dbus.h 2013-03-13 01:17:19.716808253 +0100
214@@ -27,5 +27,6 @@
215
216 void nautilus_freedesktop_dbus_start (NautilusApplication *app);
217 void nautilus_freedesktop_dbus_stop (void);
218+void nautilus_freedesktop_dbus_set_open_locations (const gchar **locations);
219
220 #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */
221Index: nautilus/src/nautilus-window-manage-views.c
222===================================================================
223--- nautilus.orig/src/nautilus-window-manage-views.c 2013-03-12 19:34:31.062512185 +0100
224+++ nautilus/src/nautilus-window-manage-views.c 2013-03-13 01:24:32.876892020 +0100
225@@ -1405,6 +1405,7 @@
226 update_for_new_location (NautilusWindowSlot *slot)
227 {
228 NautilusWindow *window;
229+ GFile *old_location;
230 GFile *new_location;
231 NautilusFile *file;
232 NautilusDirectory *directory;
233@@ -1424,11 +1425,11 @@
234 slot->location == NULL ||
235 !g_file_equal (slot->location, new_location);
236
237- nautilus_window_slot_emit_location_change (slot, slot->location, new_location);
238-
239 /* Set the new location. */
240- g_clear_object (&slot->location);
241+ old_location = slot->location;
242 slot->location = new_location;
243+ nautilus_window_slot_emit_location_change (slot, old_location, new_location);
244+ g_clear_object (&old_location);
245
246 /* Create a NautilusFile for this location, so we can catch it
247 * if it goes away.
248Index: nautilus/src/nautilus-window.h
249===================================================================
250--- nautilus.orig/src/nautilus-window.h 2013-03-13 01:08:30.934652783 +0100
251+++ nautilus/src/nautilus-window.h 2013-03-13 01:08:55.798311025 +0100
252@@ -93,8 +93,7 @@
253 };
254
255 GType nautilus_window_get_type (void);
256-NautilusWindow * nautilus_window_new (GtkApplication *application,
257- GdkScreen *screen);
258+NautilusWindow * nautilus_window_new (GdkScreen *screen);
259 void nautilus_window_close (NautilusWindow *window);
260
261 void nautilus_window_connect_content_view (NautilusWindow *window,
2620
=== removed file 'debian/patches/git_fix_touch_double_click.patch'
--- debian/patches/git_fix_touch_double_click.patch 2013-03-06 17:49:53 +0000
+++ debian/patches/git_fix_touch_double_click.patch 1970-01-01 00:00:00 +0000
@@ -1,29 +0,0 @@
1Subject: [PATCH] eel-canvas: fix double tap with touchscreen devices
2
3Code here is not doing what the comment (and the symmetric part in
4the RELEASE case) says.
5
6https://bugzilla.gnome.org/show_bug.cgi?id=688281
7---
8 eel/eel-canvas.c | 4 +++-
9 1 file changed, 3 insertions(+), 1 deletion(-)
10
11diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
12index 4fdef13..7ebd6cc 100644
13--- a/eel/eel-canvas.c
14+++ b/eel/eel-canvas.c
15@@ -2668,9 +2668,11 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event)
16 /* Pick the current item as if the button were not pressed, and
17 * then process the event.
18 */
19+ event->state ^= mask;
20 canvas->state = event->state;
21 pick_current_item (canvas, (GdkEvent *) event);
22- canvas->state ^= mask;
23+ event->state ^= mask;
24+ canvas->state = event->state;
25 retval = emit_event (canvas, (GdkEvent *) event);
26 break;
27
28--
291.8.1.2
300
=== removed file 'debian/patches/git_launcher_no_frame.patch'
--- debian/patches/git_launcher_no_frame.patch 2012-12-03 14:38:18 +0000
+++ debian/patches/git_launcher_no_frame.patch 1970-01-01 00:00:00 +0000
@@ -1,103 +0,0 @@
1From 6cde4c5a6d639c85df09b8992a307f91d6b056a6 Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Tue, 13 Nov 2012 13:16:17 +0000
4Subject: file: don't add a thumbnail border around desktop file launchers
5
6https://bugzilla.gnome.org/show_bug.cgi?id=688237
7---
8diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
9index e9b7715..d554376 100644
10--- a/libnautilus-private/nautilus-file.c
11+++ b/libnautilus-private/nautilus-file.c
12@@ -3953,6 +3953,18 @@ get_custom_icon_metadata_name (NautilusFile *file)
13 }
14
15 static GIcon *
16+get_link_icon (NautilusFile *file)
17+{
18+ GIcon *icon = NULL;
19+
20+ if (file->details->got_link_info && file->details->custom_icon != NULL) {
21+ icon = g_object_ref (file->details->custom_icon);
22+ }
23+
24+ return icon;
25+}
26+
27+static GIcon *
28 get_custom_icon (NautilusFile *file)
29 {
30 char *custom_icon_uri, *custom_icon_name;
31@@ -3985,11 +3997,7 @@ get_custom_icon (NautilusFile *file)
32 g_free (custom_icon_name);
33 }
34 }
35-
36- if (icon == NULL && file->details->got_link_info && file->details->custom_icon != NULL) {
37- icon = g_object_ref (file->details->custom_icon);
38- }
39-
40+
41 return icon;
42 }
43
44@@ -4086,6 +4094,12 @@ nautilus_file_get_gicon (NautilusFile *file,
45 return icon;
46 }
47
48+ icon = get_link_icon (file);
49+
50+ if (icon != NULL) {
51+ return icon;
52+ }
53+
54 if (file->details->icon) {
55 icon = NULL;
56
57@@ -4218,27 +4232,36 @@ nautilus_file_get_icon (NautilusFile *file,
58 {
59 NautilusIconInfo *icon;
60 GIcon *gicon;
61+ gboolean custom_icon;
62 GdkPixbuf *raw_pixbuf, *scaled_pixbuf;
63 int modified_size;
64
65 if (file == NULL) {
66 return NULL;
67 }
68-
69+
70+ custom_icon = FALSE;
71 gicon = get_custom_icon (file);
72+
73 if (gicon) {
74- GdkPixbuf *pixbuf;
75+ custom_icon = TRUE;
76+ } else {
77+ gicon = get_link_icon (file);
78+ }
79
80+ if (gicon) {
81 icon = nautilus_icon_info_lookup (gicon, size);
82 g_object_unref (gicon);
83
84- pixbuf = nautilus_icon_info_get_pixbuf (icon);
85- if (pixbuf != NULL) {
86- nautilus_ui_frame_image (&pixbuf);
87- g_object_unref (icon);
88+ if (custom_icon) {
89+ raw_pixbuf = nautilus_icon_info_get_pixbuf (icon);
90+ if (raw_pixbuf != NULL) {
91+ nautilus_ui_frame_image (&raw_pixbuf);
92+ g_object_unref (icon);
93
94- icon = nautilus_icon_info_new_for_pixbuf (pixbuf);
95- g_object_unref (pixbuf);
96+ icon = nautilus_icon_info_new_for_pixbuf (raw_pixbuf);
97+ g_object_unref (raw_pixbuf);
98+ }
99 }
100
101 return icon;
102--
103cgit v0.9.0.2
1040
=== removed file 'debian/patches/git_margin_primary_workarea_revert.patch'
--- debian/patches/git_margin_primary_workarea_revert.patch 2013-03-20 17:59:04 +0000
+++ debian/patches/git_margin_primary_workarea_revert.patch 1970-01-01 00:00:00 +0000
@@ -1,60 +0,0 @@
1From 6f6fcf1b4e99c8a5186c78e911a159b1f06df7b0 Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Tue, 19 Mar 2013 23:25:37 +0000
4Subject: Revert "desktop-canvas: set margins according to the primary workarea"
5
6This fix proved to be more problematic than the original bug, so we'll
7revert to the original behavior for now.
8
9This reverts commit 1292610b87be44fcd5a7d5a09738cd7f3287325f.
10
11https://bugzilla.gnome.org/show_bug.cgi?id=695336
12---
13diff --git a/src/nautilus-desktop-canvas-view.c b/src/nautilus-desktop-canvas-view.c
14index fb75139..75287ec 100644
15--- a/src/nautilus-desktop-canvas-view.c
16+++ b/src/nautilus-desktop-canvas-view.c
17@@ -99,27 +99,27 @@ canvas_container_set_workarea (NautilusCanvasContainer *canvas_container,
18 int n_items)
19 {
20 int left, right, top, bottom;
21+ int screen_width, screen_height;
22 int i;
23- GdkRectangle geometry;
24
25 left = right = top = bottom = 0;
26- gdk_screen_get_monitor_geometry (screen, gdk_screen_get_primary_monitor (screen), &geometry);
27
28- for (i = 0; i < n_items; i += 4) {
29- GdkRectangle workarea;
30+ screen_width = gdk_screen_get_width (screen);
31+ screen_height = gdk_screen_get_height (screen);
32
33- workarea.x = workareas[i];
34- workarea.y = workareas[i + 1];
35- workarea.width = workareas[i + 2];
36- workarea.height = workareas[i + 3];
37+ for (i = 0; i < n_items; i += 4) {
38+ int x = workareas [i];
39+ int y = workareas [i + 1];
40+ int width = workareas [i + 2];
41+ int height = workareas [i + 3];
42
43- if (!gdk_rectangle_intersect (&geometry, &workarea, &workarea))
44+ if ((x + width) > screen_width || (y + height) > screen_height)
45 continue;
46
47- left = MAX (left, workarea.x);
48- right = MAX (right, (geometry.x + geometry.width) - (workarea.x + workarea.width));
49- top = MAX (top, workarea.y);
50- bottom = MAX (bottom, (geometry.y + geometry.height) - (workarea.y + workarea.height));
51+ left = MAX (left, x);
52+ right = MAX (right, screen_width - width - x);
53+ top = MAX (top, y);
54+ bottom = MAX (bottom, screen_height - height - y);
55 }
56
57 nautilus_canvas_container_set_margins (canvas_container,
58--
59cgit v0.9.1
60
610
=== removed file 'debian/patches/git_rank_exact_matches_higher.patch'
--- debian/patches/git_rank_exact_matches_higher.patch 2013-04-16 10:17:12 +0000
+++ debian/patches/git_rank_exact_matches_higher.patch 1970-01-01 00:00:00 +0000
@@ -1,49 +0,0 @@
1From 8d0ae533c01fc785c097329f2e7f9a3faf686b6d Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Thu, 04 Apr 2013 21:59:31 +0000
4Subject: query: rank prefix matches lower than exact matches
5
6Count how many letters are left after the string occurrence, and
7subtract that from the match score.
8---
9diff --git a/libnautilus-private/nautilus-query.c b/libnautilus-private/nautilus-query.c
10index 1393cd0..f282b0c 100644
11--- a/libnautilus-private/nautilus-query.c
12+++ b/libnautilus-private/nautilus-query.c
13@@ -96,7 +96,7 @@ nautilus_query_matches_string (NautilusQuery *query,
14 gchar *prepared_string, *ptr;
15 gboolean found;
16 gdouble retval;
17- gint idx;
18+ gint idx, nonexact_malus;
19
20 if (!query->details->text) {
21 return -1;
22@@ -111,12 +111,15 @@ nautilus_query_matches_string (NautilusQuery *query,
23 prepared_string = prepare_string_for_compare (string);
24 found = TRUE;
25 ptr = NULL;
26+ nonexact_malus = 0;
27
28 for (idx = 0; query->details->prepared_words[idx] != NULL; idx++) {
29 if ((ptr = strstr (prepared_string, query->details->prepared_words[idx])) == NULL) {
30 found = FALSE;
31 break;
32 }
33+
34+ nonexact_malus += strlen (ptr) - strlen (query->details->prepared_words[idx]);
35 }
36
37 if (!found) {
38@@ -124,7 +127,7 @@ nautilus_query_matches_string (NautilusQuery *query,
39 return -1;
40 }
41
42- retval = MAX (10.0, (50.0 / idx) - (gdouble) (ptr - prepared_string));
43+ retval = MAX (10.0, 50.0 - (gdouble) (ptr - prepared_string) - nonexact_malus);
44 g_free (prepared_string);
45
46 return retval;
47--
48cgit v0.9.1
49
500
=== removed file 'debian/patches/git_rank_reversed.patch'
--- debian/patches/git_rank_reversed.patch 2013-04-16 10:17:12 +0000
+++ debian/patches/git_rank_reversed.patch 1970-01-01 00:00:00 +0000
@@ -1,26 +0,0 @@
1From 771d497088bdc7c6c8be3c6a38f815c8ad531fca Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Fri, 05 Apr 2013 00:01:35 +0000
4Subject: file: do not reverse collated order for files with same search rank
5
6When two search results rank equally, we fall back to the collated
7order.
8Since search is usually ranked reversed (highest at the top), we need to
9ensure we don't accidentally reverse the collated order as well.
10
11https://bugzilla.gnome.org/show_bug.cgi?id=688772
12---
13diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
14index 60a1954..35235e1 100644
15--- a/libnautilus-private/nautilus-file.c
16+++ b/libnautilus-private/nautilus-file.c
17@@ -3191,6 +3191,9 @@ nautilus_file_compare_for_sort (NautilusFile *file_1,
18 result = compare_by_search_relevance (file_1, file_2);
19 if (result == 0) {
20 result = compare_by_full_path (file_1, file_2);
21+
22+ /* ensure alphabetical order for files of the same relevance */
23+ reversed = FALSE;
24 }
25 break;
26 default:
270
=== removed file 'debian/patches/git_reset_view_to_defaults.patch'
--- debian/patches/git_reset_view_to_defaults.patch 2013-04-16 10:17:12 +0000
+++ debian/patches/git_reset_view_to_defaults.patch 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1From 7ec5b026f5d1afe52e8c046b329ef30d7d3bc0a5 Mon Sep 17 00:00:00 2001
2From: Michael Wood <michael.g.wood@intel.com>
3Date: Wed, 10 Apr 2013 15:57:05 +0000
4Subject: view: Make sure we chain down to call reset_to_defaults on the view.
5
6---
7diff --git a/src/nautilus-view.c b/src/nautilus-view.c
8index 357da27..4441c40 100644
9--- a/src/nautilus-view.c
10+++ b/src/nautilus-view.c
11@@ -474,6 +474,7 @@
12 NAUTILUS_ACTION_SHOW_HIDDEN_FILES);
13 gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action),
14 g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES));
15+ NAUTILUS_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->reset_to_defaults (view);
16 }
17
18 static gboolean
190
=== removed file 'debian/patches/git_restore_filename.patch'
--- debian/patches/git_restore_filename.patch 2012-12-03 14:37:29 +0000
+++ debian/patches/git_restore_filename.patch 1970-01-01 00:00:00 +0000
@@ -1,46 +0,0 @@
1From ecee8be850b8342c804de2ecc3e613b99a20a010 Mon Sep 17 00:00:00 2001
2From: Timothy Arceri <t_arceri@yahoo.com.au>
3Date: Thu, 29 Nov 2012 06:39:36 +0000
4Subject: Make sure to use correct filename when restoring from Trash
5
6https://bugzilla.gnome.org/show_bug.cgi?id=673598
7---
8diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
9index b60b748..85d5a6f 100644
10--- a/libnautilus-private/nautilus-file-operations.c
11+++ b/libnautilus-private/nautilus-file-operations.c
12@@ -3258,18 +3258,28 @@ get_target_file_with_custom_name (GFile *src,
13
14 if (dest == NULL && !same_fs) {
15 info = g_file_query_info (src,
16- G_FILE_ATTRIBUTE_STANDARD_COPY_NAME,
17+ G_FILE_ATTRIBUTE_STANDARD_COPY_NAME ","
18+ G_FILE_ATTRIBUTE_TRASH_ORIG_PATH,
19 0, NULL, NULL);
20
21 if (info) {
22- copyname = g_strdup (g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_COPY_NAME));
23+ copyname = NULL;
24+
25+ /* if file is being restored from trash make sure it uses its original name */
26+ if (g_file_has_uri_scheme (src, "trash")) {
27+ copyname = g_strdup (g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH));
28+ }
29+
30+ if (copyname == NULL) {
31+ copyname = g_strdup (g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_COPY_NAME));
32+ }
33
34 if (copyname) {
35 make_file_name_valid_for_dest_fs (copyname, dest_fs_type);
36 dest = g_file_get_child_for_display_name (dest_dir, copyname, NULL);
37 g_free (copyname);
38 }
39-
40+
41 g_object_unref (info);
42 }
43 }
44--
45cgit v0.9.0.2
46
470
=== removed file 'debian/patches/git_restore_from_missing_directories.patch'
--- debian/patches/git_restore_from_missing_directories.patch 2013-04-04 23:48:07 +0000
+++ debian/patches/git_restore_from_missing_directories.patch 1970-01-01 00:00:00 +0000
@@ -1,142 +0,0 @@
1From f1cb32831df32009f7e8bd5fcc35c5ccdf64eee4 Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Tue, 19 Mar 2013 09:30:45 +0000
4Subject: file-utils: ensure directories exist before restoring from trash
5
6Before restoring a file from trash, ensure its target directory exists on
7disk, otherwise the restore operation will fail trying to move a file to
8a nonexistent location.
9
10https://bugzilla.gnome.org/show_bug.cgi?id=695460
11---
12diff --git a/libnautilus-private/nautilus-file-utilities.c b/libnautilus-private/nautilus-file-utilities.c
13index 2b779a1..a28f961 100644
14--- a/libnautilus-private/nautilus-file-utilities.c
15+++ b/libnautilus-private/nautilus-file-utilities.c
16@@ -1160,15 +1160,92 @@ locations_from_file_list (GList *file_list)
17 return g_list_reverse (ret);
18 }
19
20+typedef struct {
21+ GHashTable *original_dirs_hash;
22+ GtkWindow *parent_window;
23+} RestoreFilesData;
24+
25+static void
26+ensure_dirs_task_ready_cb (GObject *_source,
27+ GAsyncResult *res,
28+ gpointer user_data)
29+{
30+ NautilusFile *original_dir;
31+ GFile *original_dir_location;
32+ GList *original_dirs, *files, *locations, *l;
33+ RestoreFilesData *data = user_data;
34+
35+ original_dirs = g_hash_table_get_keys (data->original_dirs_hash);
36+ for (l = original_dirs; l != NULL; l = l->next) {
37+ original_dir = NAUTILUS_FILE (l->data);
38+ original_dir_location = nautilus_file_get_location (original_dir);
39+
40+ files = g_hash_table_lookup (data->original_dirs_hash, original_dir);
41+ locations = locations_from_file_list (files);
42+
43+ nautilus_file_operations_move
44+ (locations, NULL,
45+ original_dir_location,
46+ data->parent_window,
47+ NULL, NULL);
48+
49+ g_list_free_full (locations, g_object_unref);
50+ g_object_unref (original_dir_location);
51+ }
52+
53+ g_list_free (original_dirs);
54+
55+ g_hash_table_unref (data->original_dirs_hash);
56+ g_slice_free (RestoreFilesData, data);
57+}
58+
59+static void
60+ensure_dirs_task_thread_func (GTask *task,
61+ gpointer source,
62+ gpointer task_data,
63+ GCancellable *cancellable)
64+{
65+ RestoreFilesData *data = task_data;
66+ NautilusFile *original_dir;
67+ GFile *original_dir_location;
68+ GList *original_dirs, *l;
69+
70+ original_dirs = g_hash_table_get_keys (data->original_dirs_hash);
71+ for (l = original_dirs; l != NULL; l = l->next) {
72+ original_dir = NAUTILUS_FILE (l->data);
73+ original_dir_location = nautilus_file_get_location (original_dir);
74+
75+ g_file_make_directory_with_parents (original_dir_location, cancellable, NULL);
76+ g_object_unref (original_dir_location);
77+ }
78+
79+ g_task_return_pointer (task, NULL, NULL);
80+}
81+
82+static void
83+restore_files_ensure_parent_directories (GHashTable *original_dirs_hash,
84+ GtkWindow *parent_window)
85+{
86+ RestoreFilesData *data;
87+ GTask *ensure_dirs_task;
88+
89+ data = g_slice_new0 (RestoreFilesData);
90+ data->parent_window = parent_window;
91+ data->original_dirs_hash = g_hash_table_ref (original_dirs_hash);
92+
93+ ensure_dirs_task = g_task_new (NULL, NULL, ensure_dirs_task_ready_cb, data);
94+ g_task_set_task_data (ensure_dirs_task, data, NULL);
95+ g_task_run_in_thread (ensure_dirs_task, ensure_dirs_task_thread_func);
96+ g_object_unref (ensure_dirs_task);
97+}
98+
99 void
100 nautilus_restore_files_from_trash (GList *files,
101 GtkWindow *parent_window)
102 {
103- NautilusFile *file, *original_dir;
104+ NautilusFile *file;
105 GHashTable *original_dirs_hash;
106- GList *original_dirs, *unhandled_files;
107- GFile *original_dir_location;
108- GList *locations, *l;
109+ GList *unhandled_files, *l;
110 char *message, *file_name;
111
112 original_dirs_hash = nautilus_trashed_files_get_original_directories (files, &unhandled_files);
113@@ -1186,26 +1263,8 @@ nautilus_restore_files_from_trash (GList *files,
114 }
115
116 if (original_dirs_hash != NULL) {
117- original_dirs = g_hash_table_get_keys (original_dirs_hash);
118- for (l = original_dirs; l != NULL; l = l->next) {
119- original_dir = NAUTILUS_FILE (l->data);
120- original_dir_location = nautilus_file_get_location (original_dir);
121-
122- files = g_hash_table_lookup (original_dirs_hash, original_dir);
123- locations = locations_from_file_list (files);
124-
125- nautilus_file_operations_move
126- (locations, NULL,
127- original_dir_location,
128- parent_window,
129- NULL, NULL);
130-
131- g_list_free_full (locations, g_object_unref);
132- g_object_unref (original_dir_location);
133- }
134-
135- g_list_free (original_dirs);
136- g_hash_table_destroy (original_dirs_hash);
137+ restore_files_ensure_parent_directories (original_dirs_hash, parent_window);
138+ g_hash_table_unref (original_dirs_hash);
139 }
140
141 nautilus_file_list_unref (unhandled_files);
142
1430
=== removed file 'debian/patches/git_reuse_already_opened_views.patch'
--- debian/patches/git_reuse_already_opened_views.patch 2013-03-14 10:35:52 +0000
+++ debian/patches/git_reuse_already_opened_views.patch 1970-01-01 00:00:00 +0000
@@ -1,302 +0,0 @@
1Description: Focus already opened nautilus windows or tabs when an already
2 opened location is requested. Add a --new-window command to force the opening
3 of a new window.
4
5Origin: upstream, https://git.gnome.org/browse/nautilus/commit/?id=c8ee0c5
6 https://git.gnome.org/browse/nautilus/commit/?id=d0b0b
7 https://git.gnome.org/browse/nautilus/commit/?id=ce4255cf
8Bug: https://bugzilla.gnome.org/show_bug.cgi?id=694034
9Bug-Ubuntu: https://bugs.launchpad.net/nautilus/+bug/692444
10Forwarded: yes
11Applied-Upstream: 3.7.91
12Author: Marco Trevisan <marco@ubuntu.com>
13
14Index: nautilus/data/nautilus.desktop.in.in
15===================================================================
16--- nautilus.orig/data/nautilus.desktop.in.in 2013-03-12 19:34:31.066512196 +0100
17+++ nautilus/data/nautilus.desktop.in.in 2013-03-12 19:34:41.726459664 +0100
18@@ -1,7 +1,7 @@
19 [Desktop Entry]
20 _Name=Files
21 _Comment=Access and organize files
22-Exec=nautilus %U
23+Exec=nautilus --new-window %U
24 Icon=system-file-manager
25 Terminal=false
26 Type=Application
27Index: nautilus/libnautilus-private/nautilus-file-utilities.c
28===================================================================
29--- nautilus.orig/libnautilus-private/nautilus-file-utilities.c 2013-03-12 19:34:31.066512196 +0100
30+++ nautilus/libnautilus-private/nautilus-file-utilities.c 2013-03-12 19:34:31.058512174 +0100
31@@ -1296,6 +1296,48 @@
32 return NULL;
33 }
34
35+gboolean
36+nautilus_file_selection_equal (GList *selection_a,
37+ GList *selection_b)
38+{
39+ GList *al, *bl;
40+ gboolean selection_matches;
41+
42+ if (selection_a == NULL || selection_b == NULL) {
43+ return (selection_a == selection_b);
44+ }
45+
46+ if (g_list_length (selection_a) != g_list_length (selection_b)) {
47+ return FALSE;
48+ }
49+
50+ selection_matches = TRUE;
51+
52+ for (al = selection_a; al; al = al->next) {
53+ GFile *a_location = nautilus_file_get_location (NAUTILUS_FILE (al->data));
54+ gboolean found = FALSE;
55+
56+ for (bl = selection_b; bl; bl = bl->next) {
57+ GFile *b_location = nautilus_file_get_location (NAUTILUS_FILE (bl->data));
58+ found = g_file_equal (b_location, a_location);
59+ g_object_unref (b_location);
60+
61+ if (found) {
62+ break;
63+ }
64+ }
65+
66+ selection_matches = found;
67+ g_object_unref (a_location);
68+
69+ if (!selection_matches) {
70+ break;
71+ }
72+ }
73+
74+ return selection_matches;
75+}
76+
77 #if !defined (NAUTILUS_OMIT_SELF_CHECK)
78
79 void
80Index: nautilus/libnautilus-private/nautilus-file-utilities.h
81===================================================================
82--- nautilus.orig/libnautilus-private/nautilus-file-utilities.h 2013-03-12 19:34:31.066512196 +0100
83+++ nautilus/libnautilus-private/nautilus-file-utilities.h 2013-03-12 19:34:31.058512174 +0100
84@@ -95,4 +95,6 @@
85 GCancellable *cancellable,
86 gpointer user_data);
87
88+gboolean nautilus_file_selection_equal (GList *selection_a, GList *selection_b);
89+
90 #endif /* NAUTILUS_FILE_UTILITIES_H */
91Index: nautilus/src/nautilus-application.c
92===================================================================
93--- nautilus.orig/src/nautilus-application.c 2013-03-12 19:34:31.066512196 +0100
94+++ nautilus/src/nautilus-application.c 2013-03-12 19:34:31.058512174 +0100
95@@ -576,6 +576,47 @@
96 }
97 }
98
99+static NautilusWindowSlot *
100+get_window_slot_for_location (NautilusApplication *application, GFile *location)
101+{
102+ NautilusWindowSlot *slot;
103+ GList *l, *sl;
104+
105+ slot = NULL;
106+
107+ if (g_file_query_file_type (location, G_FILE_QUERY_INFO_NONE, NULL) != G_FILE_TYPE_DIRECTORY) {
108+ location = g_file_get_parent (location);
109+ } else {
110+ g_object_ref (location);
111+ }
112+
113+ for (l = gtk_application_get_windows (GTK_APPLICATION (application)); l; l = l->next) {
114+ NautilusWindow *win = NAUTILUS_WINDOW (l->data);
115+
116+ if (NAUTILUS_IS_DESKTOP_WINDOW (win))
117+ continue;
118+
119+ for (sl = nautilus_window_get_slots (win); sl; sl = sl->next) {
120+ NautilusWindowSlot *current = NAUTILUS_WINDOW_SLOT (sl->data);
121+ GFile *slot_location = nautilus_window_slot_get_location (current);
122+
123+ if (g_file_equal (slot_location, location)) {
124+ slot = current;
125+ break;
126+ }
127+ }
128+
129+ if (slot) {
130+ break;
131+ }
132+ }
133+
134+ g_object_unref (location);
135+
136+ return slot;
137+}
138+
139+
140 static void
141 open_window (NautilusApplication *application,
142 GFile *location, GdkScreen *screen, const char *geometry)
143@@ -609,6 +650,7 @@
144
145 static void
146 open_windows (NautilusApplication *application,
147+ gboolean force_new,
148 GFile **files,
149 gint n_files,
150 GdkScreen *screen,
151@@ -621,8 +663,22 @@
152 open_window (application, NULL, screen, geometry);
153 } else {
154 /* Open windows at each requested location. */
155- for (i = 0; i < n_files; i++) {
156- open_window (application, files[i], screen, geometry);
157+ for (i = 0; i < n_files; ++i) {
158+ NautilusWindowSlot *slot = NULL;
159+
160+ if (!force_new)
161+ slot = get_window_slot_for_location (application, files[i]);
162+
163+ if (!slot) {
164+ open_window (application, files[i], screen, geometry);
165+ } else {
166+ /* We open the location again to update any possible selection */
167+ nautilus_window_slot_open_location (slot, files[i], 0);
168+
169+ NautilusWindow *window = nautilus_window_slot_get_window (slot);
170+ nautilus_window_set_active_slot (window, slot);
171+ gtk_window_present (GTK_WINDOW (window));
172+ }
173 }
174 }
175 }
176@@ -634,19 +690,28 @@
177 const char *startup_id)
178 {
179 NautilusWindow *window;
180+ NautilusWindowSlot *slot;
181 GList *sel_list = NULL;
182
183 nautilus_profile_start (NULL);
184
185- window = nautilus_application_create_window (application, gdk_screen_get_default ());
186- gtk_window_set_startup_id (GTK_WINDOW (window), startup_id);
187+ slot = get_window_slot_for_location (application, location);
188+
189+ if (!slot) {
190+ window = nautilus_application_create_window (application, gdk_screen_get_default ());
191+ slot = nautilus_window_get_active_slot (window);
192+ } else {
193+ window = nautilus_window_slot_get_window (slot);
194+ nautilus_window_set_active_slot (window, slot);
195+ gtk_window_present (GTK_WINDOW (window));
196+ }
197
198 if (selection != NULL) {
199 sel_list = g_list_prepend (sel_list, nautilus_file_get (selection));
200 }
201
202- nautilus_window_slot_open_location_full (nautilus_window_get_active_slot (window), location,
203- 0, sel_list, NULL, NULL);
204+ gtk_window_set_startup_id (GTK_WINDOW (window), startup_id);
205+ nautilus_window_slot_open_location_full (slot, location, 0, sel_list, NULL, NULL);
206
207 if (sel_list != NULL) {
208 nautilus_file_list_free (sel_list);
209@@ -665,7 +730,9 @@
210
211 DEBUG ("Open called on the GApplication instance; %d files", n_files);
212
213- open_windows (self, files, n_files,
214+ gboolean force_new = (g_strcmp0 (hint, "new-window") == 0);
215+
216+ open_windows (self, force_new, files, n_files,
217 gdk_screen_get_default (),
218 self->priv->geometry);
219 }
220@@ -1059,6 +1126,7 @@
221 gboolean version = FALSE;
222 gboolean browser = FALSE;
223 gboolean kill_shell = FALSE;
224+ gboolean open_new_window = FALSE;
225 gboolean no_default_window = FALSE;
226 gchar **remaining = NULL;
227 NautilusApplication *self = NAUTILUS_APPLICATION (application);
228@@ -1075,6 +1143,8 @@
229 N_("Show the version of the program."), NULL },
230 { "geometry", 'g', 0, G_OPTION_ARG_STRING, &self->priv->geometry,
231 N_("Create the initial window with the given geometry."), N_("GEOMETRY") },
232+ { "new-window", 'w', 0, G_OPTION_ARG_NONE, &open_new_window,
233+ N_("Always open a new window for browsing specified URIs"), NULL },
234 { "no-default-window", 'n', 0, G_OPTION_ARG_NONE, &no_default_window,
235 N_("Only create windows for explicitly specified URIs."), NULL },
236 { "no-desktop", '\0', 0, G_OPTION_ARG_NONE, &self->priv->no_desktop,
237@@ -1089,7 +1159,6 @@
238 GError *error = NULL;
239 gint argc = 0;
240 gchar **argv = NULL;
241-
242 *exit_status = EXIT_SUCCESS;
243
244 nautilus_profile_start (NULL);
245@@ -1127,8 +1196,8 @@
246 goto out;
247 }
248
249- DEBUG ("Parsing local command line, no_default_window %d, quit %d, "
250- "self checks %d, no_desktop %d",
251+ DEBUG ("Parsing local command line, open_new_window %d, no_default_window %d, "
252+ "quit %d, self checks %d, no_desktop %d", open_new_window,
253 no_default_window, kill_shell, perform_self_check, self->priv->no_desktop);
254
255 g_application_register (application, NULL, &error);
256@@ -1185,7 +1254,7 @@
257
258 /* Invoke "Open" to create new windows */
259 if (len > 0) {
260- g_application_open (application, files, len, "");
261+ g_application_open (application, files, len, open_new_window ? "new-window" : "");
262 }
263
264 for (idx = 0; idx < len; idx++) {
265Index: nautilus/src/nautilus-window-manage-views.c
266===================================================================
267--- nautilus.orig/src/nautilus-window-manage-views.c 2013-03-12 19:34:31.066512196 +0100
268+++ nautilus/src/nautilus-window-manage-views.c 2013-03-12 19:34:31.062512185 +0100
269@@ -427,6 +427,7 @@
270 NautilusWindowSlot *target_slot;
271 NautilusWindowOpenFlags slot_flags;
272 GFile *old_location;
273+ GList *old_selection;
274 char *old_uri, *new_uri;
275 int new_slot_position;
276 gboolean use_same;
277@@ -525,9 +526,14 @@
278 }
279 }
280
281- if (target_window == window && target_slot == slot &&
282+ old_selection = NULL;
283+ if (slot->content_view != NULL) {
284+ old_selection = nautilus_view_get_selection (slot->content_view);
285+ }
286+
287+ if (target_window == window && target_slot == slot && !is_desktop &&
288 old_location && g_file_equal (old_location, location) &&
289- !is_desktop) {
290+ nautilus_file_selection_equal (old_selection, new_selection)) {
291
292 if (callback != NULL) {
293 callback (window, location, NULL, user_data);
294@@ -537,7 +543,7 @@
295 }
296
297 slot->pending_use_default_location = ((flags & NAUTILUS_WINDOW_OPEN_FLAG_USE_DEFAULT_LOCATION) != 0);
298- begin_location_change (target_slot, location, old_location, new_selection,
299+ begin_location_change (target_slot, location, old_location, new_selection,
300 NAUTILUS_LOCATION_CHANGE_STANDARD, 0, NULL, callback, user_data);
301
302 done:
3030
=== removed file 'debian/patches/git_search_dir_incremental_load.patch'
--- debian/patches/git_search_dir_incremental_load.patch 2013-03-22 17:44:56 +0000
+++ debian/patches/git_search_dir_incremental_load.patch 1970-01-01 00:00:00 +0000
@@ -1,148 +0,0 @@
1From e153ba8046f52680b98a5fc209c2b4161b193d2d Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Fri, 12 Oct 2012 23:04:14 +0000
4Subject: search-directory: enable incremental directory load
5
6Instead of emitting nautilus_directory_done_loading() from the
7"finished" callback, do it as soon as we receive the first batch of
8hits. The rest of the results will be added to the directory in
9background.
10
11https://bugzilla.gnome.org/show_bug.cgi?id=663242
12---
13diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c
14index 5da6f7a..510d319 100644
15--- a/libnautilus-private/nautilus-search-directory.c
16+++ b/libnautilus-private/nautilus-search-directory.c
17@@ -46,7 +46,7 @@ struct NautilusSearchDirectoryDetails {
18 NautilusSearchEngine *engine;
19
20 gboolean search_running;
21- gboolean search_finished;
22+ gboolean search_loaded;
23
24 GList *files;
25 GHashTable *files_hash;
26@@ -90,7 +90,6 @@ G_DEFINE_TYPE (NautilusSearchDirectory, nautilus_search_directory,
27 static GParamSpec *properties[NUM_PROPERTIES] = { NULL, };
28
29 static void search_engine_hits_added (NautilusSearchEngine *engine, GList *hits, NautilusSearchDirectory *search);
30-static void search_engine_finished (NautilusSearchEngine *engine, NautilusSearchDirectory *search);
31 static void search_engine_error (NautilusSearchEngine *engine, const char *error, NautilusSearchDirectory *search);
32 static void search_callback_file_ready_callback (NautilusFile *file, gpointer data);
33 static void file_changed (NautilusFile *file, NautilusSearchDirectory *search);
34@@ -161,7 +160,7 @@ start_search (NautilusSearchDirectory *search)
35
36 /* We need to start the search engine */
37 search->details->search_running = TRUE;
38- search->details->search_finished = FALSE;
39+ search->details->search_loaded = FALSE;
40
41 set_hidden_files (search);
42 nautilus_search_provider_set_query (NAUTILUS_SEARCH_PROVIDER (search->details->engine),
43@@ -436,7 +435,7 @@ search_call_when_ready (NautilusDirectory *directory,
44 search_callback->wait_for_attributes = file_attributes;
45 search_callback->wait_for_file_list = wait_for_file_list;
46
47- if (wait_for_file_list && !search->details->search_finished) {
48+ if (wait_for_file_list && !search->details->search_loaded) {
49 /* Add it to the pending callback list, which will be
50 * processed when the directory has finished loading
51 */
52@@ -494,6 +493,14 @@ search_cancel_callback (NautilusDirectory *directory,
53 }
54 }
55
56+static void
57+search_callback_add_pending_file_callbacks (SearchCallback *callback)
58+{
59+ callback->file_list = nautilus_file_list_copy (callback->search_directory->details->files);
60+ callback->non_ready_hash = file_list_to_hash_table (callback->search_directory->details->files);
61+
62+ search_callback_add_file_callbacks (callback);
63+}
64
65 static void
66 search_engine_hits_added (NautilusSearchEngine *engine, GList *hits,
67@@ -542,15 +549,20 @@ search_engine_hits_added (NautilusSearchEngine *engine, GList *hits,
68 file = nautilus_directory_get_corresponding_file (NAUTILUS_DIRECTORY (search));
69 nautilus_file_emit_changed (file);
70 nautilus_file_unref (file);
71-}
72
73-static void
74-search_callback_add_pending_file_callbacks (SearchCallback *callback)
75-{
76- callback->file_list = nautilus_file_list_copy (callback->search_directory->details->files);
77- callback->non_ready_hash = file_list_to_hash_table (callback->search_directory->details->files);
78+ if (!search->details->search_loaded) {
79+ search->details->search_loaded = TRUE;
80+ nautilus_directory_emit_done_loading (NAUTILUS_DIRECTORY (search));
81
82- search_callback_add_file_callbacks (callback);
83+ /* Add all file callbacks */
84+ g_list_foreach (search->details->pending_callback_list,
85+ (GFunc)search_callback_add_pending_file_callbacks, NULL);
86+ search->details->callback_list = g_list_concat (search->details->callback_list,
87+ search->details->pending_callback_list);
88+
89+ g_list_free (search->details->pending_callback_list);
90+ search->details->pending_callback_list = NULL;
91+ }
92 }
93
94 static void
95@@ -566,23 +578,6 @@ search_engine_error (NautilusSearchEngine *engine, const char *error_message, Na
96 }
97
98 static void
99-search_engine_finished (NautilusSearchEngine *engine, NautilusSearchDirectory *search)
100-{
101- search->details->search_finished = TRUE;
102-
103- nautilus_directory_emit_done_loading (NAUTILUS_DIRECTORY (search));
104-
105- /* Add all file callbacks */
106- g_list_foreach (search->details->pending_callback_list,
107- (GFunc)search_callback_add_pending_file_callbacks, NULL);
108- search->details->callback_list = g_list_concat (search->details->callback_list,
109- search->details->pending_callback_list);
110-
111- g_list_free (search->details->pending_callback_list);
112- search->details->pending_callback_list = NULL;
113-}
114-
115-static void
116 search_force_reload (NautilusDirectory *directory)
117 {
118 NautilusSearchDirectory *search;
119@@ -593,7 +588,7 @@ search_force_reload (NautilusDirectory *directory)
120 return;
121 }
122
123- search->details->search_finished = FALSE;
124+ search->details->search_loaded = FALSE;
125
126 /* Remove file monitors */
127 reset_file_list (search);
128@@ -608,7 +603,7 @@ search_are_all_files_seen (NautilusDirectory *directory)
129 search = NAUTILUS_SEARCH_DIRECTORY (directory);
130
131 return (!search->details->query ||
132- search->details->search_finished);
133+ search->details->search_loaded);
134 }
135
136 static gboolean
137@@ -760,9 +755,6 @@ nautilus_search_directory_init (NautilusSearchDirectory *search)
138 g_signal_connect (search->details->engine, "hits-added",
139 G_CALLBACK (search_engine_hits_added),
140 search);
141- g_signal_connect (search->details->engine, "finished",
142- G_CALLBACK (search_engine_finished),
143- search);
144 g_signal_connect (search->details->engine, "error",
145 G_CALLBACK (search_engine_error),
146 search);
147--
148cgit v0.9.1
1490
=== removed file 'debian/patches/git_search_dont_follow_symlinks.patch'
--- debian/patches/git_search_dont_follow_symlinks.patch 2013-04-16 10:17:12 +0000
+++ debian/patches/git_search_dont_follow_symlinks.patch 1970-01-01 00:00:00 +0000
@@ -1,26 +0,0 @@
1From 60234999479df2b890f532472ef5c9d312cfe0c9 Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Thu, 04 Apr 2013 20:30:49 +0000
4Subject: search-engine-simple: don't follow symlinks when descending
5
6It's inconsistent with "find" and it can yield to unexpectedly large
7result sets.
8Do not follow symlinks when recursing the search down the hierarchy.
9
10https://bugzilla.gnome.org/show_bug.cgi?id=697181
11---
12diff --git a/libnautilus-private/nautilus-search-engine-simple.c b/libnautilus-private/nautilus-search-engine-simple.c
13index 87ff363..9c80d2e 100644
14--- a/libnautilus-private/nautilus-search-engine-simple.c
15+++ b/libnautilus-private/nautilus-search-engine-simple.c
16@@ -217,7 +217,8 @@ visit_directory (GFile *dir, SearchThreadData *data)
17 :
18 STD_ATTRIBUTES
19 ,
20- 0, data->cancellable, NULL);
21+ G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
22+ data->cancellable, NULL);
23
24 if (enumerator == NULL) {
25 return;
26--
270
=== removed file 'debian/patches/git_search_recursive_dir.patch'
--- debian/patches/git_search_recursive_dir.patch 2013-03-22 17:44:56 +0000
+++ debian/patches/git_search_recursive_dir.patch 1970-01-01 00:00:00 +0000
@@ -1,78 +0,0 @@
1From 6a1cdcf6a68ed4f63890bf3a3ac2a0cca121321e Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Thu, 18 Oct 2012 21:16:41 +0000
4Subject: search-directory: make the simple engine recursive
5
6https://bugzilla.gnome.org/show_bug.cgi?id=325146
7---
8diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c
9index 510d319..06901b6 100644
10--- a/libnautilus-private/nautilus-search-directory.c
11+++ b/libnautilus-private/nautilus-search-directory.c
12@@ -145,6 +145,7 @@ static void
13 start_search (NautilusSearchDirectory *search)
14 {
15 NautilusSearchEngineModel *model_provider;
16+ NautilusSearchEngineSimple *simple_provider;
17
18 if (!search->details->query) {
19 return;
20@@ -169,6 +170,9 @@ start_search (NautilusSearchDirectory *search)
21 model_provider = nautilus_search_engine_get_model_provider (search->details->engine);
22 nautilus_search_engine_model_set_model (model_provider, search->details->base_model);
23
24+ simple_provider = nautilus_search_engine_get_simple_provider (search->details->engine);
25+ g_object_set (simple_provider, "recursive", TRUE, NULL);
26+
27 reset_file_list (search);
28
29 nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (search->details->engine));
30diff --git a/libnautilus-private/nautilus-search-engine-simple.h b/libnautilus-private/nautilus-search-engine-simple.h
31index bd11197..93f491e 100644
32--- a/libnautilus-private/nautilus-search-engine-simple.h
33+++ b/libnautilus-private/nautilus-search-engine-simple.h
34@@ -24,8 +24,6 @@
35 #ifndef NAUTILUS_SEARCH_ENGINE_SIMPLE_H
36 #define NAUTILUS_SEARCH_ENGINE_SIMPLE_H
37
38-#include <libnautilus-private/nautilus-search-engine.h>
39-
40 #define NAUTILUS_TYPE_SEARCH_ENGINE_SIMPLE (nautilus_search_engine_simple_get_type ())
41 #define NAUTILUS_SEARCH_ENGINE_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SEARCH_ENGINE_SIMPLE, NautilusSearchEngineSimple))
42 #define NAUTILUS_SEARCH_ENGINE_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SEARCH_ENGINE_SIMPLE, NautilusSearchEngineSimpleClass))
43diff --git a/libnautilus-private/nautilus-search-engine.c b/libnautilus-private/nautilus-search-engine.c
44index c92b745..31fa941 100644
45--- a/libnautilus-private/nautilus-search-engine.c
46+++ b/libnautilus-private/nautilus-search-engine.c
47@@ -313,3 +313,9 @@ nautilus_search_engine_get_model_provider (NautilusSearchEngine *engine)
48 {
49 return engine->details->model;
50 }
51+
52+NautilusSearchEngineSimple *
53+nautilus_search_engine_get_simple_provider (NautilusSearchEngine *engine)
54+{
55+ return engine->details->simple;
56+}
57diff --git a/libnautilus-private/nautilus-search-engine.h b/libnautilus-private/nautilus-search-engine.h
58index b9cefad..916dbdd 100644
59--- a/libnautilus-private/nautilus-search-engine.h
60+++ b/libnautilus-private/nautilus-search-engine.h
61@@ -28,6 +28,7 @@
62
63 #include <libnautilus-private/nautilus-directory.h>
64 #include <libnautilus-private/nautilus-search-engine-model.h>
65+#include <libnautilus-private/nautilus-search-engine-simple.h>
66
67 #define NAUTILUS_TYPE_SEARCH_ENGINE (nautilus_search_engine_get_type ())
68 #define NAUTILUS_SEARCH_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SEARCH_ENGINE, NautilusSearchEngine))
69@@ -52,5 +53,7 @@ GType nautilus_search_engine_get_type (void);
70 NautilusSearchEngine *nautilus_search_engine_new (void);
71 NautilusSearchEngineModel *
72 nautilus_search_engine_get_model_provider (NautilusSearchEngine *engine);
73+NautilusSearchEngineSimple *
74+ nautilus_search_engine_get_simple_provider (NautilusSearchEngine *engine);
75
76 #endif /* NAUTILUS_SEARCH_ENGINE_H */
77--
78cgit v0.9.1
790
=== removed file 'debian/patches/git_show_accelerators.patch'
--- debian/patches/git_show_accelerators.patch 2013-03-07 00:19:06 +0000
+++ debian/patches/git_show_accelerators.patch 1970-01-01 00:00:00 +0000
@@ -1,76 +0,0 @@
1From 1c2b1e33346d2b06dedff3d81fc36e679e2d0761 Mon Sep 17 00:00:00 2001
2From: Cosimo Cecchi <cosimoc@gnome.org>
3Date: Thu, 14 Feb 2013 14:48:09 +0000
4Subject: ui: specify accelerators=true for our menu definitions
5
6This will make GtkMenuButton do the right thing and show accelerators in
7the popup.
8Thanks to Juanjo Marín for the fix.
9
10https://bugzilla.gnome.org/show_bug.cgi?id=680962
11---
12diff --git a/src/nautilus-canvas-view-ui.xml b/src/nautilus-canvas-view-ui.xml
13index 5a3b313..1caffe1 100644
14--- a/src/nautilus-canvas-view-ui.xml
15+++ b/src/nautilus-canvas-view-ui.xml
16@@ -1,5 +1,5 @@
17 <ui>
18- <popup name="ViewMenu">
19+ <popup name="ViewMenu" accelerators="true">
20 <placeholder name="Layout Options">
21 <menuitem name="Manual Layout" action="Manual Layout"/>
22 <placeholder name="Auto Layout">
23diff --git a/src/nautilus-directory-view-ui.xml b/src/nautilus-directory-view-ui.xml
24index efdb9d1..e164fec 100644
25--- a/src/nautilus-directory-view-ui.xml
26+++ b/src/nautilus-directory-view-ui.xml
27@@ -4,13 +4,13 @@
28 <accelerator action="OpenCloseParent"/>
29 <accelerator action="PropertiesAccel"/>
30 <accelerator action="RenameSelectAll"/>
31-<popup name="ViewMenu">
32+<popup name="ViewMenu" accelerators="true">
33 <placeholder name="View Details">
34 <menuitem name="Reset to Defaults" action="Reset to Defaults"/>
35 <menuitem name="Show Hidden Files" action="Show Hidden Files"/>
36 </placeholder>
37 </popup>
38-<popup name="ActionMenu">
39+<popup name="ActionMenu" accelerators="true">
40 <placeholder name="New Items Placeholder">
41 <menuitem name="New Folder" action="New Folder"/>
42 <menuitem name="New Folder with Selection" action="New Folder with Selection"/>
43diff --git a/src/nautilus-list-view-ui.xml b/src/nautilus-list-view-ui.xml
44index 22ca858..20f336d 100644
45--- a/src/nautilus-list-view-ui.xml
46+++ b/src/nautilus-list-view-ui.xml
47@@ -1,5 +1,5 @@
48 <ui>
49- <popup name="ViewMenu">
50+ <popup name="ViewMenu" accelerators="true">
51 <placeholder name="View Details">
52 <menuitem name="Visible Columns" action="Visible Columns"/>
53 </placeholder>
54diff --git a/src/nautilus-shell-ui.xml b/src/nautilus-shell-ui.xml
55index 2fb2961..4cb7348 100644
56--- a/src/nautilus-shell-ui.xml
57+++ b/src/nautilus-shell-ui.xml
58@@ -15,7 +15,7 @@
59 <accelerator action="ZoomOutAccel"/>
60 <accelerator action="PromptLocationAccel"/>
61 <accelerator action="ReloadAccel"/>
62-<popup name="ViewMenu">
63+<popup name="ViewMenu" accelerators="true">
64 <placeholder name="Zoom Items Placeholder">
65 <menuitem name="Zoom In" action="Zoom In"/>
66 <menuitem name="Zoom Out" action="Zoom Out"/>
67@@ -33,7 +33,7 @@
68 <separator/>
69 <placeholder name="View Details"/>
70 </popup>
71-<popup name="ActionMenu">
72+<popup name="ActionMenu" accelerators="true">
73 <placeholder name="New Items Placeholder">
74 <menuitem name="New Tab" action="New Tab"/>
75 <menuitem name="New Window" action="New Window"/>
76
770
=== removed file 'debian/patches/git_single_filesystem_count.patch'
--- debian/patches/git_single_filesystem_count.patch 2013-01-15 03:21:01 +0000
+++ debian/patches/git_single_filesystem_count.patch 1970-01-01 00:00:00 +0000
@@ -1,115 +0,0 @@
1From a645da5f1043c59203fd194fe85b6976d75d2ece Mon Sep 17 00:00:00 2001
2From: Phillip Susi <psusi@ubuntu.com>
3Date: Mon, 17 Dec 2012 14:11:54 +0000
4Subject: directory: limit deep scount (folder contents and size) to one filesystem
5
6When getting the size of the root directory, nautilus was descending
7into other filesystems including /proc, causing it to report nonsensical
8sizes.
9Store the fsid of the starting directory, and do not recurse into
10other mount points.
11
12https://bugzilla.gnome.org/show_bug.cgi?id=629394
13https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/585472
14---
15diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c
16index f1d53f3..6961ae0 100644
17--- a/libnautilus-private/nautilus-directory-async.c
18+++ b/libnautilus-private/nautilus-directory-async.c
19@@ -135,6 +135,7 @@ struct DeepCountState {
20 GFile *deep_count_location;
21 GList *deep_count_subdirectories;
22 GArray *seen_deep_count_inodes;
23+ char *fs_id;
24 };
25
26
27@@ -2579,6 +2580,7 @@ deep_count_one (DeepCountState *state,
28 NautilusFile *file;
29 GFile *subdir;
30 gboolean is_seen_inode;
31+ const char *fs_id;
32
33 if (should_skip_file (NULL, info)) {
34 return;
35@@ -2596,10 +2598,13 @@ deep_count_one (DeepCountState *state,
36 file->details->deep_directory_count += 1;
37
38 /* Record the fact that we have to descend into this directory. */
39-
40- subdir = g_file_get_child (state->deep_count_location, g_file_info_get_name (info));
41- state->deep_count_subdirectories = g_list_prepend
42- (state->deep_count_subdirectories, subdir);
43+ fs_id = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILESYSTEM);
44+ if (g_strcmp0 (fs_id, state->fs_id) == 0) {
45+ /* only if it is on the same filesystem */
46+ subdir = g_file_get_child (state->deep_count_location, g_file_info_get_name (info));
47+ state->deep_count_subdirectories = g_list_prepend
48+ (state->deep_count_subdirectories, subdir);
49+ }
50 } else {
51 /* Even non-regular files count as files. */
52 file->details->deep_file_count += 1;
53@@ -2627,6 +2632,7 @@ deep_count_state_free (DeepCountState *state)
54 }
55 g_list_free_full (state->deep_count_subdirectories, g_object_unref);
56 g_array_free (state->seen_deep_count_inodes, TRUE);
57+ g_free (state->fs_id);
58 g_free (state);
59 }
60
61@@ -2773,6 +2779,7 @@ deep_count_load (DeepCountState *state, GFile *location)
62 G_FILE_ATTRIBUTE_STANDARD_SIZE ","
63 G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN ","
64 G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP ","
65+ G_FILE_ATTRIBUTE_ID_FILESYSTEM ","
66 G_FILE_ATTRIBUTE_UNIX_INODE,
67 G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, /* flags */
68 G_PRIORITY_LOW, /* prio */
69@@ -2804,6 +2811,25 @@ deep_count_stop (NautilusDirectory *directory)
70 }
71
72 static void
73+deep_count_got_info (GObject *source_object,
74+ GAsyncResult *res,
75+ gpointer user_data)
76+{
77+ GFileInfo *info;
78+ const char *id;
79+ GFile *file = (GFile *)source_object;
80+ DeepCountState *state = (DeepCountState *)user_data;
81+
82+ info = g_file_query_info_finish (file, res, NULL);
83+ if (info != NULL) {
84+ id = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILESYSTEM);
85+ state->fs_id = g_strdup (id);
86+ g_object_unref (info);
87+ }
88+ deep_count_load (state, file);
89+}
90+
91+static void
92 deep_count_start (NautilusDirectory *directory,
93 NautilusFile *file,
94 gboolean *doing_io)
95@@ -2846,11 +2872,18 @@ deep_count_start (NautilusDirectory *directory,
96 state->directory = directory;
97 state->cancellable = g_cancellable_new ();
98 state->seen_deep_count_inodes = g_array_new (FALSE, TRUE, sizeof (guint64));
99+ state->fs_id = NULL;
100
101 directory->details->deep_count_in_progress = state;
102
103 location = nautilus_file_get_location (file);
104- deep_count_load (state, location);
105+ g_file_query_info_async (location,
106+ G_FILE_ATTRIBUTE_ID_FILESYSTEM,
107+ G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
108+ G_PRIORITY_DEFAULT,
109+ NULL,
110+ deep_count_got_info,
111+ state);
112 g_object_unref (location);
113 }
114
115
1160
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-06-10 16:47:24 +0000
+++ debian/patches/series 2013-06-17 03:30:40 +0000
@@ -3,8 +3,6 @@
3#05_desktop_menu_export.patch3#05_desktop_menu_export.patch
406_never_exec_nonexec_launchers.patch406_never_exec_nonexec_launchers.patch
508_clean_session_capplet.patch508_clean_session_capplet.patch
609_no-initial-fade.patch
7git_reuse_already_opened_views.patch
811_copy_skipping_pager.patch611_copy_skipping_pager.patch
912_unity_launcher_support.patch712_unity_launcher_support.patch
1014_bring_del_instead_ctrl_del.patch814_bring_del_instead_ctrl_del.patch
@@ -14,25 +12,4 @@
1418_unity_icon_color.patch1218_unity_icon_color.patch
15zg_activity_logging.patch13zg_activity_logging.patch
16dont_wrap_labels_after_dots.patch14dont_wrap_labels_after_dots.patch
17git_add_missing_tooltips.patch
18git_launcher_no_frame.patch
19git_restore_filename.patch
20git_single_filesystem_count.patch
21git_fix_touch_double_click.patch
22git_show_accelerators.patch
23git_add_desktop_keywords.patch
24git_export_opened_locations_on_dbus.patch
25git_margin_primary_workarea_revert.patch
2610_sync_background_to_accountsservice.patch
27git_search_dir_incremental_load.patch
28git_enable_simple_search_engine.patch
29git_search_recursive_dir.patch
30git_enable_copy_from_recent.patch
31git_restore_from_missing_directories.patch
3219_unity_open_location_xid.patch1519_unity_open_location_xid.patch
33git_reset_view_to_defaults.patch
34git_rank_exact_matches_higher.patch
35git_rank_reversed.patch
36git_search_dont_follow_symlinks.patch
37git_eel_needs_terminal.patch
380001-trash-bar-fix-double-disconnect-handler.patch
3916
=== modified file 'debian/patches/zg_activity_logging.patch'
--- debian/patches/zg_activity_logging.patch 2012-10-29 00:09:57 +0000
+++ debian/patches/zg_activity_logging.patch 2013-06-17 03:30:40 +0000
@@ -1,17 +1,17 @@
1=== modified file 'nautilus-3.3.91/libnautilus-private/Makefile.am'1=== modified file 'nautilus-3.3.91/libnautilus-private/Makefile.am'
2Index: nautilus-3.5.5/libnautilus-private/Makefile.am2Index: nautilus-3.8.1/libnautilus-private/Makefile.am
3===================================================================3===================================================================
4--- nautilus-3.5.5.orig/libnautilus-private/Makefile.am 2012-08-07 17:53:26.000000000 +02004--- nautilus-3.8.1.orig/libnautilus-private/Makefile.am 2013-06-04 22:27:52.532397563 -0400
5+++ nautilus-3.5.5/libnautilus-private/Makefile.am 2012-08-08 09:41:30.199206870 +02005+++ nautilus-3.8.1/libnautilus-private/Makefile.am 2013-06-04 22:27:52.520397564 -0400
6@@ -12,6 +12,7 @@6@@ -11,6 +11,7 @@
7 $(WARNING_CFLAGS) \7 $(WARNING_CFLAGS) \
8 $(DISABLE_DEPRECATED_CFLAGS) \8 $(DISABLE_DEPRECATED) \
9 $(TRACKER_CFLAGS) \9 $(TRACKER_CFLAGS) \
10+ `pkg-config --cflags zeitgeist-1.0` \10+ `pkg-config --cflags zeitgeist-1.0` \
11 -DDATADIR=\""$(datadir)"\" \11 -DDATADIR=\""$(datadir)"\" \
12 -DSYSCONFDIR=\""$(sysconfdir)"\" \12 -DSYSCONFDIR=\""$(sysconfdir)"\" \
13 -DNAUTILUS_DATADIR=\""$(datadir)/nautilus"\" \13 -DNAUTILUS_DATADIR=\""$(datadir)/nautilus"\" \
14@@ -44,6 +45,7 @@14@@ -39,6 +40,7 @@
15 15
16 libnautilus_private_la_LDFLAGS = \16 libnautilus_private_la_LDFLAGS = \
17 -no-undefined \17 -no-undefined \
@@ -19,10 +19,10 @@
19 $(NULL)19 $(NULL)
20 20
21 libnautilus_private_la_LIBADD = \21 libnautilus_private_la_LIBADD = \
22Index: nautilus-3.5.5/libnautilus-private/nautilus-file-operations.c22Index: nautilus-3.8.1/libnautilus-private/nautilus-file-operations.c
23===================================================================23===================================================================
24--- nautilus-3.5.5.orig/libnautilus-private/nautilus-file-operations.c 2012-07-16 23:37:16.000000000 +020024--- nautilus-3.8.1.orig/libnautilus-private/nautilus-file-operations.c 2013-06-04 22:27:52.532397563 -0400
25+++ nautilus-3.5.5/libnautilus-private/nautilus-file-operations.c 2012-08-08 09:41:30.207206869 +020025+++ nautilus-3.8.1/libnautilus-private/nautilus-file-operations.c 2013-06-04 22:27:52.524397563 -0400
26@@ -66,6 +66,8 @@26@@ -66,6 +66,8 @@
27 #include "nautilus-file-undo-operations.h"27 #include "nautilus-file-undo-operations.h"
28 #include "nautilus-file-undo-manager.h"28 #include "nautilus-file-undo-manager.h"
@@ -137,7 +137,7 @@
137 static void137 static void
138 mark_desktop_file_trusted (CommonJob *common,138 mark_desktop_file_trusted (CommonJob *common,
139 GCancellable *cancellable,139 GCancellable *cancellable,
140@@ -1864,6 +1964,35 @@140@@ -1867,6 +1967,35 @@
141 141
142 job = user_data;142 job = user_data;
143 143
@@ -173,7 +173,7 @@
173 g_list_free_full (job->files, g_object_unref);173 g_list_free_full (job->files, g_object_unref);
174 174
175 if (job->done_callback) {175 if (job->done_callback) {
176@@ -4504,6 +4633,23 @@176@@ -4541,6 +4670,23 @@
177 job->done_callback_data);177 job->done_callback_data);
178 }178 }
179 179
@@ -197,7 +197,7 @@
197 g_list_free_full (job->files, g_object_unref);197 g_list_free_full (job->files, g_object_unref);
198 if (job->destination) {198 if (job->destination) {
199 g_object_unref (job->destination);199 g_object_unref (job->destination);
200@@ -5067,6 +5213,19 @@200@@ -5107,6 +5253,19 @@
201 job->done_callback_data);201 job->done_callback_data);
202 }202 }
203 203
@@ -217,7 +217,7 @@
217 g_list_free_full (job->files, g_object_unref);217 g_list_free_full (job->files, g_object_unref);
218 g_object_unref (job->destination);218 g_object_unref (job->destination);
219 g_hash_table_unref (job->debuting_files);219 g_hash_table_unref (job->debuting_files);
220@@ -5410,6 +5569,23 @@220@@ -5450,6 +5609,23 @@
221 job->done_callback_data);221 job->done_callback_data);
222 }222 }
223 223
@@ -241,7 +241,7 @@
241 g_list_free_full (job->files, g_object_unref);241 g_list_free_full (job->files, g_object_unref);
242 g_object_unref (job->destination);242 g_object_unref (job->destination);
243 g_hash_table_unref (job->debuting_files);243 g_hash_table_unref (job->debuting_files);
244@@ -5882,6 +6058,14 @@244@@ -5922,6 +6098,14 @@
245 job->done_callback_data);245 job->done_callback_data);
246 }246 }
247 247
@@ -256,11 +256,11 @@
256 g_object_unref (job->dest_dir);256 g_object_unref (job->dest_dir);
257 if (job->src) {257 if (job->src) {
258 g_object_unref (job->src);258 g_object_unref (job->src);
259Index: nautilus-3.5.5/libnautilus-private/nautilus-file.c259Index: nautilus-3.8.1/libnautilus-private/nautilus-file.c
260===================================================================260===================================================================
261--- nautilus-3.5.5.orig/libnautilus-private/nautilus-file.c 2012-08-08 09:41:29.955206857 +0200261--- nautilus-3.8.1.orig/libnautilus-private/nautilus-file.c 2013-06-04 22:27:52.532397563 -0400
262+++ nautilus-3.5.5/libnautilus-private/nautilus-file.c 2012-08-08 09:41:30.219206871 +0200262+++ nautilus-3.8.1/libnautilus-private/nautilus-file.c 2013-06-04 22:27:52.524397563 -0400
263@@ -90,6 +90,9 @@263@@ -91,6 +91,9 @@
264 #define DEBUG_REF_PRINTF printf264 #define DEBUG_REF_PRINTF printf
265 #endif265 #endif
266 266
@@ -270,7 +270,7 @@
270 /* Files that start with these characters sort after files that don't. */270 /* Files that start with these characters sort after files that don't. */
271 #define SORT_LAST_CHAR1 '.'271 #define SORT_LAST_CHAR1 '.'
272 #define SORT_LAST_CHAR2 '#'272 #define SORT_LAST_CHAR2 '#'
273@@ -1728,10 +1731,34 @@273@@ -1735,10 +1738,34 @@
274 old_name = g_strdup (eel_ref_str_peek (op->file->details->name));274 old_name = g_strdup (eel_ref_str_peek (op->file->details->name));
275 275
276 update_info_and_name (op->file, new_info);276 update_info_and_name (op->file, new_info);
@@ -306,10 +306,10 @@
306 nautilus_directory_moved (old_uri, new_uri);306 nautilus_directory_moved (old_uri, new_uri);
307 g_free (new_uri);307 g_free (new_uri);
308 g_free (old_uri);308 g_free (old_uri);
309Index: nautilus-3.5.5/test/Makefile.am309Index: nautilus-3.8.1/test/Makefile.am
310===================================================================310===================================================================
311--- nautilus-3.5.5.orig/test/Makefile.am 2012-05-08 06:28:09.000000000 +0200311--- nautilus-3.8.1.orig/test/Makefile.am 2013-06-04 22:27:52.532397563 -0400
312+++ nautilus-3.5.5/test/Makefile.am 2012-08-08 09:41:30.219206871 +0200312+++ nautilus-3.8.1/test/Makefile.am 2013-06-04 22:27:52.524397563 -0400
313@@ -6,6 +6,7 @@313@@ -6,6 +6,7 @@
314 $(COMMON_CFLAGS) \314 $(COMMON_CFLAGS) \
315 $(NAUTILUS_CFLAGS) \315 $(NAUTILUS_CFLAGS) \
@@ -337,10 +337,10 @@
337 EXTRA_DIST = \337 EXTRA_DIST = \
338 test.h \338 test.h \
339 $(NULL)339 $(NULL)
340Index: nautilus-3.5.5/test/run-zeitgeist-test.sh340Index: nautilus-3.8.1/test/run-zeitgeist-test.sh
341===================================================================341===================================================================
342--- /dev/null 1970-01-01 00:00:00.000000000 +0000342--- /dev/null 1970-01-01 00:00:00.000000000 +0000
343+++ nautilus-3.5.5/test/run-zeitgeist-test.sh 2012-08-08 09:41:30.219206871 +0200343+++ nautilus-3.8.1/test/run-zeitgeist-test.sh 2013-06-04 22:27:52.524397563 -0400
344@@ -0,0 +1,50 @@344@@ -0,0 +1,50 @@
345+#! /bin/sh -e345+#! /bin/sh -e
346+346+
@@ -392,10 +392,10 @@
392+echo "Cleaning up..."392+echo "Cleaning up..."
393+zeitgeist-daemon --quit393+zeitgeist-daemon --quit
394+rm -r "${TMP_PATH}"394+rm -r "${TMP_PATH}"
395Index: nautilus-3.5.5/test/test-nautilus-zeitgeist.c395Index: nautilus-3.8.1/test/test-nautilus-zeitgeist.c
396===================================================================396===================================================================
397--- /dev/null 1970-01-01 00:00:00.000000000 +0000397--- /dev/null 1970-01-01 00:00:00.000000000 +0000
398+++ nautilus-3.5.5/test/test-nautilus-zeitgeist.c 2012-08-08 09:41:30.219206871 +0200398+++ nautilus-3.8.1/test/test-nautilus-zeitgeist.c 2013-06-04 22:27:52.524397563 -0400
399@@ -0,0 +1,343 @@399@@ -0,0 +1,343 @@
400+/*400+/*
401+ * Copyright © 2012 Canonical Ltd.401+ * Copyright © 2012 Canonical Ltd.

Subscribers

People subscribed via source and target branches

to all changes: