Merge lp:~jbicha/nautilus/nautilus-3.8 into lp:~ubuntu-desktop/nautilus/ubuntu
- nautilus-3.8
- Merge into ubuntu
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 | ||||||||||||||||
Related bugs: |
|
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.
Commit message
Description of the change
Sebastien Bacher (seb128) wrote : Posted in a previous version of this proposal | # |
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:/
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).
- 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_accountsserv ice.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
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2013-06-10 17:06:35 +0000 | |||
3 | +++ debian/changelog 2013-06-17 03:30:40 +0000 | |||
4 | @@ -1,3 +1,43 @@ | |||
5 | 1 | nautilus (1:3.8.2-0ubuntu1) UNRELEASED; urgency=low | ||
6 | 2 | |||
7 | 3 | TODO | ||
8 | 4 | * 16_unity_new_documents.patch: Doesn't work, the Raring | ||
9 | 5 | "fix" used a bug that was fixed | ||
10 | 6 | https://git.gnome.org/browse/nautilus/commit/?id=9323dd | ||
11 | 7 | |||
12 | 8 | [ Jeremy Bicha ] | ||
13 | 9 | * New upstream release (LP: #1130746) | ||
14 | 10 | - Share the show-hidden-files setting with the GTK file chooser | ||
15 | 11 | (LP: #1039014) | ||
16 | 12 | - Limit folder size and content count to a single filesystem (LP: #585472) | ||
17 | 13 | * debian/nautilus.install: | ||
18 | 14 | - Shell search provider doesn't need a separate library any more | ||
19 | 15 | * Drop git patches | ||
20 | 16 | * Refreshed patches | ||
21 | 17 | |||
22 | 18 | [ Robert Ancell ] | ||
23 | 19 | * debian/control: | ||
24 | 20 | - Bump build-depends on libglib2.0-dev | ||
25 | 21 | |||
26 | 22 | [ Rico Tzschichholz ] | ||
27 | 23 | * New upstream release | ||
28 | 24 | * debian/control: | ||
29 | 25 | - Bump build-depends on libgtk-3-dev (>= 3.7.7) | ||
30 | 26 | * debian/patches: | ||
31 | 27 | - 09_no-initial-fade.patch: | ||
32 | 28 | - 10_sync_background_to_accountsservice.patch: | ||
33 | 29 | + Dropped, Nautilus doesn't draw the background itself any more | ||
34 | 30 | * Refreshed patches | ||
35 | 31 | |||
36 | 32 | [ Tim Lunn ] | ||
37 | 33 | * Add build-dep on gsettings-desktop-schemas | ||
38 | 34 | |||
39 | 35 | [ Marco Trevisan (Treviño) ] | ||
40 | 36 | * debian/patches: | ||
41 | 37 | - 19_unity_open_location_xid.patch: updated to apply properly | ||
42 | 38 | |||
43 | 39 | -- Jeremy Bicha <jbicha@ubuntu.com> Mon, 10 Jun 2013 16:28:56 -0400 | ||
44 | 40 | |||
45 | 1 | nautilus (1:3.6.3-0ubuntu18) saucy; urgency=low | 41 | nautilus (1:3.6.3-0ubuntu18) saucy; urgency=low |
46 | 2 | 42 | ||
47 | 3 | * debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch: | 43 | * debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch: |
48 | 4 | 44 | ||
49 | === modified file 'debian/control' | |||
50 | --- debian/control 2013-05-28 10:48:02 +0000 | |||
51 | +++ debian/control 2013-06-17 03:30:40 +0000 | |||
52 | @@ -13,9 +13,9 @@ | |||
53 | 13 | dh-migrations, | 13 | dh-migrations, |
54 | 14 | cdbs (>= 0.4.90), | 14 | cdbs (>= 0.4.90), |
55 | 15 | gnome-pkg-tools (>= 0.13), | 15 | gnome-pkg-tools (>= 0.13), |
57 | 16 | libglib2.0-dev (>= 2.33.13), | 16 | libglib2.0-dev (>= 2.35.3), |
58 | 17 | libatk1.0-dev (>= 1.32.0), | 17 | libatk1.0-dev (>= 1.32.0), |
60 | 18 | libgtk-3-dev (>= 3.5.12), | 18 | libgtk-3-dev (>= 3.7.7), |
61 | 19 | libgail-3-dev, | 19 | libgail-3-dev, |
62 | 20 | libgnome-desktop-3-dev (>= 3.0.0), | 20 | libgnome-desktop-3-dev (>= 3.0.0), |
63 | 21 | libxml2-dev (>= 2.7.8), | 21 | libxml2-dev (>= 2.7.8), |
64 | @@ -31,6 +31,7 @@ | |||
65 | 31 | x11proto-core-dev, | 31 | x11proto-core-dev, |
66 | 32 | shared-mime-info (>= 0.50), | 32 | shared-mime-info (>= 0.50), |
67 | 33 | gobject-introspection (>= 0.9.12-4~), | 33 | gobject-introspection (>= 0.9.12-4~), |
68 | 34 | gsettings-desktop-schemas (>= 3.8.0), | ||
69 | 34 | libgirepository1.0-dev (>= 0.9.12), | 35 | libgirepository1.0-dev (>= 0.9.12), |
70 | 35 | libglib2.0-doc, | 36 | libglib2.0-doc, |
71 | 36 | libgtk-3-doc, | 37 | libgtk-3-doc, |
72 | @@ -112,8 +113,8 @@ | |||
73 | 112 | Section: libdevel | 113 | Section: libdevel |
74 | 113 | Depends: libnautilus-extension1a (= ${binary:Version}), | 114 | Depends: libnautilus-extension1a (= ${binary:Version}), |
75 | 114 | gir1.2-nautilus-3.0 (= ${binary:Version}), | 115 | gir1.2-nautilus-3.0 (= ${binary:Version}), |
78 | 115 | libglib2.0-dev (>= 2.33.13), | 116 | libglib2.0-dev (>= 2.35.3), |
79 | 116 | libgtk-3-dev (>= 3.5.12), | 117 | libgtk-3-dev (>= 3.7.7), |
80 | 117 | ${shlibs:Depends}, | 118 | ${shlibs:Depends}, |
81 | 118 | ${misc:Depends} | 119 | ${misc:Depends} |
82 | 119 | Description: libraries for nautilus components - development version | 120 | Description: libraries for nautilus components - development version |
83 | 120 | 121 | ||
84 | === modified file 'debian/control.in' | |||
85 | --- debian/control.in 2013-03-08 15:55:47 +0000 | |||
86 | +++ debian/control.in 2013-06-17 03:30:40 +0000 | |||
87 | @@ -9,9 +9,9 @@ | |||
88 | 9 | dh-migrations, | 9 | dh-migrations, |
89 | 10 | cdbs (>= 0.4.90), | 10 | cdbs (>= 0.4.90), |
90 | 11 | gnome-pkg-tools (>= 0.13), | 11 | gnome-pkg-tools (>= 0.13), |
92 | 12 | libglib2.0-dev (>= 2.33.13), | 12 | libglib2.0-dev (>= 2.35.3), |
93 | 13 | libatk1.0-dev (>= 1.32.0), | 13 | libatk1.0-dev (>= 1.32.0), |
95 | 14 | libgtk-3-dev (>= 3.5.12), | 14 | libgtk-3-dev (>= 3.7.7), |
96 | 15 | libgail-3-dev, | 15 | libgail-3-dev, |
97 | 16 | libgnome-desktop-3-dev (>= 3.0.0), | 16 | libgnome-desktop-3-dev (>= 3.0.0), |
98 | 17 | libxml2-dev (>= 2.7.8), | 17 | libxml2-dev (>= 2.7.8), |
99 | @@ -27,6 +27,7 @@ | |||
100 | 27 | x11proto-core-dev, | 27 | x11proto-core-dev, |
101 | 28 | shared-mime-info (>= 0.50), | 28 | shared-mime-info (>= 0.50), |
102 | 29 | gobject-introspection (>= 0.9.12-4~), | 29 | gobject-introspection (>= 0.9.12-4~), |
103 | 30 | gsettings-desktop-schemas (>= 3.8.0), | ||
104 | 30 | libgirepository1.0-dev (>= 0.9.12), | 31 | libgirepository1.0-dev (>= 0.9.12), |
105 | 31 | libglib2.0-doc, | 32 | libglib2.0-doc, |
106 | 32 | libgtk-3-doc, | 33 | libgtk-3-doc, |
107 | @@ -108,8 +109,8 @@ | |||
108 | 108 | Section: libdevel | 109 | Section: libdevel |
109 | 109 | Depends: libnautilus-extension1a (= ${binary:Version}), | 110 | Depends: libnautilus-extension1a (= ${binary:Version}), |
110 | 110 | gir1.2-nautilus-3.0 (= ${binary:Version}), | 111 | gir1.2-nautilus-3.0 (= ${binary:Version}), |
113 | 111 | libglib2.0-dev (>= 2.33.13), | 112 | libglib2.0-dev (>= 2.35.3), |
114 | 112 | libgtk-3-dev (>= 3.5.12), | 113 | libgtk-3-dev (>= 3.7.7), |
115 | 113 | ${shlibs:Depends}, | 114 | ${shlibs:Depends}, |
116 | 114 | ${misc:Depends} | 115 | ${misc:Depends} |
117 | 115 | Description: libraries for nautilus components - development version | 116 | Description: libraries for nautilus components - development version |
118 | 116 | 117 | ||
119 | === modified file 'debian/nautilus.install' | |||
120 | --- debian/nautilus.install 2012-10-29 00:09:57 +0000 | |||
121 | +++ debian/nautilus.install 2013-06-17 03:30:40 +0000 | |||
122 | @@ -3,7 +3,6 @@ | |||
123 | 3 | debian/nautilus-folder-handler.desktop usr/share/applications | 3 | debian/nautilus-folder-handler.desktop usr/share/applications |
124 | 4 | usr/bin | 4 | usr/bin |
125 | 5 | usr/lib/nautilus/nautilus-convert-metadata | 5 | usr/lib/nautilus/nautilus-convert-metadata |
126 | 6 | usr/lib/nautilus/nautilus-shell-search-provider | ||
127 | 7 | usr/lib/nautilus/extensions-3.0/*.so | 6 | usr/lib/nautilus/extensions-3.0/*.so |
128 | 8 | usr/share/applications | 7 | usr/share/applications |
129 | 9 | usr/share/dbus-1 | 8 | usr/share/dbus-1 |
130 | 10 | 9 | ||
131 | === removed file 'debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch' | |||
132 | --- debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch 2013-06-10 16:47:24 +0000 | |||
133 | +++ debian/patches/0001-trash-bar-fix-double-disconnect-handler.patch 1970-01-01 00:00:00 +0000 | |||
134 | @@ -1,25 +0,0 @@ | |||
135 | 1 | From 3d278607782dffa724d91680f4278273583e3962 Mon Sep 17 00:00:00 2001 | ||
136 | 2 | From: Pavel Vasin <rat4vier@gmail.com> | ||
137 | 3 | Date: Tue, 1 Jan 2013 15:53:26 +0400 | ||
138 | 4 | Subject: [PATCH] trash-bar: fix double disconnect handler | ||
139 | 5 | |||
140 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=691004 | ||
141 | 7 | --- | ||
142 | 8 | src/nautilus-trash-bar.c | 1 + | ||
143 | 9 | 1 file changed, 1 insertion(+) | ||
144 | 10 | |||
145 | 11 | diff --git a/src/nautilus-trash-bar.c b/src/nautilus-trash-bar.c | ||
146 | 12 | index 753de57..c41f48b 100644 | ||
147 | 13 | --- a/src/nautilus-trash-bar.c | ||
148 | 14 | +++ b/src/nautilus-trash-bar.c | ||
149 | 15 | @@ -107,6 +107,7 @@ nautilus_trash_bar_dispose (GObject *obj) | ||
150 | 16 | |||
151 | 17 | if (bar->priv->selection_handler_id) { | ||
152 | 18 | g_signal_handler_disconnect (bar->priv->view, bar->priv->selection_handler_id); | ||
153 | 19 | + bar->priv->selection_handler_id = 0; | ||
154 | 20 | } | ||
155 | 21 | |||
156 | 22 | G_OBJECT_CLASS (nautilus_trash_bar_parent_class)->dispose (obj); | ||
157 | 23 | -- | ||
158 | 24 | 1.8.3 | ||
159 | 25 | |||
160 | 26 | 0 | ||
161 | === modified file 'debian/patches/06_never_exec_nonexec_launchers.patch' | |||
162 | --- debian/patches/06_never_exec_nonexec_launchers.patch 2012-08-08 08:29:34 +0000 | |||
163 | +++ debian/patches/06_never_exec_nonexec_launchers.patch 2013-06-17 03:30:40 +0000 | |||
164 | @@ -3,11 +3,11 @@ | |||
165 | 3 | https://wiki.ubuntu.com/SecurityTeam/Policies#Execute-Permission%20Bit%20Required | 3 | https://wiki.ubuntu.com/SecurityTeam/Policies#Execute-Permission%20Bit%20Required |
166 | 4 | Author: Kees Cook <kees@ubuntu.com> | 4 | Author: Kees Cook <kees@ubuntu.com> |
167 | 5 | 5 | ||
169 | 6 | Index: nautilus-3.5.5/src/nautilus-mime-actions.c | 6 | Index: nautilus-3.7.2/src/nautilus-mime-actions.c |
170 | 7 | =================================================================== | 7 | =================================================================== |
174 | 8 | --- nautilus-3.5.5.orig/src/nautilus-mime-actions.c 2012-07-02 18:16:48.000000000 +0200 | 8 | --- nautilus-3.7.2.orig/src/nautilus-mime-actions.c 2012-11-16 03:54:24.000000000 +1300 |
175 | 9 | +++ nautilus-3.5.5/src/nautilus-mime-actions.c 2012-08-08 09:41:29.943206858 +0200 | 9 | +++ nautilus-3.7.2/src/nautilus-mime-actions.c 2012-11-27 12:40:56.976344888 +1300 |
176 | 10 | @@ -1553,12 +1553,14 @@ | 10 | @@ -1562,12 +1562,14 @@ |
177 | 11 | "text", primary, | 11 | "text", primary, |
178 | 12 | "secondary-text", secondary, | 12 | "secondary-text", secondary, |
179 | 13 | NULL); | 13 | NULL); |
180 | @@ -22,4 +22,3 @@ | |||
181 | 22 | gtk_dialog_add_button (GTK_DIALOG (dialog), | 22 | gtk_dialog_add_button (GTK_DIALOG (dialog), |
182 | 23 | GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); | 23 | GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); |
183 | 24 | gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); | 24 | gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); |
184 | 25 | |||
185 | 26 | 25 | ||
186 | === removed file 'debian/patches/09_no-initial-fade.patch' | |||
187 | --- debian/patches/09_no-initial-fade.patch 2012-10-29 00:09:57 +0000 | |||
188 | +++ debian/patches/09_no-initial-fade.patch 1970-01-01 00:00:00 +0000 | |||
189 | @@ -1,18 +0,0 @@ | |||
190 | 1 | # Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=575964 | ||
191 | 2 | # Patch: http://bugzilla.gnome.org/attachment.cgi?id=130970&action=view | ||
192 | 3 | # Description: remove initial background fade-in | ||
193 | 4 | # | ||
194 | 5 | # | ||
195 | 6 | Index: nautilus-3.5.5/libnautilus-private/nautilus-desktop-background.c | ||
196 | 7 | =================================================================== | ||
197 | 8 | --- nautilus-3.5.5.orig/libnautilus-private/nautilus-desktop-background.c 2012-08-07 17:53:26.000000000 +0200 | ||
198 | 9 | +++ nautilus-3.5.5/libnautilus-private/nautilus-desktop-background.c 2012-08-08 09:41:30.007206861 +0200 | ||
199 | 10 | @@ -394,8 +394,6 @@ | ||
200 | 11 | self->details->screen_monitors_handler = | ||
201 | 12 | g_signal_connect (screen, "monitors-changed", | ||
202 | 13 | G_CALLBACK (screen_size_changed), self); | ||
203 | 14 | - | ||
204 | 15 | - init_fade (self); | ||
205 | 16 | nautilus_desktop_background_set_up_widget (self); | ||
206 | 17 | } | ||
207 | 18 | |||
208 | 19 | 0 | ||
209 | === modified file 'debian/patches/12_unity_launcher_support.patch' | |||
210 | --- debian/patches/12_unity_launcher_support.patch 2013-03-12 18:26:02 +0000 | |||
211 | +++ debian/patches/12_unity_launcher_support.patch 2013-06-17 03:30:40 +0000 | |||
212 | @@ -1,18 +1,18 @@ | |||
215 | 1 | === modified file 'configure.in' | 1 | === modified file 'configure.ac' |
216 | 2 | Index: nautilus/configure.in | 2 | Index: nautilus-3.8.1/configure.ac |
217 | 3 | =================================================================== | 3 | =================================================================== |
222 | 4 | --- nautilus.orig/configure.in 2013-03-12 17:57:43.417743091 +0100 | 4 | --- nautilus-3.8.1.orig/configure.ac 2013-06-04 22:54:22.616331061 -0400 |
223 | 5 | +++ nautilus/configure.in 2013-03-12 17:57:43.413743092 +0100 | 5 | +++ nautilus-3.8.1/configure.ac 2013-06-04 22:54:22.608331062 -0400 |
224 | 6 | @@ -10,6 +10,8 @@ | 6 | @@ -11,6 +11,8 @@ |
221 | 7 | m4_define(exif_minver, 0.6.20) | ||
225 | 8 | m4_define(exempi_minver, 2.1.0) | 7 | m4_define(exempi_minver, 2.1.0) |
226 | 9 | m4_define(notify_minver, 0.7.0) | 8 | m4_define(notify_minver, 0.7.0) |
227 | 9 | m4_define(schemas_minver, 3.8.0) | ||
228 | 10 | +m4_define(unity_minver, 4.0.0) | 10 | +m4_define(unity_minver, 4.0.0) |
229 | 11 | +m4_define(dbusmenu_minver, 0.4.90) | 11 | +m4_define(dbusmenu_minver, 0.4.90) |
230 | 12 | 12 | ||
231 | 13 | |||
232 | 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. |
234 | 15 | @@ -191,6 +193,29 @@ | 14 | dnl 2. If any interfaces have been added, then increment current and set revision to 0. |
235 | 15 | @@ -193,6 +195,29 @@ | ||
236 | 16 | 16 | ||
237 | 17 | dnl ========================================================================== | 17 | dnl ========================================================================== |
238 | 18 | 18 | ||
239 | @@ -42,7 +42,7 @@ | |||
240 | 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. |
241 | 43 | 43 | ||
242 | 44 | WARNING_CFLAGS="" | 44 | WARNING_CFLAGS="" |
244 | 45 | @@ -345,6 +370,7 @@ | 45 | @@ -333,6 +358,7 @@ |
245 | 46 | libexif support: ${enable_exif} | 46 | libexif support: ${enable_exif} |
246 | 47 | libexempi support: ${enable_xmp} | 47 | libexempi support: ${enable_xmp} |
247 | 48 | PackageKit support: $msg_packagekit | 48 | PackageKit support: $msg_packagekit |
248 | @@ -50,10 +50,10 @@ | |||
249 | 50 | nautilus-sendto ext: $enable_nst_extension | 50 | nautilus-sendto ext: $enable_nst_extension |
250 | 51 | Tracker support: $enable_tracker | 51 | Tracker support: $enable_tracker |
251 | 52 | 52 | ||
253 | 53 | Index: nautilus/libnautilus-private/nautilus-progress-info.c | 53 | Index: nautilus-3.8.1/libnautilus-private/nautilus-progress-info.c |
254 | 54 | =================================================================== | 54 | =================================================================== |
257 | 55 | --- nautilus.orig/libnautilus-private/nautilus-progress-info.c 2013-03-12 17:57:43.417743091 +0100 | 55 | --- nautilus-3.8.1.orig/libnautilus-private/nautilus-progress-info.c 2013-06-04 22:54:22.616331061 -0400 |
258 | 56 | +++ nautilus/libnautilus-private/nautilus-progress-info.c 2013-03-12 17:57:43.413743092 +0100 | 56 | +++ nautilus-3.8.1/libnautilus-private/nautilus-progress-info.c 2013-06-04 22:54:22.608331062 -0400 |
259 | 57 | @@ -52,6 +52,8 @@ | 57 | @@ -52,6 +52,8 @@ |
260 | 58 | char *status; | 58 | char *status; |
261 | 59 | char *details; | 59 | char *details; |
262 | @@ -115,10 +115,10 @@ | |||
263 | 115 | info->progress_at_idle = TRUE; | 115 | info->progress_at_idle = TRUE; |
264 | 116 | queue_idle (info, FALSE); | 116 | queue_idle (info, FALSE); |
265 | 117 | } | 117 | } |
267 | 118 | Index: nautilus/libnautilus-private/nautilus-progress-info.h | 118 | Index: nautilus-3.8.1/libnautilus-private/nautilus-progress-info.h |
268 | 119 | =================================================================== | 119 | =================================================================== |
271 | 120 | --- nautilus.orig/libnautilus-private/nautilus-progress-info.h 2013-03-12 17:57:43.417743091 +0100 | 120 | --- nautilus-3.8.1.orig/libnautilus-private/nautilus-progress-info.h 2013-06-04 22:54:22.616331061 -0400 |
272 | 121 | +++ nautilus/libnautilus-private/nautilus-progress-info.h 2013-03-12 17:57:43.413743092 +0100 | 121 | +++ nautilus-3.8.1/libnautilus-private/nautilus-progress-info.h 2013-06-04 22:54:22.608331062 -0400 |
273 | 122 | @@ -62,6 +62,8 @@ | 122 | @@ -62,6 +62,8 @@ |
274 | 123 | gboolean nautilus_progress_info_get_is_started (NautilusProgressInfo *info); | 123 | gboolean nautilus_progress_info_get_is_started (NautilusProgressInfo *info); |
275 | 124 | gboolean nautilus_progress_info_get_is_finished (NautilusProgressInfo *info); | 124 | gboolean nautilus_progress_info_get_is_finished (NautilusProgressInfo *info); |
276 | @@ -128,19 +128,19 @@ | |||
277 | 128 | 128 | ||
278 | 129 | void nautilus_progress_info_start (NautilusProgressInfo *info); | 129 | void nautilus_progress_info_start (NautilusProgressInfo *info); |
279 | 130 | void nautilus_progress_info_finish (NautilusProgressInfo *info); | 130 | void nautilus_progress_info_finish (NautilusProgressInfo *info); |
281 | 131 | Index: nautilus/src/Makefile.am | 131 | Index: nautilus-3.8.1/src/Makefile.am |
282 | 132 | =================================================================== | 132 | =================================================================== |
286 | 133 | --- nautilus.orig/src/Makefile.am 2013-03-12 17:57:43.417743091 +0100 | 133 | --- nautilus-3.8.1.orig/src/Makefile.am 2013-06-04 22:54:22.616331061 -0400 |
287 | 134 | +++ nautilus/src/Makefile.am 2013-03-12 17:57:43.413743092 +0100 | 134 | +++ nautilus-3.8.1/src/Makefile.am 2013-06-04 22:54:22.608331062 -0400 |
288 | 135 | @@ -31,6 +31,7 @@ | 135 | @@ -29,6 +29,7 @@ |
289 | 136 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ | 136 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ |
290 | 137 | -DVERSION="\"$(VERSION)\"" \ | 137 | -DVERSION="\"$(VERSION)\"" \ |
292 | 138 | $(DISABLE_DEPRECATED_CFLAGS) \ | 138 | $(DISABLE_DEPRECATED) \ |
293 | 139 | + $(UNITY_CFLAGS) \ | 139 | + $(UNITY_CFLAGS) \ |
294 | 140 | $(NULL) | 140 | $(NULL) |
295 | 141 | 141 | ||
296 | 142 | LDADD =\ | 142 | LDADD =\ |
298 | 143 | @@ -42,6 +43,7 @@ | 143 | @@ -40,6 +41,7 @@ |
299 | 144 | $(EXIF_LIBS) \ | 144 | $(EXIF_LIBS) \ |
300 | 145 | $(EXEMPI_LIBS) \ | 145 | $(EXEMPI_LIBS) \ |
301 | 146 | $(POPT_LIBS) \ | 146 | $(POPT_LIBS) \ |
302 | @@ -159,10 +159,10 @@ | |||
303 | 159 | $(NULL) | 159 | $(NULL) |
304 | 160 | 160 | ||
305 | 161 | nodist_nautilus_SOURCES = \ | 161 | nodist_nautilus_SOURCES = \ |
307 | 162 | Index: nautilus/src/nautilus-progress-ui-handler.c | 162 | Index: nautilus-3.8.1/src/nautilus-progress-ui-handler.c |
308 | 163 | =================================================================== | 163 | =================================================================== |
311 | 164 | --- nautilus.orig/src/nautilus-progress-ui-handler.c 2013-03-12 17:57:43.417743091 +0100 | 164 | --- nautilus-3.8.1.orig/src/nautilus-progress-ui-handler.c 2013-06-04 22:54:22.616331061 -0400 |
312 | 165 | +++ nautilus/src/nautilus-progress-ui-handler.c 2013-03-12 17:57:43.413743092 +0100 | 165 | +++ nautilus-3.8.1/src/nautilus-progress-ui-handler.c 2013-06-04 22:54:22.608331062 -0400 |
313 | 166 | @@ -38,6 +38,11 @@ | 166 | @@ -38,6 +38,11 @@ |
314 | 167 | 167 | ||
315 | 168 | #include <libnotify/notify.h> | 168 | #include <libnotify/notify.h> |
316 | @@ -185,7 +185,7 @@ | |||
317 | 185 | }; | 185 | }; |
318 | 186 | 186 | ||
319 | 187 | G_DEFINE_TYPE (NautilusProgressUIHandler, nautilus_progress_ui_handler, G_TYPE_OBJECT); | 187 | G_DEFINE_TYPE (NautilusProgressUIHandler, nautilus_progress_ui_handler, G_TYPE_OBJECT); |
321 | 188 | @@ -181,6 +189,221 @@ | 188 | @@ -183,6 +191,221 @@ |
322 | 189 | gtk_status_icon_set_visible (self->priv->status_icon, TRUE); | 189 | gtk_status_icon_set_visible (self->priv->status_icon, TRUE); |
323 | 190 | } | 190 | } |
324 | 191 | 191 | ||
325 | @@ -407,7 +407,7 @@ | |||
326 | 407 | static gboolean | 407 | static gboolean |
327 | 408 | progress_window_delete_event (GtkWidget *widget, | 408 | progress_window_delete_event (GtkWidget *widget, |
328 | 409 | GdkEvent *event, | 409 | GdkEvent *event, |
330 | 410 | @@ -313,6 +536,10 @@ | 410 | @@ -317,6 +540,10 @@ |
331 | 411 | progress_ui_handler_show_complete_notification (self); | 411 | progress_ui_handler_show_complete_notification (self); |
332 | 412 | } | 412 | } |
333 | 413 | } | 413 | } |
334 | @@ -418,7 +418,7 @@ | |||
335 | 418 | } | 418 | } |
336 | 419 | 419 | ||
337 | 420 | static void | 420 | static void |
339 | 421 | @@ -335,6 +562,10 @@ | 421 | @@ -339,6 +566,10 @@ |
340 | 422 | progress_ui_handler_update_notification_or_status (self); | 422 | progress_ui_handler_update_notification_or_status (self); |
341 | 423 | } | 423 | } |
342 | 424 | } | 424 | } |
343 | @@ -429,10 +429,10 @@ | |||
344 | 429 | } | 429 | } |
345 | 430 | 430 | ||
346 | 431 | typedef struct { | 431 | typedef struct { |
348 | 432 | Index: nautilus/src/unity-quicklist-handler.c | 432 | Index: nautilus-3.8.1/src/unity-quicklist-handler.c |
349 | 433 | =================================================================== | 433 | =================================================================== |
350 | 434 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 434 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
352 | 435 | +++ nautilus/src/unity-quicklist-handler.c 2013-03-12 17:57:43.413743092 +0100 | 435 | +++ nautilus-3.8.1/src/unity-quicklist-handler.c 2013-06-04 22:54:22.608331062 -0400 |
353 | 436 | @@ -0,0 +1,153 @@ | 436 | @@ -0,0 +1,153 @@ |
354 | 437 | +/*unity-quicklist-handler.c: handle Unity quicklists | 437 | +/*unity-quicklist-handler.c: handle Unity quicklists |
355 | 438 | + * | 438 | + * |
356 | @@ -587,10 +587,10 @@ | |||
357 | 587 | + return g_object_new (UNITY_TYPE_QUICKLIST_HANDLER, NULL); | 587 | + return g_object_new (UNITY_TYPE_QUICKLIST_HANDLER, NULL); |
358 | 588 | +} | 588 | +} |
359 | 589 | + | 589 | + |
361 | 590 | Index: nautilus/src/unity-quicklist-handler.h | 590 | Index: nautilus-3.8.1/src/unity-quicklist-handler.h |
362 | 591 | =================================================================== | 591 | =================================================================== |
363 | 592 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 592 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
365 | 593 | +++ nautilus/src/unity-quicklist-handler.h 2013-03-12 17:57:43.413743092 +0100 | 593 | +++ nautilus-3.8.1/src/unity-quicklist-handler.h 2013-06-04 22:54:22.612331061 -0400 |
366 | 594 | @@ -0,0 +1,75 @@ | 594 | @@ -0,0 +1,75 @@ |
367 | 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 -*- */ |
368 | 596 | +/* | 596 | +/* |
369 | @@ -667,10 +667,10 @@ | |||
370 | 667 | +#define UNITY_QUICKLIST_CANCEL_COPY _("Cancel All In-progress Actions") | 667 | +#define UNITY_QUICKLIST_CANCEL_COPY _("Cancel All In-progress Actions") |
371 | 668 | + | 668 | + |
372 | 669 | +#endif /* __UNITY_QUICKLIST_HANDLER_H__ */ | 669 | +#endif /* __UNITY_QUICKLIST_HANDLER_H__ */ |
374 | 670 | Index: nautilus/src/nautilus-application.c | 670 | Index: nautilus-3.8.1/src/nautilus-application.c |
375 | 671 | =================================================================== | 671 | =================================================================== |
378 | 672 | --- nautilus.orig/src/nautilus-application.c 2013-03-12 17:57:43.417743091 +0100 | 672 | --- nautilus-3.8.1.orig/src/nautilus-application.c 2013-06-04 22:54:22.616331061 -0400 |
379 | 673 | +++ nautilus/src/nautilus-application.c 2013-03-12 17:57:43.417743091 +0100 | 673 | +++ nautilus-3.8.1/src/nautilus-application.c 2013-06-04 22:54:22.612331061 -0400 |
380 | 674 | @@ -79,6 +79,10 @@ | 674 | @@ -79,6 +79,10 @@ |
381 | 675 | #include <gdk/gdkx.h> | 675 | #include <gdk/gdkx.h> |
382 | 676 | #include <gtk/gtk.h> | 676 | #include <gtk/gtk.h> |
383 | @@ -682,8 +682,8 @@ | |||
384 | 682 | /* Keep window from shrinking down ridiculously small; numbers are somewhat arbitrary */ | 682 | /* Keep window from shrinking down ridiculously small; numbers are somewhat arbitrary */ |
385 | 683 | #define APPLICATION_WINDOW_MIN_WIDTH 300 | 683 | #define APPLICATION_WINDOW_MIN_WIDTH 300 |
386 | 684 | #define APPLICATION_WINDOW_MIN_HEIGHT 100 | 684 | #define APPLICATION_WINDOW_MIN_HEIGHT 100 |
389 | 685 | @@ -1548,6 +1552,10 @@ | 685 | @@ -1646,6 +1650,10 @@ |
390 | 686 | nautilus_application_init_actions (self); | 686 | init_desktop (self); |
391 | 687 | 687 | ||
392 | 688 | nautilus_profile_end (NULL); | 688 | nautilus_profile_end (NULL); |
393 | 689 | + | 689 | + |
394 | @@ -693,11 +693,11 @@ | |||
395 | 693 | } | 693 | } |
396 | 694 | 694 | ||
397 | 695 | static void | 695 | static void |
399 | 696 | Index: nautilus/src/unity-bookmarks-handler.c | 696 | Index: nautilus-3.8.1/src/unity-bookmarks-handler.c |
400 | 697 | =================================================================== | 697 | =================================================================== |
401 | 698 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 698 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
404 | 699 | +++ nautilus/src/unity-bookmarks-handler.c 2013-03-12 18:57:09.410958729 +0100 | 699 | +++ nautilus-3.8.1/src/unity-bookmarks-handler.c 2013-06-04 22:54:36.572330478 -0400 |
405 | 700 | @@ -0,0 +1,144 @@ | 700 | @@ -0,0 +1,140 @@ |
406 | 701 | +/*unity-bookmarks-handler.c: handle Unity bookmark for quicklist | 701 | +/*unity-bookmarks-handler.c: handle Unity bookmark for quicklist |
407 | 702 | + * | 702 | + * |
408 | 703 | + * Copyright (C) 2012 Canonical | 703 | + * Copyright (C) 2012 Canonical |
409 | @@ -802,10 +802,6 @@ | |||
410 | 802 | + | 802 | + |
411 | 803 | + bookmark = nautilus_bookmark_list_item_at (bookmarks, index); | 803 | + bookmark = nautilus_bookmark_list_item_at (bookmarks, index); |
412 | 804 | + | 804 | + |
413 | 805 | + if (nautilus_bookmark_uri_known_not_to_exist (bookmark)) { | ||
414 | 806 | + continue; | ||
415 | 807 | + } | ||
416 | 808 | + | ||
417 | 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) { |
418 | 810 | + UnityLauncherEntry *entry = l->data; | 806 | + UnityLauncherEntry *entry = l->data; |
419 | 811 | + | 807 | + |
420 | @@ -842,10 +838,10 @@ | |||
421 | 842 | + G_CALLBACK (unity_bookmarks_handler_refresh_bookmarks), 0); | 838 | + G_CALLBACK (unity_bookmarks_handler_refresh_bookmarks), 0); |
422 | 843 | +} | 839 | +} |
423 | 844 | + | 840 | + |
425 | 845 | Index: nautilus/src/unity-bookmarks-handler.h | 841 | Index: nautilus-3.8.1/src/unity-bookmarks-handler.h |
426 | 846 | =================================================================== | 842 | =================================================================== |
427 | 847 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 843 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
429 | 848 | +++ nautilus/src/unity-bookmarks-handler.h 2013-03-12 17:57:43.417743091 +0100 | 844 | +++ nautilus-3.8.1/src/unity-bookmarks-handler.h 2013-06-04 22:54:22.612331061 -0400 |
430 | 849 | @@ -0,0 +1,31 @@ | 845 | @@ -0,0 +1,31 @@ |
431 | 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 -*- */ |
432 | 851 | +/* | 847 | +/* |
433 | @@ -878,10 +874,10 @@ | |||
434 | 878 | +void unity_bookmarks_handler_initialize (void); | 874 | +void unity_bookmarks_handler_initialize (void); |
435 | 879 | + | 875 | + |
436 | 880 | +#endif /* __UNITY_BOOKMARKS_HANDLER_H__*/ | 876 | +#endif /* __UNITY_BOOKMARKS_HANDLER_H__*/ |
438 | 881 | Index: nautilus/po/POTFILES.in | 877 | Index: nautilus-3.8.1/po/POTFILES.in |
439 | 882 | =================================================================== | 878 | =================================================================== |
442 | 883 | --- nautilus.orig/po/POTFILES.in 2013-03-12 17:57:43.417743091 +0100 | 879 | --- nautilus-3.8.1.orig/po/POTFILES.in 2013-06-04 22:54:22.616331061 -0400 |
443 | 884 | +++ nautilus/po/POTFILES.in 2013-03-12 17:57:43.417743091 +0100 | 880 | +++ nautilus-3.8.1/po/POTFILES.in 2013-06-04 22:54:22.612331061 -0400 |
444 | 885 | @@ -90,3 +90,4 @@ | 881 | @@ -90,3 +90,4 @@ |
445 | 886 | src/nautilus-window-private.h | 882 | src/nautilus-window-private.h |
446 | 887 | src/nautilus-window-slot.c | 883 | src/nautilus-window-slot.c |
447 | 888 | 884 | ||
448 | === modified file 'debian/patches/15_use-ubuntu-help.patch' | |||
449 | --- debian/patches/15_use-ubuntu-help.patch 2012-11-03 15:59:48 +0000 | |||
450 | +++ debian/patches/15_use-ubuntu-help.patch 2013-06-17 03:30:40 +0000 | |||
451 | @@ -3,10 +3,10 @@ | |||
452 | 3 | Forwarded: Not needed | 3 | Forwarded: Not needed |
453 | 4 | Author: Jeremy Bicha <jbicha@ubuntu.com> | 4 | Author: Jeremy Bicha <jbicha@ubuntu.com> |
454 | 5 | 5 | ||
456 | 6 | Index: nautilus-3.6.2/src/nautilus-connect-server-dialog.c | 6 | Index: nautilus-3.7.2/src/nautilus-connect-server-dialog.c |
457 | 7 | =================================================================== | 7 | =================================================================== |
460 | 8 | --- nautilus-3.6.2.orig/src/nautilus-connect-server-dialog.c 2012-11-02 22:03:55.514929059 -0400 | 8 | --- nautilus-3.7.2.orig/src/nautilus-connect-server-dialog.c 2012-10-30 12:39:52.000000000 +1300 |
461 | 9 | +++ nautilus-3.6.2/src/nautilus-connect-server-dialog.c 2012-11-02 22:04:24.466927848 -0400 | 9 | +++ nautilus-3.7.2/src/nautilus-connect-server-dialog.c 2012-11-27 12:42:46.844343840 +1300 |
462 | 10 | @@ -97,7 +97,12 @@ | 10 | @@ -97,7 +97,12 @@ |
463 | 11 | break; | 11 | break; |
464 | 12 | case GTK_RESPONSE_HELP: | 12 | case GTK_RESPONSE_HELP: |
465 | @@ -21,10 +21,10 @@ | |||
466 | 21 | "help:gnome-help/nautilus-connect", | 21 | "help:gnome-help/nautilus-connect", |
467 | 22 | gtk_get_current_event_time (), &error); | 22 | gtk_get_current_event_time (), &error); |
468 | 23 | if (error) { | 23 | if (error) { |
470 | 24 | Index: nautilus-3.6.2/src/nautilus-file-management-properties.c | 24 | Index: nautilus-3.7.2/src/nautilus-file-management-properties.c |
471 | 25 | =================================================================== | 25 | =================================================================== |
474 | 26 | --- nautilus-3.6.2.orig/src/nautilus-file-management-properties.c 2012-11-02 22:03:55.514929059 -0400 | 26 | --- nautilus-3.7.2.orig/src/nautilus-file-management-properties.c 2012-10-30 12:39:52.000000000 +1300 |
475 | 27 | +++ nautilus-3.6.2/src/nautilus-file-management-properties.c 2012-11-02 22:04:24.466927848 -0400 | 27 | +++ nautilus-3.7.2/src/nautilus-file-management-properties.c 2012-11-27 12:42:46.844343840 +1300 |
476 | 28 | @@ -232,7 +232,10 @@ | 28 | @@ -232,7 +232,10 @@ |
477 | 29 | section = "nautilus-preview"; | 29 | section = "nautilus-preview"; |
478 | 30 | break; | 30 | break; |
479 | @@ -37,11 +37,11 @@ | |||
480 | 37 | } else if (response_id == GTK_RESPONSE_CLOSE) { | 37 | } else if (response_id == GTK_RESPONSE_CLOSE) { |
481 | 38 | gtk_widget_destroy (GTK_WIDGET (parent)); | 38 | gtk_widget_destroy (GTK_WIDGET (parent)); |
482 | 39 | } | 39 | } |
484 | 40 | Index: nautilus-3.6.2/src/nautilus-properties-window.c | 40 | Index: nautilus-3.7.2/src/nautilus-properties-window.c |
485 | 41 | =================================================================== | 41 | =================================================================== |
489 | 42 | --- nautilus-3.6.2.orig/src/nautilus-properties-window.c 2012-11-02 22:03:55.514929059 -0400 | 42 | --- nautilus-3.7.2.orig/src/nautilus-properties-window.c 2012-11-14 02:19:44.000000000 +1300 |
490 | 43 | +++ nautilus-3.6.2/src/nautilus-properties-window.c 2012-11-02 22:08:49.666916757 -0400 | 43 | +++ nautilus-3.7.2/src/nautilus-properties-window.c 2012-11-27 12:42:46.844343840 +1300 |
491 | 44 | @@ -3158,7 +3158,11 @@ | 44 | @@ -3197,7 +3197,11 @@ |
492 | 45 | GtkWidget *volume_usage; | 45 | GtkWidget *volume_usage; |
493 | 46 | GtkWidget *hbox, *vbox; | 46 | GtkWidget *hbox, *vbox; |
494 | 47 | 47 | ||
495 | @@ -54,7 +54,7 @@ | |||
496 | 54 | "help:gnome-help/nautilus-file-properties-basic"); | 54 | "help:gnome-help/nautilus-file-properties-basic"); |
497 | 55 | 55 | ||
498 | 56 | /* Icon pixmap */ | 56 | /* Icon pixmap */ |
500 | 57 | @@ -4491,10 +4495,16 @@ | 57 | @@ -4532,10 +4536,16 @@ |
501 | 58 | char *file_name, *prompt_text; | 58 | char *file_name, *prompt_text; |
502 | 59 | GList *file_list; | 59 | GList *file_list; |
503 | 60 | 60 | ||
504 | @@ -72,7 +72,7 @@ | |||
505 | 72 | file_list = window->details->original_files; | 72 | file_list = window->details->original_files; |
506 | 73 | 73 | ||
507 | 74 | window->details->initial_permissions = NULL; | 74 | window->details->initial_permissions = NULL; |
509 | 75 | @@ -4791,7 +4801,11 @@ | 75 | @@ -4832,7 +4842,11 @@ |
510 | 76 | g_free (mime_type); | 76 | g_free (mime_type); |
511 | 77 | g_list_free (files); | 77 | g_list_free (files); |
512 | 78 | 78 | ||
513 | @@ -85,7 +85,7 @@ | |||
514 | 85 | gtk_notebook_append_page (window->details->notebook, | 85 | gtk_notebook_append_page (window->details->notebook, |
515 | 86 | vbox, gtk_label_new (_("Open With"))); | 86 | vbox, gtk_label_new (_("Open With"))); |
516 | 87 | } | 87 | } |
518 | 88 | @@ -5143,10 +5157,18 @@ | 88 | @@ -5184,10 +5198,18 @@ |
519 | 89 | curpage = gtk_notebook_get_nth_page (window->details->notebook, | 89 | curpage = gtk_notebook_get_nth_page (window->details->notebook, |
520 | 90 | gtk_notebook_get_current_page (window->details->notebook)); | 90 | gtk_notebook_get_current_page (window->details->notebook)); |
521 | 91 | helpuri = g_object_get_data (G_OBJECT (curpage), "help-uri"); | 91 | helpuri = g_object_get_data (G_OBJECT (curpage), "help-uri"); |
522 | @@ -105,11 +105,11 @@ | |||
523 | 105 | if (error != NULL) { | 105 | if (error != NULL) { |
524 | 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, |
525 | 107 | GTK_WINDOW (dialog)); | 107 | GTK_WINDOW (dialog)); |
527 | 108 | Index: nautilus-3.6.2/src/nautilus-view.c | 108 | Index: nautilus-3.7.2/src/nautilus-view.c |
528 | 109 | =================================================================== | 109 | =================================================================== |
532 | 110 | --- nautilus-3.6.2.orig/src/nautilus-view.c 2012-11-02 22:03:55.514929059 -0400 | 110 | --- nautilus-3.7.2.orig/src/nautilus-view.c 2012-11-27 12:41:58.000000000 +1300 |
533 | 111 | +++ nautilus-3.6.2/src/nautilus-view.c 2012-11-02 22:04:24.474927848 -0400 | 111 | +++ nautilus-3.7.2/src/nautilus-view.c 2012-11-27 12:42:46.848343840 +1300 |
534 | 112 | @@ -1434,7 +1434,12 @@ | 112 | @@ -1431,7 +1431,12 @@ |
535 | 113 | break; | 113 | break; |
536 | 114 | case GTK_RESPONSE_HELP : | 114 | case GTK_RESPONSE_HELP : |
537 | 115 | error = NULL; | 115 | error = NULL; |
538 | @@ -123,11 +123,11 @@ | |||
539 | 123 | "help:gnome-help/files-select", | 123 | "help:gnome-help/files-select", |
540 | 124 | gtk_get_current_event_time (), &error); | 124 | gtk_get_current_event_time (), &error); |
541 | 125 | if (error) { | 125 | if (error) { |
543 | 126 | Index: nautilus-3.6.2/src/nautilus-window-menus.c | 126 | Index: nautilus-3.7.2/src/nautilus-window-menus.c |
544 | 127 | =================================================================== | 127 | =================================================================== |
548 | 128 | --- nautilus-3.6.2.orig/src/nautilus-window-menus.c 2012-11-02 22:03:55.514929059 -0400 | 128 | --- nautilus-3.7.2.orig/src/nautilus-window-menus.c 2012-11-20 10:20:41.000000000 +1300 |
549 | 129 | +++ nautilus-3.6.2/src/nautilus-window-menus.c 2012-11-02 22:04:24.474927848 -0400 | 129 | +++ nautilus-3.7.2/src/nautilus-window-menus.c 2012-11-27 12:42:46.848343840 +1300 |
550 | 130 | @@ -221,31 +221,39 @@ | 130 | @@ -220,31 +220,39 @@ |
551 | 131 | GError *error; | 131 | GError *error; |
552 | 132 | GtkWidget *dialog; | 132 | GtkWidget *dialog; |
553 | 133 | const char* helpuri; | 133 | const char* helpuri; |
554 | @@ -173,17 +173,15 @@ | |||
555 | 173 | if (error) { | 173 | if (error) { |
556 | 174 | dialog = gtk_message_dialog_new (GTK_WINDOW (window), | 174 | dialog = gtk_message_dialog_new (GTK_WINDOW (window), |
557 | 175 | GTK_DIALOG_MODAL, | 175 | GTK_DIALOG_MODAL, |
559 | 176 | Index: nautilus-3.6.2/src/nautilus-application.c | 176 | Index: nautilus-3.7.2/src/nautilus-application.c |
560 | 177 | =================================================================== | 177 | =================================================================== |
565 | 178 | --- nautilus-3.6.2.orig/src/nautilus-application.c 2012-11-02 22:03:55.514929059 -0400 | 178 | --- nautilus-3.7.2.orig/src/nautilus-application.c 2012-11-27 12:42:33.680343967 +1300 |
566 | 179 | +++ nautilus-3.6.2/src/nautilus-application.c 2012-11-02 22:04:24.474927848 -0400 | 179 | +++ nautilus-3.7.2/src/nautilus-application.c 2012-11-27 12:42:46.848343840 +1300 |
567 | 180 | @@ -874,8 +874,15 @@ | 180 | @@ -860,7 +860,14 @@ |
564 | 181 | GtkApplication *application = user_data; | ||
568 | 182 | GError *error = NULL; | 181 | GError *error = NULL; |
569 | 183 | 182 | ||
571 | 184 | - window = get_focus_window (application); | 183 | window = gtk_application_get_active_window (application); |
572 | 185 | - gtk_show_uri (window ? | 184 | - gtk_show_uri (window ? |
573 | 186 | + window = get_focus_window (application); | ||
574 | 187 | + if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "Unity")) | 185 | + if (!g_strcmp0(g_getenv("XDG_CURRENT_DESKTOP"), "Unity")) |
575 | 188 | + gtk_show_uri (window ? | 186 | + gtk_show_uri (window ? |
576 | 189 | + gtk_window_get_screen (GTK_WINDOW (window)) : | 187 | + gtk_window_get_screen (GTK_WINDOW (window)) : |
577 | 190 | 188 | ||
578 | === modified file 'debian/patches/17_static_unity_quicklist.patch' | |||
579 | --- debian/patches/17_static_unity_quicklist.patch 2013-03-12 18:26:02 +0000 | |||
580 | +++ debian/patches/17_static_unity_quicklist.patch 2013-06-17 03:30:40 +0000 | |||
581 | @@ -1,11 +1,11 @@ | |||
583 | 1 | Index: nautilus/data/nautilus.desktop.in.in | 1 | Index: nautilus-3.7.2/data/nautilus.desktop.in.in |
584 | 2 | =================================================================== | 2 | =================================================================== |
587 | 3 | --- nautilus.orig/data/nautilus.desktop.in.in 2013-03-12 17:08:37.121951465 +0100 | 3 | --- nautilus-3.7.2.orig/data/nautilus.desktop.in.in 2012-11-14 02:19:44.000000000 +1300 |
588 | 4 | +++ nautilus/data/nautilus.desktop.in.in 2013-03-12 17:11:35.029894735 +0100 | 4 | +++ nautilus-3.7.2/data/nautilus.desktop.in.in 2012-11-27 12:42:49.748343814 +1300 |
589 | 5 | @@ -14,3 +14,9 @@ | 5 | @@ -14,3 +14,9 @@ |
590 | 6 | X-GNOME-Bugzilla-Product=nautilus | ||
591 | 7 | X-GNOME-Bugzilla-Component=general | 6 | X-GNOME-Bugzilla-Component=general |
592 | 8 | X-GNOME-Bugzilla-Version=@VERSION@ | 7 | X-GNOME-Bugzilla-Version=@VERSION@ |
593 | 8 | X-GNOME-UsesNotifications=true | ||
594 | 9 | +Actions=Window; | 9 | +Actions=Window; |
595 | 10 | + | 10 | + |
596 | 11 | +[Desktop Action Window] | 11 | +[Desktop Action Window] |
597 | 12 | 12 | ||
598 | === modified file 'debian/patches/18_unity_icon_color.patch' | |||
599 | --- debian/patches/18_unity_icon_color.patch 2013-03-08 13:44:44 +0000 | |||
600 | +++ debian/patches/18_unity_icon_color.patch 2013-06-17 03:30:40 +0000 | |||
601 | @@ -1,10 +1,10 @@ | |||
603 | 1 | Index: nautilus-3.6.3/data/nautilus.desktop.in.in | 1 | Index: nautilus-3.8.1/data/nautilus.desktop.in.in |
604 | 2 | =================================================================== | 2 | =================================================================== |
609 | 3 | --- nautilus-3.6.3.orig/data/nautilus.desktop.in.in 2013-03-08 11:22:36.712732149 +0100 | 3 | --- nautilus-3.8.1.orig/data/nautilus.desktop.in.in 2013-06-04 22:27:44.308397907 -0400 |
610 | 4 | +++ nautilus-3.6.3/data/nautilus.desktop.in.in 2013-03-08 11:23:04.052733060 +0100 | 4 | +++ nautilus-3.8.1/data/nautilus.desktop.in.in 2013-06-04 22:27:44.304397907 -0400 |
611 | 5 | @@ -14,6 +14,7 @@ | 5 | @@ -16,6 +16,7 @@ |
608 | 6 | X-GNOME-Bugzilla-Component=general | ||
612 | 7 | X-GNOME-Bugzilla-Version=@VERSION@ | 6 | X-GNOME-Bugzilla-Version=@VERSION@ |
613 | 7 | X-GNOME-UsesNotifications=true | ||
614 | 8 | Actions=Window; | 8 | Actions=Window; |
615 | 9 | +X-Unity-IconBackgroundColor=#af4853 | 9 | +X-Unity-IconBackgroundColor=#af4853 |
616 | 10 | 10 | ||
617 | 11 | 11 | ||
618 | === modified file 'debian/patches/19_unity_open_location_xid.patch' | |||
619 | --- debian/patches/19_unity_open_location_xid.patch 2013-03-27 18:56:42 +0000 | |||
620 | +++ debian/patches/19_unity_open_location_xid.patch 2013-06-17 03:30:40 +0000 | |||
621 | @@ -1,7 +1,15 @@ | |||
622 | 1 | Description: Add a new dbus property to the nautilus' | ||
623 | 2 | "org.freedesktop.FileManager1" dbus interface where it stores the lists of | ||
624 | 3 | opened locations referenced by their parent nautilus window XID. | ||
625 | 4 | |||
626 | 5 | Bug-Ubuntu: https://bugs.launchpad.net/unity/+bug/887449 | ||
627 | 6 | Forwarded: no | ||
628 | 7 | Author: Marco Trevisan <marco@ubuntu.com> | ||
629 | 8 | |||
630 | 1 | Index: nautilus/data/freedesktop-dbus-interfaces.xml | 9 | Index: nautilus/data/freedesktop-dbus-interfaces.xml |
631 | 2 | =================================================================== | 10 | =================================================================== |
634 | 3 | --- nautilus.orig/data/freedesktop-dbus-interfaces.xml 2013-03-27 15:18:14.620455679 +0100 | 11 | --- nautilus.orig/data/freedesktop-dbus-interfaces.xml 2013-06-10 21:00:24.913944953 +0200 |
635 | 4 | +++ nautilus/data/freedesktop-dbus-interfaces.xml 2013-03-27 15:18:36.812457731 +0100 | 12 | +++ nautilus/data/freedesktop-dbus-interfaces.xml 2013-06-10 21:00:24.905944954 +0200 |
636 | 5 | @@ -33,5 +33,6 @@ | 13 | @@ -33,5 +33,6 @@ |
637 | 6 | <arg type='s' name='StartupId' direction='in'/> | 14 | <arg type='s' name='StartupId' direction='in'/> |
638 | 7 | </method> | 15 | </method> |
639 | @@ -11,9 +19,9 @@ | |||
640 | 11 | </node> | 19 | </node> |
641 | 12 | Index: nautilus/src/nautilus-application.c | 20 | Index: nautilus/src/nautilus-application.c |
642 | 13 | =================================================================== | 21 | =================================================================== |
646 | 14 | --- nautilus.orig/src/nautilus-application.c 2013-03-27 14:24:02.345633000 +0100 | 22 | --- nautilus.orig/src/nautilus-application.c 2013-06-10 21:00:24.913944953 +0200 |
647 | 15 | +++ nautilus/src/nautilus-application.c 2013-03-27 17:22:49.598601760 +0100 | 23 | +++ nautilus/src/nautilus-application.c 2013-06-10 21:00:24.905944954 +0200 |
648 | 16 | @@ -1589,6 +1589,11 @@ | 24 | @@ -1672,6 +1672,11 @@ |
649 | 17 | 25 | ||
650 | 18 | g_return_if_fail (NAUTILUS_IS_APPLICATION (app)); | 26 | g_return_if_fail (NAUTILUS_IS_APPLICATION (app)); |
651 | 19 | 27 | ||
652 | @@ -25,7 +33,7 @@ | |||
653 | 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) { |
654 | 26 | NautilusWindow *win = NAUTILUS_WINDOW (l->data); | 34 | NautilusWindow *win = NAUTILUS_WINDOW (l->data); |
655 | 27 | 35 | ||
657 | 28 | @@ -1596,11 +1601,15 @@ | 36 | @@ -1679,11 +1684,15 @@ |
658 | 29 | continue; | 37 | continue; |
659 | 30 | } | 38 | } |
660 | 31 | 39 | ||
661 | @@ -41,7 +49,7 @@ | |||
662 | 41 | GList *found = g_list_find_custom (locations, uri, (GCompareFunc) g_strcmp0); | 49 | GList *found = g_list_find_custom (locations, uri, (GCompareFunc) g_strcmp0); |
663 | 42 | 50 | ||
664 | 43 | if (!found) { | 51 | if (!found) { |
666 | 44 | @@ -1611,6 +1620,17 @@ | 52 | @@ -1694,6 +1703,17 @@ |
667 | 45 | } | 53 | } |
668 | 46 | } | 54 | } |
669 | 47 | } | 55 | } |
670 | @@ -59,15 +67,16 @@ | |||
671 | 59 | } | 67 | } |
672 | 60 | 68 | ||
673 | 61 | locations_array = g_new (gchar*, locations_size + 1); | 69 | locations_array = g_new (gchar*, locations_size + 1); |
676 | 62 | @@ -1623,6 +1643,7 @@ | 70 | @@ -1707,6 +1727,8 @@ |
675 | 63 | locations_array[locations_size] = NULL; | ||
677 | 64 | 71 | ||
680 | 65 | nautilus_freedesktop_dbus_set_open_locations ((const gchar**) locations_array); | 72 | nautilus_freedesktop_dbus_set_open_locations (app->priv->fdb_manager, |
681 | 66 | + nautilus_freedesktop_dbus_set_open_locations_xids (g_variant_builder_end (&b)); | 73 | (const gchar**) locations_array); |
682 | 74 | + nautilus_freedesktop_dbus_set_open_locations_xids (app->priv->fdb_manager, | ||
683 | 75 | + g_variant_builder_end (&b)); | ||
684 | 67 | 76 | ||
685 | 68 | g_free (locations_array); | 77 | g_free (locations_array); |
686 | 69 | g_list_free_full (locations, g_free); | 78 | g_list_free_full (locations, g_free); |
688 | 70 | @@ -1660,14 +1681,24 @@ | 79 | @@ -1744,14 +1766,24 @@ |
689 | 71 | } | 80 | } |
690 | 72 | 81 | ||
691 | 73 | static void | 82 | static void |
692 | @@ -94,7 +103,7 @@ | |||
693 | 94 | } | 103 | } |
694 | 95 | 104 | ||
695 | 96 | static void | 105 | static void |
697 | 97 | @@ -1685,8 +1716,11 @@ | 106 | @@ -1769,8 +1801,11 @@ |
698 | 98 | nautilus_previewer_call_close (previewer); | 107 | nautilus_previewer_call_close (previewer); |
699 | 99 | } | 108 | } |
700 | 100 | 109 | ||
701 | @@ -110,31 +119,32 @@ | |||
702 | 110 | static void | 119 | static void |
703 | 111 | Index: nautilus/src/nautilus-freedesktop-dbus.c | 120 | Index: nautilus/src/nautilus-freedesktop-dbus.c |
704 | 112 | =================================================================== | 121 | =================================================================== |
709 | 113 | --- nautilus.orig/src/nautilus-freedesktop-dbus.c 2013-03-27 14:24:02.345633000 +0100 | 122 | --- nautilus.orig/src/nautilus-freedesktop-dbus.c 2013-06-10 21:00:24.913944953 +0200 |
710 | 114 | +++ nautilus/src/nautilus-freedesktop-dbus.c 2013-03-27 14:37:39.224743813 +0100 | 123 | +++ nautilus/src/nautilus-freedesktop-dbus.c 2013-06-10 21:01:11.485942497 +0200 |
711 | 115 | @@ -303,6 +303,14 @@ | 124 | @@ -229,6 +229,15 @@ |
712 | 116 | nautilus_freedesktop_file_manager1_set_open_locations (singleton->skeleton, locations); | 125 | nautilus_freedesktop_file_manager1_set_open_locations (fdb->skeleton, locations); |
713 | 117 | } | 126 | } |
714 | 118 | 127 | ||
715 | 119 | +void | 128 | +void |
717 | 120 | +nautilus_freedesktop_dbus_set_open_locations_xids (GVariant *locations) | 129 | +nautilus_freedesktop_dbus_set_open_locations_xids (NautilusFreedesktopDBus *fdb, |
718 | 130 | + GVariant *locations) | ||
719 | 121 | +{ | 131 | +{ |
721 | 122 | + g_return_if_fail (singleton); | 132 | + g_return_if_fail (NAUTILUS_IS_FREEDESKTOP_DBUS (fdb)); |
722 | 123 | + | 133 | + |
724 | 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); |
725 | 125 | +} | 135 | +} |
726 | 126 | + | 136 | + |
727 | 127 | /* Tries to own the org.freedesktop.FileManager1 service name */ | 137 | /* Tries to own the org.freedesktop.FileManager1 service name */ |
730 | 128 | void | 138 | NautilusFreedesktopDBus * |
731 | 129 | nautilus_freedesktop_dbus_start (NautilusApplication *app) | 139 | nautilus_freedesktop_dbus_new (void) |
732 | 130 | Index: nautilus/src/nautilus-freedesktop-dbus.h | 140 | Index: nautilus/src/nautilus-freedesktop-dbus.h |
733 | 131 | =================================================================== | 141 | =================================================================== |
741 | 132 | --- nautilus.orig/src/nautilus-freedesktop-dbus.h 2013-03-27 14:24:02.345633000 +0100 | 142 | --- nautilus.orig/src/nautilus-freedesktop-dbus.h 2013-06-10 21:00:24.913944953 +0200 |
742 | 133 | +++ nautilus/src/nautilus-freedesktop-dbus.h 2013-03-27 15:17:59.012454136 +0100 | 143 | +++ nautilus/src/nautilus-freedesktop-dbus.h 2013-06-10 21:00:24.909944954 +0200 |
743 | 134 | @@ -28,5 +28,6 @@ | 144 | @@ -48,5 +48,6 @@ |
744 | 135 | void nautilus_freedesktop_dbus_start (NautilusApplication *app); | 145 | NautilusFreedesktopDBus * nautilus_freedesktop_dbus_new (void); |
745 | 136 | void nautilus_freedesktop_dbus_stop (void); | 146 | |
746 | 137 | void nautilus_freedesktop_dbus_set_open_locations (const gchar **locations); | 147 | void nautilus_freedesktop_dbus_set_open_locations (NautilusFreedesktopDBus *fdb, const gchar **locations); |
747 | 138 | +void nautilus_freedesktop_dbus_set_open_locations_xids (GVariant *locations); | 148 | +void nautilus_freedesktop_dbus_set_open_locations_xids (NautilusFreedesktopDBus *fdb, GVariant *locations); |
748 | 139 | 149 | ||
749 | 140 | #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */ | 150 | #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */ |
750 | 141 | 151 | ||
751 | === removed file 'debian/patches/git_add_desktop_keywords.patch' | |||
752 | --- debian/patches/git_add_desktop_keywords.patch 2013-03-14 10:35:52 +0000 | |||
753 | +++ debian/patches/git_add_desktop_keywords.patch 1970-01-01 00:00:00 +0000 | |||
754 | @@ -1,12 +0,0 @@ | |||
755 | 1 | Index: nautilus/data/nautilus.desktop.in.in | ||
756 | 2 | =================================================================== | ||
757 | 3 | --- nautilus.orig/data/nautilus.desktop.in.in 2013-03-12 19:35:01.714349423 +0100 | ||
758 | 4 | +++ nautilus/data/nautilus.desktop.in.in 2013-03-12 19:37:25.077722944 +0100 | ||
759 | 5 | @@ -1,6 +1,7 @@ | ||
760 | 6 | [Desktop Entry] | ||
761 | 7 | _Name=Files | ||
762 | 8 | _Comment=Access and organize files | ||
763 | 9 | +_Keywords=folder;manager;explore;disk;filesystem; | ||
764 | 10 | Exec=nautilus --new-window %U | ||
765 | 11 | Icon=system-file-manager | ||
766 | 12 | Terminal=false | ||
767 | 13 | 0 | ||
768 | === removed file 'debian/patches/git_add_missing_tooltips.patch' | |||
769 | --- debian/patches/git_add_missing_tooltips.patch 2012-10-31 07:02:17 +0000 | |||
770 | +++ debian/patches/git_add_missing_tooltips.patch 1970-01-01 00:00:00 +0000 | |||
771 | @@ -1,88 +0,0 @@ | |||
772 | 1 | From f017a93b9ba3a465059ebca8eeb79138c983bd96 Mon Sep 17 00:00:00 2001 | ||
773 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
774 | 3 | Date: Fri, 26 Oct 2012 20:43:40 +0000 | ||
775 | 4 | Subject: toolbar: add missing tooltips for toolbar menubuttons | ||
776 | 5 | |||
777 | 6 | These require new strings, so it's a separate commit from the previous | ||
778 | 7 | one. | ||
779 | 8 | |||
780 | 9 | https://bugzilla.gnome.org/show_bug.cgi?id=686903 | ||
781 | 10 | --- | ||
782 | 11 | diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c | ||
783 | 12 | index 94be1c0..fbea52f 100644 | ||
784 | 13 | --- a/src/nautilus-toolbar.c | ||
785 | 14 | +++ b/src/nautilus-toolbar.c | ||
786 | 15 | @@ -34,6 +34,7 @@ | ||
787 | 16 | #include <libnautilus-private/nautilus-global-preferences.h> | ||
788 | 17 | #include <libnautilus-private/nautilus-ui-utilities.h> | ||
789 | 18 | |||
790 | 19 | +#include <glib/gi18n.h> | ||
791 | 20 | #include <math.h> | ||
792 | 21 | |||
793 | 22 | typedef enum { | ||
794 | 23 | @@ -100,7 +101,8 @@ static GtkWidget * | ||
795 | 24 | toolbar_create_toolbutton (NautilusToolbar *self, | ||
796 | 25 | gboolean create_menu, | ||
797 | 26 | gboolean create_toggle, | ||
798 | 27 | - const gchar *name) | ||
799 | 28 | + const gchar *name, | ||
800 | 29 | + const gchar *tooltip) | ||
801 | 30 | { | ||
802 | 31 | GtkWidget *button, *image; | ||
803 | 32 | GtkActionGroup *action_group; | ||
804 | 33 | @@ -124,6 +126,7 @@ toolbar_create_toolbutton (NautilusToolbar *self, | ||
805 | 34 | if (create_menu) { | ||
806 | 35 | gtk_image_set_from_icon_name (GTK_IMAGE (image), name, | ||
807 | 36 | GTK_ICON_SIZE_MENU); | ||
808 | 37 | + gtk_widget_set_tooltip_text (button, tooltip); | ||
809 | 38 | } else { | ||
810 | 39 | action = gtk_action_group_get_action (action_group, name); | ||
811 | 40 | gtk_activatable_set_related_action (GTK_ACTIVATABLE (button), action); | ||
812 | 41 | @@ -357,12 +360,12 @@ nautilus_toolbar_constructed (GObject *obj) | ||
813 | 42 | box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); | ||
814 | 43 | |||
815 | 44 | /* Back */ | ||
816 | 45 | - tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_BACK); | ||
817 | 46 | + tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_BACK, NULL); | ||
818 | 47 | navigation_button_setup_menu (self, tool_button, NAUTILUS_NAVIGATION_DIRECTION_BACK); | ||
819 | 48 | gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button)); | ||
820 | 49 | |||
821 | 50 | /* Forward */ | ||
822 | 51 | - tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_FORWARD); | ||
823 | 52 | + tool_button = toolbar_create_toolbutton (self, FALSE, FALSE, NAUTILUS_ACTION_FORWARD, NULL); | ||
824 | 53 | navigation_button_setup_menu (self, tool_button, NAUTILUS_NAVIGATION_DIRECTION_FORWARD); | ||
825 | 54 | gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button)); | ||
826 | 55 | |||
827 | 56 | @@ -396,7 +399,7 @@ nautilus_toolbar_constructed (GObject *obj) | ||
828 | 57 | |||
829 | 58 | /* search */ | ||
830 | 59 | tool_item = gtk_tool_item_new (); | ||
831 | 60 | - tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_SEARCH); | ||
832 | 61 | + tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_SEARCH, NULL); | ||
833 | 62 | gtk_container_add (GTK_CONTAINER (tool_item), GTK_WIDGET (tool_button)); | ||
834 | 63 | gtk_container_add (GTK_CONTAINER (self->priv->toolbar), GTK_WIDGET (tool_item)); | ||
835 | 64 | gtk_widget_show_all (GTK_WIDGET (tool_item)); | ||
836 | 65 | @@ -406,11 +409,11 @@ nautilus_toolbar_constructed (GObject *obj) | ||
837 | 66 | tool_item = gtk_tool_item_new (); | ||
838 | 67 | box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); | ||
839 | 68 | |||
840 | 69 | - tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_LIST); | ||
841 | 70 | + tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_LIST, NULL); | ||
842 | 71 | gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button)); | ||
843 | 72 | - tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_GRID); | ||
844 | 73 | + tool_button = toolbar_create_toolbutton (self, FALSE, TRUE, NAUTILUS_ACTION_VIEW_GRID, NULL); | ||
845 | 74 | gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button)); | ||
846 | 75 | - tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "go-down-symbolic"); | ||
847 | 76 | + tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "go-down-symbolic", _("View options")); | ||
848 | 77 | gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button)); | ||
849 | 78 | menu = gtk_ui_manager_get_widget (ui_manager, "/ViewMenu"); | ||
850 | 79 | gtk_menu_button_set_popup (GTK_MENU_BUTTON (tool_button), menu); | ||
851 | 80 | @@ -427,7 +430,7 @@ nautilus_toolbar_constructed (GObject *obj) | ||
852 | 81 | |||
853 | 82 | /* Action Menu */ | ||
854 | 83 | tool_item = gtk_tool_item_new (); | ||
855 | 84 | - tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "emblem-system-symbolic"); | ||
856 | 85 | + tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "emblem-system-symbolic", _("Location options")); | ||
857 | 86 | menu = gtk_ui_manager_get_widget (ui_manager, "/ActionMenu"); | ||
858 | 87 | gtk_widget_set_halign (menu, GTK_ALIGN_END); | ||
859 | 88 | gtk_menu_button_set_popup (GTK_MENU_BUTTON (tool_button), menu); | ||
860 | 89 | 0 | ||
861 | === removed file 'debian/patches/git_eel_needs_terminal.patch' | |||
862 | --- debian/patches/git_eel_needs_terminal.patch 2013-05-28 10:48:02 +0000 | |||
863 | +++ debian/patches/git_eel_needs_terminal.patch 1970-01-01 00:00:00 +0000 | |||
864 | @@ -1,175 +0,0 @@ | |||
865 | 1 | From 447d2ad6944afd94434a774b28f8c6e8274955fe Mon Sep 17 00:00:00 2001 | ||
866 | 2 | From: William Jon McCann <jmccann@redhat.com> | ||
867 | 3 | Date: Fri, 15 Feb 2013 18:30:39 +0000 | ||
868 | 4 | Subject: eel: use G_APP_INFO_CREATE_NEEDS_TERMINAL to run command in terminal | ||
869 | 5 | |||
870 | 6 | --- | ||
871 | 7 | diff --git a/eel/eel-gnome-extensions.c b/eel/eel-gnome-extensions.c | ||
872 | 8 | index eaddfe5..e7b8ecb 100644 | ||
873 | 9 | --- a/eel/eel-gnome-extensions.c | ||
874 | 10 | +++ b/eel/eel-gnome-extensions.c | ||
875 | 11 | @@ -31,153 +31,19 @@ | ||
876 | 12 | #include "eel-gnome-extensions.h" | ||
877 | 13 | |||
878 | 14 | #include <gtk/gtk.h> | ||
879 | 15 | -#include <libgnome-desktop/gnome-desktop-utils.h> | ||
880 | 16 | |||
881 | 17 | /* Return a command string containing the path to a terminal on this system. */ | ||
882 | 18 | |||
883 | 19 | -static char * | ||
884 | 20 | -try_terminal_command (const char *program, | ||
885 | 21 | - const char *args) | ||
886 | 22 | -{ | ||
887 | 23 | - char *program_in_path, *quoted, *result; | ||
888 | 24 | - | ||
889 | 25 | - if (program == NULL) { | ||
890 | 26 | - return NULL; | ||
891 | 27 | - } | ||
892 | 28 | - | ||
893 | 29 | - program_in_path = g_find_program_in_path (program); | ||
894 | 30 | - if (program_in_path == NULL) { | ||
895 | 31 | - return NULL; | ||
896 | 32 | - } | ||
897 | 33 | - | ||
898 | 34 | - quoted = g_shell_quote (program_in_path); | ||
899 | 35 | - g_free (program_in_path); | ||
900 | 36 | - if (args == NULL || args[0] == '\0') { | ||
901 | 37 | - return quoted; | ||
902 | 38 | - } | ||
903 | 39 | - result = g_strconcat (quoted, " ", args, NULL); | ||
904 | 40 | - g_free (quoted); | ||
905 | 41 | - return result; | ||
906 | 42 | -} | ||
907 | 43 | - | ||
908 | 44 | -static char * | ||
909 | 45 | -try_terminal_command_argv (int argc, | ||
910 | 46 | - char **argv) | ||
911 | 47 | -{ | ||
912 | 48 | - GString *string; | ||
913 | 49 | - int i; | ||
914 | 50 | - char *quoted, *result; | ||
915 | 51 | - | ||
916 | 52 | - if (argc == 0) { | ||
917 | 53 | - return NULL; | ||
918 | 54 | - } | ||
919 | 55 | - | ||
920 | 56 | - if (argc == 1) { | ||
921 | 57 | - return try_terminal_command (argv[0], NULL); | ||
922 | 58 | - } | ||
923 | 59 | - | ||
924 | 60 | - string = g_string_new (argv[1]); | ||
925 | 61 | - for (i = 2; i < argc; i++) { | ||
926 | 62 | - quoted = g_shell_quote (argv[i]); | ||
927 | 63 | - g_string_append_c (string, ' '); | ||
928 | 64 | - g_string_append (string, quoted); | ||
929 | 65 | - g_free (quoted); | ||
930 | 66 | - } | ||
931 | 67 | - result = try_terminal_command (argv[0], string->str); | ||
932 | 68 | - g_string_free (string, TRUE); | ||
933 | 69 | - | ||
934 | 70 | - return result; | ||
935 | 71 | -} | ||
936 | 72 | - | ||
937 | 73 | -static char * | ||
938 | 74 | -get_terminal_command_prefix (gboolean for_command) | ||
939 | 75 | -{ | ||
940 | 76 | - int argc; | ||
941 | 77 | - char **argv; | ||
942 | 78 | - char *command; | ||
943 | 79 | - guint i; | ||
944 | 80 | - static const char *const commands[][3] = { | ||
945 | 81 | - { "gnome-terminal", "-x", "" }, | ||
946 | 82 | - { "dtterm", "-e", "-ls" }, | ||
947 | 83 | - { "nxterm", "-e", "-ls" }, | ||
948 | 84 | - { "color-xterm", "-e", "-ls" }, | ||
949 | 85 | - { "rxvt", "-e", "-ls" }, | ||
950 | 86 | - { "xterm", "-e", "-ls" }, | ||
951 | 87 | - }; | ||
952 | 88 | - | ||
953 | 89 | - /* Try the terminal from preferences. Use without any | ||
954 | 90 | - * arguments if we are just doing a standalone terminal. | ||
955 | 91 | - */ | ||
956 | 92 | - argc = 0; | ||
957 | 93 | - argv = g_new0 (char *, 1); | ||
958 | 94 | - gnome_desktop_prepend_terminal_to_vector (&argc, &argv); | ||
959 | 95 | - | ||
960 | 96 | - command = NULL; | ||
961 | 97 | - if (argc != 0) { | ||
962 | 98 | - if (for_command) { | ||
963 | 99 | - command = try_terminal_command_argv (argc, argv); | ||
964 | 100 | - } else { | ||
965 | 101 | - /* Strip off the arguments in a lame attempt | ||
966 | 102 | - * to make it be an interactive shell. | ||
967 | 103 | - */ | ||
968 | 104 | - command = try_terminal_command (argv[0], NULL); | ||
969 | 105 | - } | ||
970 | 106 | - } | ||
971 | 107 | - | ||
972 | 108 | - while (argc != 0) { | ||
973 | 109 | - g_free (argv[--argc]); | ||
974 | 110 | - } | ||
975 | 111 | - g_free (argv); | ||
976 | 112 | - | ||
977 | 113 | - if (command != NULL) { | ||
978 | 114 | - return command; | ||
979 | 115 | - } | ||
980 | 116 | - | ||
981 | 117 | - /* Try well-known terminal applications in same order that gmc did. */ | ||
982 | 118 | - for (i = 0; i < G_N_ELEMENTS (commands); i++) { | ||
983 | 119 | - command = try_terminal_command (commands[i][0], | ||
984 | 120 | - commands[i][for_command ? 1 : 2]); | ||
985 | 121 | - if (command != NULL) { | ||
986 | 122 | - break; | ||
987 | 123 | - } | ||
988 | 124 | - } | ||
989 | 125 | - | ||
990 | 126 | - return command; | ||
991 | 127 | -} | ||
992 | 128 | - | ||
993 | 129 | -static char * | ||
994 | 130 | -eel_gnome_make_terminal_command (const char *command) | ||
995 | 131 | -{ | ||
996 | 132 | - char *prefix, *quoted, *terminal_command; | ||
997 | 133 | - | ||
998 | 134 | - if (command == NULL) { | ||
999 | 135 | - return get_terminal_command_prefix (FALSE); | ||
1000 | 136 | - } | ||
1001 | 137 | - prefix = get_terminal_command_prefix (TRUE); | ||
1002 | 138 | - quoted = g_shell_quote (command); | ||
1003 | 139 | - terminal_command = g_strconcat (prefix, " /bin/sh -c ", quoted, NULL); | ||
1004 | 140 | - g_free (prefix); | ||
1005 | 141 | - g_free (quoted); | ||
1006 | 142 | - return terminal_command; | ||
1007 | 143 | -} | ||
1008 | 144 | - | ||
1009 | 145 | void | ||
1010 | 146 | eel_gnome_open_terminal_on_screen (const char *command, | ||
1011 | 147 | GdkScreen *screen) | ||
1012 | 148 | { | ||
1013 | 149 | - char *command_line; | ||
1014 | 150 | GAppInfo *app; | ||
1015 | 151 | GdkAppLaunchContext *ctx; | ||
1016 | 152 | GError *error = NULL; | ||
1017 | 153 | GdkDisplay *display; | ||
1018 | 154 | |||
1019 | 155 | - command_line = eel_gnome_make_terminal_command (command); | ||
1020 | 156 | - if (command_line == NULL) { | ||
1021 | 157 | - g_message ("Could not start a terminal"); | ||
1022 | 158 | - return; | ||
1023 | 159 | - } | ||
1024 | 160 | - | ||
1025 | 161 | - app = g_app_info_create_from_commandline (command_line, NULL, 0, &error); | ||
1026 | 162 | + app = g_app_info_create_from_commandline (command, NULL, G_APP_INFO_CREATE_NEEDS_TERMINAL, &error); | ||
1027 | 163 | |||
1028 | 164 | if (app != NULL && screen != NULL) { | ||
1029 | 165 | display = gdk_screen_get_display (screen); | ||
1030 | 166 | @@ -195,6 +61,4 @@ eel_gnome_open_terminal_on_screen (const char *command, | ||
1031 | 167 | |||
1032 | 168 | g_error_free (error); | ||
1033 | 169 | } | ||
1034 | 170 | - | ||
1035 | 171 | - g_free (command_line); | ||
1036 | 172 | } | ||
1037 | 173 | -- | ||
1038 | 174 | cgit v0.9.1 | ||
1039 | 175 | |||
1040 | 176 | 0 | ||
1041 | === removed file 'debian/patches/git_enable_copy_from_recent.patch' | |||
1042 | --- debian/patches/git_enable_copy_from_recent.patch 2013-04-04 23:22:13 +0000 | |||
1043 | +++ debian/patches/git_enable_copy_from_recent.patch 1970-01-01 00:00:00 +0000 | |||
1044 | @@ -1,58 +0,0 @@ | |||
1045 | 1 | From b61e1d03b42723e13cf7dd05a26c9bd92dbac0ce Mon Sep 17 00:00:00 2001 | ||
1046 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1047 | 3 | Date: Wed, 03 Apr 2013 22:08:09 +0000 | ||
1048 | 4 | Subject: view: allow copying, and not cutting, from Recent Files | ||
1049 | 5 | |||
1050 | 6 | Previously, we enabled the Cut action for the Recent location, and kept | ||
1051 | 7 | Copy and Copy To disabled. This should be the other way around, as | ||
1052 | 8 | copying a file from there is a valid option, whereas cutting/moving it | ||
1053 | 9 | doesn't make sense, being a virtual location. | ||
1054 | 10 | |||
1055 | 11 | https://bugzilla.gnome.org/show_bug.cgi?id=690138 | ||
1056 | 12 | --- | ||
1057 | 13 | diff --git a/src/nautilus-view.c b/src/nautilus-view.c | ||
1058 | 14 | index 6b1bed2..357da27 100644 | ||
1059 | 15 | --- a/src/nautilus-view.c | ||
1060 | 16 | +++ b/src/nautilus-view.c | ||
1061 | 17 | @@ -8386,6 +8386,7 @@ real_update_menus (NautilusView *view) | ||
1062 | 18 | gboolean selection_contains_recent; | ||
1063 | 19 | gboolean can_create_files; | ||
1064 | 20 | gboolean can_delete_files; | ||
1065 | 21 | + gboolean can_move_files; | ||
1066 | 22 | gboolean can_trash_files; | ||
1067 | 23 | gboolean can_copy_files; | ||
1068 | 24 | gboolean can_link_files; | ||
1069 | 25 | @@ -8422,9 +8423,9 @@ real_update_menus (NautilusView *view) | ||
1070 | 26 | !selection_contains_special_link && | ||
1071 | 27 | !selection_contains_desktop_or_home_dir; | ||
1072 | 28 | can_copy_files = selection_count != 0 | ||
1073 | 29 | - && !selection_contains_recent | ||
1074 | 30 | && !selection_contains_special_link; | ||
1075 | 31 | |||
1076 | 32 | + can_move_files = can_delete_files && !selection_contains_recent; | ||
1077 | 33 | can_link_files = can_create_files && can_copy_files; | ||
1078 | 34 | |||
1079 | 35 | action = gtk_action_group_get_action (view->details->dir_action_group, | ||
1080 | 36 | @@ -8717,7 +8718,7 @@ real_update_menus (NautilusView *view) | ||
1081 | 37 | |||
1082 | 38 | action = gtk_action_group_get_action (view->details->dir_action_group, | ||
1083 | 39 | NAUTILUS_ACTION_CUT); | ||
1084 | 40 | - gtk_action_set_sensitive (action, can_delete_files); | ||
1085 | 41 | + gtk_action_set_sensitive (action, can_move_files); | ||
1086 | 42 | gtk_action_set_visible (action, !selection_contains_recent); | ||
1087 | 43 | |||
1088 | 44 | action = gtk_action_group_get_action (view->details->dir_action_group, | ||
1089 | 45 | @@ -8749,10 +8750,10 @@ real_update_menus (NautilusView *view) | ||
1090 | 46 | action = gtk_action_group_get_action (view->details->dir_action_group, | ||
1091 | 47 | NAUTILUS_ACTION_COPY_TO); | ||
1092 | 48 | gtk_action_set_sensitive (action, can_copy_files); | ||
1093 | 49 | - gtk_action_set_visible (action, !selection_contains_recent); | ||
1094 | 50 | + | ||
1095 | 51 | action = gtk_action_group_get_action (view->details->dir_action_group, | ||
1096 | 52 | NAUTILUS_ACTION_MOVE_TO); | ||
1097 | 53 | - gtk_action_set_sensitive (action, can_delete_files); | ||
1098 | 54 | + gtk_action_set_sensitive (action, can_move_files); | ||
1099 | 55 | gtk_action_set_visible (action, !selection_contains_recent); | ||
1100 | 56 | |||
1101 | 57 | action = gtk_action_group_get_action (view->details->dir_action_group, NAUTILUS_ACTION_SHOW_HIDDEN_FILES); | ||
1102 | 58 | |||
1103 | 59 | 0 | ||
1104 | === removed file 'debian/patches/git_enable_simple_search_engine.patch' | |||
1105 | --- debian/patches/git_enable_simple_search_engine.patch 2013-03-22 17:44:56 +0000 | |||
1106 | +++ debian/patches/git_enable_simple_search_engine.patch 1970-01-01 00:00:00 +0000 | |||
1107 | @@ -1,31 +0,0 @@ | |||
1108 | 1 | From f65d3e15916a12fe2fe35b63e862b9f9d20920bf Mon Sep 17 00:00:00 2001 | ||
1109 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1110 | 3 | Date: Mon, 22 Oct 2012 22:59:38 +0000 | ||
1111 | 4 | Subject: search-directory: always start the simple engine | ||
1112 | 5 | |||
1113 | 6 | This is needed to load results incrementally, which will be done in a | ||
1114 | 7 | separate commit. | ||
1115 | 8 | |||
1116 | 9 | https://bugzilla.gnome.org/show_bug.cgi?id=325146 | ||
1117 | 10 | --- | ||
1118 | 11 | diff --git a/libnautilus-private/nautilus-search-engine.c b/libnautilus-private/nautilus-search-engine.c | ||
1119 | 12 | index fbeabe0..c92b745 100644 | ||
1120 | 13 | --- a/libnautilus-private/nautilus-search-engine.c | ||
1121 | 14 | +++ b/libnautilus-private/nautilus-search-engine.c | ||
1122 | 15 | @@ -92,10 +92,10 @@ search_engine_start_real (NautilusSearchEngine *engine) | ||
1123 | 16 | if (nautilus_search_engine_model_get_model (engine->details->model)) { | ||
1124 | 17 | nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine->details->model)); | ||
1125 | 18 | engine->details->providers_running++; | ||
1126 | 19 | - } else { | ||
1127 | 20 | - nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine->details->simple)); | ||
1128 | 21 | - engine->details->providers_running++; | ||
1129 | 22 | } | ||
1130 | 23 | + | ||
1131 | 24 | + nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (engine->details->simple)); | ||
1132 | 25 | + engine->details->providers_running++; | ||
1133 | 26 | } | ||
1134 | 27 | |||
1135 | 28 | static void | ||
1136 | 29 | -- | ||
1137 | 30 | cgit v0.9.1 | ||
1138 | 31 | |||
1139 | 32 | 0 | ||
1140 | === removed file 'debian/patches/git_export_opened_locations_on_dbus.patch' | |||
1141 | --- debian/patches/git_export_opened_locations_on_dbus.patch 2013-03-14 10:35:52 +0000 | |||
1142 | +++ debian/patches/git_export_opened_locations_on_dbus.patch 1970-01-01 00:00:00 +0000 | |||
1143 | @@ -1,261 +0,0 @@ | |||
1144 | 1 | Description: Add a new dbus property to the nautilus' | ||
1145 | 2 | "org.freedesktop.FileManager1" dbus interface where it stores a list of | ||
1146 | 3 | currently opened locations. | ||
1147 | 4 | |||
1148 | 5 | Origin: upstream, https://git.gnome.org/browse/nautilus/commit/?id=e6fecc0500b83 | ||
1149 | 6 | https://git.gnome.org/browse/nautilus/commit/?id=980512c | ||
1150 | 7 | https://git.gnome.org/browse/nautilus/commit/?id=49115b85 | ||
1151 | 8 | https://git.gnome.org/browse/nautilus/commit/?id=b8eebe95 | ||
1152 | 9 | Bug: https://bugzilla.gnome.org/show_bug.cgi?id=694266 | ||
1153 | 10 | Bug-Ubuntu: https://bugs.launchpad.net/nautilus/+bug/1063830 | ||
1154 | 11 | Forwarded: yes | ||
1155 | 12 | Applied-Upstream: 3.7.91 | ||
1156 | 13 | Author: Marco Trevisan <marco@ubuntu.com> | ||
1157 | 14 | |||
1158 | 15 | Index: nautilus/src/nautilus-application.c | ||
1159 | 16 | =================================================================== | ||
1160 | 17 | --- nautilus.orig/src/nautilus-application.c 2013-03-13 01:08:30.906653182 +0100 | ||
1161 | 18 | +++ nautilus/src/nautilus-application.c 2013-03-13 01:27:30.152464886 +0100 | ||
1162 | 19 | @@ -524,7 +524,7 @@ | ||
1163 | 20 | g_return_val_if_fail (NAUTILUS_IS_APPLICATION (application), NULL); | ||
1164 | 21 | nautilus_profile_start (NULL); | ||
1165 | 22 | |||
1166 | 23 | - window = nautilus_window_new (GTK_APPLICATION (application), screen); | ||
1167 | 24 | + window = nautilus_window_new (screen); | ||
1168 | 25 | |||
1169 | 26 | maximized = g_settings_get_boolean | ||
1170 | 27 | (nautilus_window_state, NAUTILUS_WINDOW_STATE_MAXIMIZED); | ||
1171 | 28 | @@ -1579,6 +1579,98 @@ | ||
1172 | 29 | } | ||
1173 | 30 | |||
1174 | 31 | static void | ||
1175 | 32 | +update_dbus_opened_locations (NautilusApplication *app) | ||
1176 | 33 | +{ | ||
1177 | 34 | + gint i; | ||
1178 | 35 | + GList *l, *sl; | ||
1179 | 36 | + GList *locations = NULL; | ||
1180 | 37 | + gsize locations_size = 0; | ||
1181 | 38 | + gchar **locations_array; | ||
1182 | 39 | + | ||
1183 | 40 | + g_return_if_fail (NAUTILUS_IS_APPLICATION (app)); | ||
1184 | 41 | + | ||
1185 | 42 | + for (l = gtk_application_get_windows (GTK_APPLICATION (app)); l; l = l->next) { | ||
1186 | 43 | + NautilusWindow *win = NAUTILUS_WINDOW (l->data); | ||
1187 | 44 | + | ||
1188 | 45 | + if (NAUTILUS_IS_DESKTOP_WINDOW (win)) { | ||
1189 | 46 | + continue; | ||
1190 | 47 | + } | ||
1191 | 48 | + | ||
1192 | 49 | + for (sl = nautilus_window_get_slots (win); sl; sl = sl->next) { | ||
1193 | 50 | + NautilusWindowSlot *slot = NAUTILUS_WINDOW_SLOT (sl->data); | ||
1194 | 51 | + gchar *uri = nautilus_window_slot_get_location_uri (slot); | ||
1195 | 52 | + | ||
1196 | 53 | + if (uri) { | ||
1197 | 54 | + GList *found = g_list_find_custom (locations, uri, (GCompareFunc) g_strcmp0); | ||
1198 | 55 | + | ||
1199 | 56 | + if (!found) { | ||
1200 | 57 | + locations = g_list_prepend (locations, uri); | ||
1201 | 58 | + ++locations_size; | ||
1202 | 59 | + } else { | ||
1203 | 60 | + g_free (uri); | ||
1204 | 61 | + } | ||
1205 | 62 | + } | ||
1206 | 63 | + } | ||
1207 | 64 | + } | ||
1208 | 65 | + | ||
1209 | 66 | + locations_array = g_new (gchar*, locations_size + 1); | ||
1210 | 67 | + | ||
1211 | 68 | + for (i = 0, l = locations; l; l = l->next, ++i) { | ||
1212 | 69 | + /* We reuse the locations string locations saved on list */ | ||
1213 | 70 | + locations_array[i] = l->data; | ||
1214 | 71 | + } | ||
1215 | 72 | + | ||
1216 | 73 | + locations_array[locations_size] = NULL; | ||
1217 | 74 | + | ||
1218 | 75 | + nautilus_freedesktop_dbus_set_open_locations ((const gchar**) locations_array); | ||
1219 | 76 | + | ||
1220 | 77 | + g_free (locations_array); | ||
1221 | 78 | + g_list_free_full (locations, g_free); | ||
1222 | 79 | +} | ||
1223 | 80 | + | ||
1224 | 81 | +static void | ||
1225 | 82 | +on_slot_location_changed (NautilusWindowSlot *slot, | ||
1226 | 83 | + const char *from, | ||
1227 | 84 | + const char *to, | ||
1228 | 85 | + NautilusApplication *application) | ||
1229 | 86 | +{ | ||
1230 | 87 | + update_dbus_opened_locations (application); | ||
1231 | 88 | +} | ||
1232 | 89 | + | ||
1233 | 90 | +static void | ||
1234 | 91 | +on_slot_added (NautilusWindow *window, | ||
1235 | 92 | + NautilusWindowSlot *slot, | ||
1236 | 93 | + NautilusApplication *application) | ||
1237 | 94 | +{ | ||
1238 | 95 | + if (nautilus_window_slot_get_location (slot)) { | ||
1239 | 96 | + update_dbus_opened_locations (application); | ||
1240 | 97 | + } | ||
1241 | 98 | + | ||
1242 | 99 | + g_signal_connect (slot, "location-changed", G_CALLBACK (on_slot_location_changed), application); | ||
1243 | 100 | +} | ||
1244 | 101 | + | ||
1245 | 102 | +static void | ||
1246 | 103 | +on_slot_removed (NautilusWindow *window, | ||
1247 | 104 | + NautilusWindowSlot *slot, | ||
1248 | 105 | + NautilusApplication *application) | ||
1249 | 106 | +{ | ||
1250 | 107 | + update_dbus_opened_locations (application); | ||
1251 | 108 | + | ||
1252 | 109 | + g_signal_handlers_disconnect_by_func (slot, on_slot_location_changed, application); | ||
1253 | 110 | +} | ||
1254 | 111 | + | ||
1255 | 112 | +static void | ||
1256 | 113 | +nautilus_application_window_added (GtkApplication *app, | ||
1257 | 114 | + GtkWindow *window) | ||
1258 | 115 | +{ | ||
1259 | 116 | + /* chain to parent */ | ||
1260 | 117 | + GTK_APPLICATION_CLASS (nautilus_application_parent_class)->window_added (app, window); | ||
1261 | 118 | + | ||
1262 | 119 | + g_signal_connect (window, "slot-added", G_CALLBACK (on_slot_added), app); | ||
1263 | 120 | + g_signal_connect (window, "slot-removed", G_CALLBACK (on_slot_removed), app); | ||
1264 | 121 | +} | ||
1265 | 122 | + | ||
1266 | 123 | +static void | ||
1267 | 124 | nautilus_application_window_removed (GtkApplication *app, | ||
1268 | 125 | GtkWindow *window) | ||
1269 | 126 | { | ||
1270 | 127 | @@ -1592,6 +1684,9 @@ | ||
1271 | 128 | previewer = nautilus_previewer_get_singleton (); | ||
1272 | 129 | nautilus_previewer_call_close (previewer); | ||
1273 | 130 | } | ||
1274 | 131 | + | ||
1275 | 132 | + g_signal_handlers_disconnect_by_func (window, on_slot_added, app); | ||
1276 | 133 | + g_signal_handlers_disconnect_by_func (window, on_slot_removed, app); | ||
1277 | 134 | } | ||
1278 | 135 | |||
1279 | 136 | static void | ||
1280 | 137 | @@ -1611,6 +1706,7 @@ | ||
1281 | 138 | application_class->local_command_line = nautilus_application_local_command_line; | ||
1282 | 139 | |||
1283 | 140 | gtkapp_class = GTK_APPLICATION_CLASS (class); | ||
1284 | 141 | + gtkapp_class->window_added = nautilus_application_window_added; | ||
1285 | 142 | gtkapp_class->window_removed = nautilus_application_window_removed; | ||
1286 | 143 | |||
1287 | 144 | g_type_class_add_private (class, sizeof (NautilusApplicationPriv)); | ||
1288 | 145 | Index: nautilus/src/nautilus-window.c | ||
1289 | 146 | =================================================================== | ||
1290 | 147 | --- nautilus.orig/src/nautilus-window.c 2013-03-13 01:08:43.558919000 +0100 | ||
1291 | 148 | +++ nautilus/src/nautilus-window.c 2013-03-13 01:29:17.256160975 +0100 | ||
1292 | 149 | @@ -1119,6 +1119,7 @@ | ||
1293 | 150 | static void | ||
1294 | 151 | nautilus_window_constructed (GObject *self) | ||
1295 | 152 | { | ||
1296 | 153 | + NautilusApplication *application; | ||
1297 | 154 | NautilusWindow *window; | ||
1298 | 155 | GtkWidget *grid; | ||
1299 | 156 | NautilusWindowSlot *slot; | ||
1300 | 157 | @@ -1129,6 +1130,9 @@ | ||
1301 | 158 | |||
1302 | 159 | G_OBJECT_CLASS (nautilus_window_parent_class)->constructed (self); | ||
1303 | 160 | |||
1304 | 161 | + application = NAUTILUS_APPLICATION (g_application_get_default ()); | ||
1305 | 162 | + gtk_window_set_application (GTK_WINDOW (window), GTK_APPLICATION (application)); | ||
1306 | 163 | + | ||
1307 | 164 | /* disable automatic menubar handling, since we show our regular | ||
1308 | 165 | * menubar together with the app menu. | ||
1309 | 166 | */ | ||
1310 | 167 | @@ -2028,11 +2032,9 @@ | ||
1311 | 168 | } | ||
1312 | 169 | |||
1313 | 170 | NautilusWindow * | ||
1314 | 171 | -nautilus_window_new (GtkApplication *application, | ||
1315 | 172 | - GdkScreen *screen) | ||
1316 | 173 | +nautilus_window_new (GdkScreen *screen) | ||
1317 | 174 | { | ||
1318 | 175 | return g_object_new (NAUTILUS_TYPE_WINDOW, | ||
1319 | 176 | - "application", application, | ||
1320 | 177 | "screen", screen, | ||
1321 | 178 | NULL); | ||
1322 | 179 | } | ||
1323 | 180 | Index: nautilus/data/freedesktop-dbus-interfaces.xml | ||
1324 | 181 | =================================================================== | ||
1325 | 182 | --- nautilus.orig/data/freedesktop-dbus-interfaces.xml 2013-03-12 13:22:34.506542000 +0100 | ||
1326 | 183 | +++ nautilus/data/freedesktop-dbus-interfaces.xml 2013-03-13 01:14:24.283872283 +0100 | ||
1327 | 184 | @@ -32,5 +32,6 @@ | ||
1328 | 185 | <arg type='as' name='URIs' direction='in'/> | ||
1329 | 186 | <arg type='s' name='StartupId' direction='in'/> | ||
1330 | 187 | </method> | ||
1331 | 188 | + <property name="OpenLocations" type="as" access="read"/> | ||
1332 | 189 | </interface> | ||
1333 | 190 | </node> | ||
1334 | 191 | Index: nautilus/src/nautilus-freedesktop-dbus.c | ||
1335 | 192 | =================================================================== | ||
1336 | 193 | --- nautilus.orig/src/nautilus-freedesktop-dbus.c 2013-03-12 13:22:34.506542000 +0100 | ||
1337 | 194 | +++ nautilus/src/nautilus-freedesktop-dbus.c 2013-03-13 01:27:53.096401970 +0100 | ||
1338 | 195 | @@ -295,6 +295,14 @@ | ||
1339 | 196 | /* nothing */ | ||
1340 | 197 | } | ||
1341 | 198 | |||
1342 | 199 | +void | ||
1343 | 200 | +nautilus_freedesktop_dbus_set_open_locations (const gchar **locations) | ||
1344 | 201 | +{ | ||
1345 | 202 | + g_return_if_fail (singleton); | ||
1346 | 203 | + | ||
1347 | 204 | + nautilus_freedesktop_file_manager1_set_open_locations (singleton->skeleton, locations); | ||
1348 | 205 | +} | ||
1349 | 206 | + | ||
1350 | 207 | /* Tries to own the org.freedesktop.FileManager1 service name */ | ||
1351 | 208 | void | ||
1352 | 209 | nautilus_freedesktop_dbus_start (NautilusApplication *app) | ||
1353 | 210 | Index: nautilus/src/nautilus-freedesktop-dbus.h | ||
1354 | 211 | =================================================================== | ||
1355 | 212 | --- nautilus.orig/src/nautilus-freedesktop-dbus.h 2013-03-12 13:22:34.506542000 +0100 | ||
1356 | 213 | +++ nautilus/src/nautilus-freedesktop-dbus.h 2013-03-13 01:17:19.716808253 +0100 | ||
1357 | 214 | @@ -27,5 +27,6 @@ | ||
1358 | 215 | |||
1359 | 216 | void nautilus_freedesktop_dbus_start (NautilusApplication *app); | ||
1360 | 217 | void nautilus_freedesktop_dbus_stop (void); | ||
1361 | 218 | +void nautilus_freedesktop_dbus_set_open_locations (const gchar **locations); | ||
1362 | 219 | |||
1363 | 220 | #endif /* __NAUTILUS_FREEDESKTOP_DBUS_H__ */ | ||
1364 | 221 | Index: nautilus/src/nautilus-window-manage-views.c | ||
1365 | 222 | =================================================================== | ||
1366 | 223 | --- nautilus.orig/src/nautilus-window-manage-views.c 2013-03-12 19:34:31.062512185 +0100 | ||
1367 | 224 | +++ nautilus/src/nautilus-window-manage-views.c 2013-03-13 01:24:32.876892020 +0100 | ||
1368 | 225 | @@ -1405,6 +1405,7 @@ | ||
1369 | 226 | update_for_new_location (NautilusWindowSlot *slot) | ||
1370 | 227 | { | ||
1371 | 228 | NautilusWindow *window; | ||
1372 | 229 | + GFile *old_location; | ||
1373 | 230 | GFile *new_location; | ||
1374 | 231 | NautilusFile *file; | ||
1375 | 232 | NautilusDirectory *directory; | ||
1376 | 233 | @@ -1424,11 +1425,11 @@ | ||
1377 | 234 | slot->location == NULL || | ||
1378 | 235 | !g_file_equal (slot->location, new_location); | ||
1379 | 236 | |||
1380 | 237 | - nautilus_window_slot_emit_location_change (slot, slot->location, new_location); | ||
1381 | 238 | - | ||
1382 | 239 | /* Set the new location. */ | ||
1383 | 240 | - g_clear_object (&slot->location); | ||
1384 | 241 | + old_location = slot->location; | ||
1385 | 242 | slot->location = new_location; | ||
1386 | 243 | + nautilus_window_slot_emit_location_change (slot, old_location, new_location); | ||
1387 | 244 | + g_clear_object (&old_location); | ||
1388 | 245 | |||
1389 | 246 | /* Create a NautilusFile for this location, so we can catch it | ||
1390 | 247 | * if it goes away. | ||
1391 | 248 | Index: nautilus/src/nautilus-window.h | ||
1392 | 249 | =================================================================== | ||
1393 | 250 | --- nautilus.orig/src/nautilus-window.h 2013-03-13 01:08:30.934652783 +0100 | ||
1394 | 251 | +++ nautilus/src/nautilus-window.h 2013-03-13 01:08:55.798311025 +0100 | ||
1395 | 252 | @@ -93,8 +93,7 @@ | ||
1396 | 253 | }; | ||
1397 | 254 | |||
1398 | 255 | GType nautilus_window_get_type (void); | ||
1399 | 256 | -NautilusWindow * nautilus_window_new (GtkApplication *application, | ||
1400 | 257 | - GdkScreen *screen); | ||
1401 | 258 | +NautilusWindow * nautilus_window_new (GdkScreen *screen); | ||
1402 | 259 | void nautilus_window_close (NautilusWindow *window); | ||
1403 | 260 | |||
1404 | 261 | void nautilus_window_connect_content_view (NautilusWindow *window, | ||
1405 | 262 | 0 | ||
1406 | === removed file 'debian/patches/git_fix_touch_double_click.patch' | |||
1407 | --- debian/patches/git_fix_touch_double_click.patch 2013-03-06 17:49:53 +0000 | |||
1408 | +++ debian/patches/git_fix_touch_double_click.patch 1970-01-01 00:00:00 +0000 | |||
1409 | @@ -1,29 +0,0 @@ | |||
1410 | 1 | Subject: [PATCH] eel-canvas: fix double tap with touchscreen devices | ||
1411 | 2 | |||
1412 | 3 | Code here is not doing what the comment (and the symmetric part in | ||
1413 | 4 | the RELEASE case) says. | ||
1414 | 5 | |||
1415 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=688281 | ||
1416 | 7 | --- | ||
1417 | 8 | eel/eel-canvas.c | 4 +++- | ||
1418 | 9 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
1419 | 10 | |||
1420 | 11 | diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c | ||
1421 | 12 | index 4fdef13..7ebd6cc 100644 | ||
1422 | 13 | --- a/eel/eel-canvas.c | ||
1423 | 14 | +++ b/eel/eel-canvas.c | ||
1424 | 15 | @@ -2668,9 +2668,11 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event) | ||
1425 | 16 | /* Pick the current item as if the button were not pressed, and | ||
1426 | 17 | * then process the event. | ||
1427 | 18 | */ | ||
1428 | 19 | + event->state ^= mask; | ||
1429 | 20 | canvas->state = event->state; | ||
1430 | 21 | pick_current_item (canvas, (GdkEvent *) event); | ||
1431 | 22 | - canvas->state ^= mask; | ||
1432 | 23 | + event->state ^= mask; | ||
1433 | 24 | + canvas->state = event->state; | ||
1434 | 25 | retval = emit_event (canvas, (GdkEvent *) event); | ||
1435 | 26 | break; | ||
1436 | 27 | |||
1437 | 28 | -- | ||
1438 | 29 | 1.8.1.2 | ||
1439 | 30 | 0 | ||
1440 | === removed file 'debian/patches/git_launcher_no_frame.patch' | |||
1441 | --- debian/patches/git_launcher_no_frame.patch 2012-12-03 14:38:18 +0000 | |||
1442 | +++ debian/patches/git_launcher_no_frame.patch 1970-01-01 00:00:00 +0000 | |||
1443 | @@ -1,103 +0,0 @@ | |||
1444 | 1 | From 6cde4c5a6d639c85df09b8992a307f91d6b056a6 Mon Sep 17 00:00:00 2001 | ||
1445 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1446 | 3 | Date: Tue, 13 Nov 2012 13:16:17 +0000 | ||
1447 | 4 | Subject: file: don't add a thumbnail border around desktop file launchers | ||
1448 | 5 | |||
1449 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=688237 | ||
1450 | 7 | --- | ||
1451 | 8 | diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c | ||
1452 | 9 | index e9b7715..d554376 100644 | ||
1453 | 10 | --- a/libnautilus-private/nautilus-file.c | ||
1454 | 11 | +++ b/libnautilus-private/nautilus-file.c | ||
1455 | 12 | @@ -3953,6 +3953,18 @@ get_custom_icon_metadata_name (NautilusFile *file) | ||
1456 | 13 | } | ||
1457 | 14 | |||
1458 | 15 | static GIcon * | ||
1459 | 16 | +get_link_icon (NautilusFile *file) | ||
1460 | 17 | +{ | ||
1461 | 18 | + GIcon *icon = NULL; | ||
1462 | 19 | + | ||
1463 | 20 | + if (file->details->got_link_info && file->details->custom_icon != NULL) { | ||
1464 | 21 | + icon = g_object_ref (file->details->custom_icon); | ||
1465 | 22 | + } | ||
1466 | 23 | + | ||
1467 | 24 | + return icon; | ||
1468 | 25 | +} | ||
1469 | 26 | + | ||
1470 | 27 | +static GIcon * | ||
1471 | 28 | get_custom_icon (NautilusFile *file) | ||
1472 | 29 | { | ||
1473 | 30 | char *custom_icon_uri, *custom_icon_name; | ||
1474 | 31 | @@ -3985,11 +3997,7 @@ get_custom_icon (NautilusFile *file) | ||
1475 | 32 | g_free (custom_icon_name); | ||
1476 | 33 | } | ||
1477 | 34 | } | ||
1478 | 35 | - | ||
1479 | 36 | - if (icon == NULL && file->details->got_link_info && file->details->custom_icon != NULL) { | ||
1480 | 37 | - icon = g_object_ref (file->details->custom_icon); | ||
1481 | 38 | - } | ||
1482 | 39 | - | ||
1483 | 40 | + | ||
1484 | 41 | return icon; | ||
1485 | 42 | } | ||
1486 | 43 | |||
1487 | 44 | @@ -4086,6 +4094,12 @@ nautilus_file_get_gicon (NautilusFile *file, | ||
1488 | 45 | return icon; | ||
1489 | 46 | } | ||
1490 | 47 | |||
1491 | 48 | + icon = get_link_icon (file); | ||
1492 | 49 | + | ||
1493 | 50 | + if (icon != NULL) { | ||
1494 | 51 | + return icon; | ||
1495 | 52 | + } | ||
1496 | 53 | + | ||
1497 | 54 | if (file->details->icon) { | ||
1498 | 55 | icon = NULL; | ||
1499 | 56 | |||
1500 | 57 | @@ -4218,27 +4232,36 @@ nautilus_file_get_icon (NautilusFile *file, | ||
1501 | 58 | { | ||
1502 | 59 | NautilusIconInfo *icon; | ||
1503 | 60 | GIcon *gicon; | ||
1504 | 61 | + gboolean custom_icon; | ||
1505 | 62 | GdkPixbuf *raw_pixbuf, *scaled_pixbuf; | ||
1506 | 63 | int modified_size; | ||
1507 | 64 | |||
1508 | 65 | if (file == NULL) { | ||
1509 | 66 | return NULL; | ||
1510 | 67 | } | ||
1511 | 68 | - | ||
1512 | 69 | + | ||
1513 | 70 | + custom_icon = FALSE; | ||
1514 | 71 | gicon = get_custom_icon (file); | ||
1515 | 72 | + | ||
1516 | 73 | if (gicon) { | ||
1517 | 74 | - GdkPixbuf *pixbuf; | ||
1518 | 75 | + custom_icon = TRUE; | ||
1519 | 76 | + } else { | ||
1520 | 77 | + gicon = get_link_icon (file); | ||
1521 | 78 | + } | ||
1522 | 79 | |||
1523 | 80 | + if (gicon) { | ||
1524 | 81 | icon = nautilus_icon_info_lookup (gicon, size); | ||
1525 | 82 | g_object_unref (gicon); | ||
1526 | 83 | |||
1527 | 84 | - pixbuf = nautilus_icon_info_get_pixbuf (icon); | ||
1528 | 85 | - if (pixbuf != NULL) { | ||
1529 | 86 | - nautilus_ui_frame_image (&pixbuf); | ||
1530 | 87 | - g_object_unref (icon); | ||
1531 | 88 | + if (custom_icon) { | ||
1532 | 89 | + raw_pixbuf = nautilus_icon_info_get_pixbuf (icon); | ||
1533 | 90 | + if (raw_pixbuf != NULL) { | ||
1534 | 91 | + nautilus_ui_frame_image (&raw_pixbuf); | ||
1535 | 92 | + g_object_unref (icon); | ||
1536 | 93 | |||
1537 | 94 | - icon = nautilus_icon_info_new_for_pixbuf (pixbuf); | ||
1538 | 95 | - g_object_unref (pixbuf); | ||
1539 | 96 | + icon = nautilus_icon_info_new_for_pixbuf (raw_pixbuf); | ||
1540 | 97 | + g_object_unref (raw_pixbuf); | ||
1541 | 98 | + } | ||
1542 | 99 | } | ||
1543 | 100 | |||
1544 | 101 | return icon; | ||
1545 | 102 | -- | ||
1546 | 103 | cgit v0.9.0.2 | ||
1547 | 104 | 0 | ||
1548 | === removed file 'debian/patches/git_margin_primary_workarea_revert.patch' | |||
1549 | --- debian/patches/git_margin_primary_workarea_revert.patch 2013-03-20 17:59:04 +0000 | |||
1550 | +++ debian/patches/git_margin_primary_workarea_revert.patch 1970-01-01 00:00:00 +0000 | |||
1551 | @@ -1,60 +0,0 @@ | |||
1552 | 1 | From 6f6fcf1b4e99c8a5186c78e911a159b1f06df7b0 Mon Sep 17 00:00:00 2001 | ||
1553 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1554 | 3 | Date: Tue, 19 Mar 2013 23:25:37 +0000 | ||
1555 | 4 | Subject: Revert "desktop-canvas: set margins according to the primary workarea" | ||
1556 | 5 | |||
1557 | 6 | This fix proved to be more problematic than the original bug, so we'll | ||
1558 | 7 | revert to the original behavior for now. | ||
1559 | 8 | |||
1560 | 9 | This reverts commit 1292610b87be44fcd5a7d5a09738cd7f3287325f. | ||
1561 | 10 | |||
1562 | 11 | https://bugzilla.gnome.org/show_bug.cgi?id=695336 | ||
1563 | 12 | --- | ||
1564 | 13 | diff --git a/src/nautilus-desktop-canvas-view.c b/src/nautilus-desktop-canvas-view.c | ||
1565 | 14 | index fb75139..75287ec 100644 | ||
1566 | 15 | --- a/src/nautilus-desktop-canvas-view.c | ||
1567 | 16 | +++ b/src/nautilus-desktop-canvas-view.c | ||
1568 | 17 | @@ -99,27 +99,27 @@ canvas_container_set_workarea (NautilusCanvasContainer *canvas_container, | ||
1569 | 18 | int n_items) | ||
1570 | 19 | { | ||
1571 | 20 | int left, right, top, bottom; | ||
1572 | 21 | + int screen_width, screen_height; | ||
1573 | 22 | int i; | ||
1574 | 23 | - GdkRectangle geometry; | ||
1575 | 24 | |||
1576 | 25 | left = right = top = bottom = 0; | ||
1577 | 26 | - gdk_screen_get_monitor_geometry (screen, gdk_screen_get_primary_monitor (screen), &geometry); | ||
1578 | 27 | |||
1579 | 28 | - for (i = 0; i < n_items; i += 4) { | ||
1580 | 29 | - GdkRectangle workarea; | ||
1581 | 30 | + screen_width = gdk_screen_get_width (screen); | ||
1582 | 31 | + screen_height = gdk_screen_get_height (screen); | ||
1583 | 32 | |||
1584 | 33 | - workarea.x = workareas[i]; | ||
1585 | 34 | - workarea.y = workareas[i + 1]; | ||
1586 | 35 | - workarea.width = workareas[i + 2]; | ||
1587 | 36 | - workarea.height = workareas[i + 3]; | ||
1588 | 37 | + for (i = 0; i < n_items; i += 4) { | ||
1589 | 38 | + int x = workareas [i]; | ||
1590 | 39 | + int y = workareas [i + 1]; | ||
1591 | 40 | + int width = workareas [i + 2]; | ||
1592 | 41 | + int height = workareas [i + 3]; | ||
1593 | 42 | |||
1594 | 43 | - if (!gdk_rectangle_intersect (&geometry, &workarea, &workarea)) | ||
1595 | 44 | + if ((x + width) > screen_width || (y + height) > screen_height) | ||
1596 | 45 | continue; | ||
1597 | 46 | |||
1598 | 47 | - left = MAX (left, workarea.x); | ||
1599 | 48 | - right = MAX (right, (geometry.x + geometry.width) - (workarea.x + workarea.width)); | ||
1600 | 49 | - top = MAX (top, workarea.y); | ||
1601 | 50 | - bottom = MAX (bottom, (geometry.y + geometry.height) - (workarea.y + workarea.height)); | ||
1602 | 51 | + left = MAX (left, x); | ||
1603 | 52 | + right = MAX (right, screen_width - width - x); | ||
1604 | 53 | + top = MAX (top, y); | ||
1605 | 54 | + bottom = MAX (bottom, screen_height - height - y); | ||
1606 | 55 | } | ||
1607 | 56 | |||
1608 | 57 | nautilus_canvas_container_set_margins (canvas_container, | ||
1609 | 58 | -- | ||
1610 | 59 | cgit v0.9.1 | ||
1611 | 60 | |||
1612 | 61 | 0 | ||
1613 | === removed file 'debian/patches/git_rank_exact_matches_higher.patch' | |||
1614 | --- debian/patches/git_rank_exact_matches_higher.patch 2013-04-16 10:17:12 +0000 | |||
1615 | +++ debian/patches/git_rank_exact_matches_higher.patch 1970-01-01 00:00:00 +0000 | |||
1616 | @@ -1,49 +0,0 @@ | |||
1617 | 1 | From 8d0ae533c01fc785c097329f2e7f9a3faf686b6d Mon Sep 17 00:00:00 2001 | ||
1618 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1619 | 3 | Date: Thu, 04 Apr 2013 21:59:31 +0000 | ||
1620 | 4 | Subject: query: rank prefix matches lower than exact matches | ||
1621 | 5 | |||
1622 | 6 | Count how many letters are left after the string occurrence, and | ||
1623 | 7 | subtract that from the match score. | ||
1624 | 8 | --- | ||
1625 | 9 | diff --git a/libnautilus-private/nautilus-query.c b/libnautilus-private/nautilus-query.c | ||
1626 | 10 | index 1393cd0..f282b0c 100644 | ||
1627 | 11 | --- a/libnautilus-private/nautilus-query.c | ||
1628 | 12 | +++ b/libnautilus-private/nautilus-query.c | ||
1629 | 13 | @@ -96,7 +96,7 @@ nautilus_query_matches_string (NautilusQuery *query, | ||
1630 | 14 | gchar *prepared_string, *ptr; | ||
1631 | 15 | gboolean found; | ||
1632 | 16 | gdouble retval; | ||
1633 | 17 | - gint idx; | ||
1634 | 18 | + gint idx, nonexact_malus; | ||
1635 | 19 | |||
1636 | 20 | if (!query->details->text) { | ||
1637 | 21 | return -1; | ||
1638 | 22 | @@ -111,12 +111,15 @@ nautilus_query_matches_string (NautilusQuery *query, | ||
1639 | 23 | prepared_string = prepare_string_for_compare (string); | ||
1640 | 24 | found = TRUE; | ||
1641 | 25 | ptr = NULL; | ||
1642 | 26 | + nonexact_malus = 0; | ||
1643 | 27 | |||
1644 | 28 | for (idx = 0; query->details->prepared_words[idx] != NULL; idx++) { | ||
1645 | 29 | if ((ptr = strstr (prepared_string, query->details->prepared_words[idx])) == NULL) { | ||
1646 | 30 | found = FALSE; | ||
1647 | 31 | break; | ||
1648 | 32 | } | ||
1649 | 33 | + | ||
1650 | 34 | + nonexact_malus += strlen (ptr) - strlen (query->details->prepared_words[idx]); | ||
1651 | 35 | } | ||
1652 | 36 | |||
1653 | 37 | if (!found) { | ||
1654 | 38 | @@ -124,7 +127,7 @@ nautilus_query_matches_string (NautilusQuery *query, | ||
1655 | 39 | return -1; | ||
1656 | 40 | } | ||
1657 | 41 | |||
1658 | 42 | - retval = MAX (10.0, (50.0 / idx) - (gdouble) (ptr - prepared_string)); | ||
1659 | 43 | + retval = MAX (10.0, 50.0 - (gdouble) (ptr - prepared_string) - nonexact_malus); | ||
1660 | 44 | g_free (prepared_string); | ||
1661 | 45 | |||
1662 | 46 | return retval; | ||
1663 | 47 | -- | ||
1664 | 48 | cgit v0.9.1 | ||
1665 | 49 | |||
1666 | 50 | 0 | ||
1667 | === removed file 'debian/patches/git_rank_reversed.patch' | |||
1668 | --- debian/patches/git_rank_reversed.patch 2013-04-16 10:17:12 +0000 | |||
1669 | +++ debian/patches/git_rank_reversed.patch 1970-01-01 00:00:00 +0000 | |||
1670 | @@ -1,26 +0,0 @@ | |||
1671 | 1 | From 771d497088bdc7c6c8be3c6a38f815c8ad531fca Mon Sep 17 00:00:00 2001 | ||
1672 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1673 | 3 | Date: Fri, 05 Apr 2013 00:01:35 +0000 | ||
1674 | 4 | Subject: file: do not reverse collated order for files with same search rank | ||
1675 | 5 | |||
1676 | 6 | When two search results rank equally, we fall back to the collated | ||
1677 | 7 | order. | ||
1678 | 8 | Since search is usually ranked reversed (highest at the top), we need to | ||
1679 | 9 | ensure we don't accidentally reverse the collated order as well. | ||
1680 | 10 | |||
1681 | 11 | https://bugzilla.gnome.org/show_bug.cgi?id=688772 | ||
1682 | 12 | --- | ||
1683 | 13 | diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c | ||
1684 | 14 | index 60a1954..35235e1 100644 | ||
1685 | 15 | --- a/libnautilus-private/nautilus-file.c | ||
1686 | 16 | +++ b/libnautilus-private/nautilus-file.c | ||
1687 | 17 | @@ -3191,6 +3191,9 @@ nautilus_file_compare_for_sort (NautilusFile *file_1, | ||
1688 | 18 | result = compare_by_search_relevance (file_1, file_2); | ||
1689 | 19 | if (result == 0) { | ||
1690 | 20 | result = compare_by_full_path (file_1, file_2); | ||
1691 | 21 | + | ||
1692 | 22 | + /* ensure alphabetical order for files of the same relevance */ | ||
1693 | 23 | + reversed = FALSE; | ||
1694 | 24 | } | ||
1695 | 25 | break; | ||
1696 | 26 | default: | ||
1697 | 27 | 0 | ||
1698 | === removed file 'debian/patches/git_reset_view_to_defaults.patch' | |||
1699 | --- debian/patches/git_reset_view_to_defaults.patch 2013-04-16 10:17:12 +0000 | |||
1700 | +++ debian/patches/git_reset_view_to_defaults.patch 1970-01-01 00:00:00 +0000 | |||
1701 | @@ -1,18 +0,0 @@ | |||
1702 | 1 | From 7ec5b026f5d1afe52e8c046b329ef30d7d3bc0a5 Mon Sep 17 00:00:00 2001 | ||
1703 | 2 | From: Michael Wood <michael.g.wood@intel.com> | ||
1704 | 3 | Date: Wed, 10 Apr 2013 15:57:05 +0000 | ||
1705 | 4 | Subject: view: Make sure we chain down to call reset_to_defaults on the view. | ||
1706 | 5 | |||
1707 | 6 | --- | ||
1708 | 7 | diff --git a/src/nautilus-view.c b/src/nautilus-view.c | ||
1709 | 8 | index 357da27..4441c40 100644 | ||
1710 | 9 | --- a/src/nautilus-view.c | ||
1711 | 10 | +++ b/src/nautilus-view.c | ||
1712 | 11 | @@ -474,6 +474,7 @@ | ||
1713 | 12 | NAUTILUS_ACTION_SHOW_HIDDEN_FILES); | ||
1714 | 13 | gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), | ||
1715 | 14 | g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES)); | ||
1716 | 15 | + NAUTILUS_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->reset_to_defaults (view); | ||
1717 | 16 | } | ||
1718 | 17 | |||
1719 | 18 | static gboolean | ||
1720 | 19 | 0 | ||
1721 | === removed file 'debian/patches/git_restore_filename.patch' | |||
1722 | --- debian/patches/git_restore_filename.patch 2012-12-03 14:37:29 +0000 | |||
1723 | +++ debian/patches/git_restore_filename.patch 1970-01-01 00:00:00 +0000 | |||
1724 | @@ -1,46 +0,0 @@ | |||
1725 | 1 | From ecee8be850b8342c804de2ecc3e613b99a20a010 Mon Sep 17 00:00:00 2001 | ||
1726 | 2 | From: Timothy Arceri <t_arceri@yahoo.com.au> | ||
1727 | 3 | Date: Thu, 29 Nov 2012 06:39:36 +0000 | ||
1728 | 4 | Subject: Make sure to use correct filename when restoring from Trash | ||
1729 | 5 | |||
1730 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=673598 | ||
1731 | 7 | --- | ||
1732 | 8 | diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c | ||
1733 | 9 | index b60b748..85d5a6f 100644 | ||
1734 | 10 | --- a/libnautilus-private/nautilus-file-operations.c | ||
1735 | 11 | +++ b/libnautilus-private/nautilus-file-operations.c | ||
1736 | 12 | @@ -3258,18 +3258,28 @@ get_target_file_with_custom_name (GFile *src, | ||
1737 | 13 | |||
1738 | 14 | if (dest == NULL && !same_fs) { | ||
1739 | 15 | info = g_file_query_info (src, | ||
1740 | 16 | - G_FILE_ATTRIBUTE_STANDARD_COPY_NAME, | ||
1741 | 17 | + G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "," | ||
1742 | 18 | + G_FILE_ATTRIBUTE_TRASH_ORIG_PATH, | ||
1743 | 19 | 0, NULL, NULL); | ||
1744 | 20 | |||
1745 | 21 | if (info) { | ||
1746 | 22 | - copyname = g_strdup (g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_COPY_NAME)); | ||
1747 | 23 | + copyname = NULL; | ||
1748 | 24 | + | ||
1749 | 25 | + /* if file is being restored from trash make sure it uses its original name */ | ||
1750 | 26 | + if (g_file_has_uri_scheme (src, "trash")) { | ||
1751 | 27 | + copyname = g_strdup (g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_TRASH_ORIG_PATH)); | ||
1752 | 28 | + } | ||
1753 | 29 | + | ||
1754 | 30 | + if (copyname == NULL) { | ||
1755 | 31 | + copyname = g_strdup (g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_COPY_NAME)); | ||
1756 | 32 | + } | ||
1757 | 33 | |||
1758 | 34 | if (copyname) { | ||
1759 | 35 | make_file_name_valid_for_dest_fs (copyname, dest_fs_type); | ||
1760 | 36 | dest = g_file_get_child_for_display_name (dest_dir, copyname, NULL); | ||
1761 | 37 | g_free (copyname); | ||
1762 | 38 | } | ||
1763 | 39 | - | ||
1764 | 40 | + | ||
1765 | 41 | g_object_unref (info); | ||
1766 | 42 | } | ||
1767 | 43 | } | ||
1768 | 44 | -- | ||
1769 | 45 | cgit v0.9.0.2 | ||
1770 | 46 | |||
1771 | 47 | 0 | ||
1772 | === removed file 'debian/patches/git_restore_from_missing_directories.patch' | |||
1773 | --- debian/patches/git_restore_from_missing_directories.patch 2013-04-04 23:48:07 +0000 | |||
1774 | +++ debian/patches/git_restore_from_missing_directories.patch 1970-01-01 00:00:00 +0000 | |||
1775 | @@ -1,142 +0,0 @@ | |||
1776 | 1 | From f1cb32831df32009f7e8bd5fcc35c5ccdf64eee4 Mon Sep 17 00:00:00 2001 | ||
1777 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
1778 | 3 | Date: Tue, 19 Mar 2013 09:30:45 +0000 | ||
1779 | 4 | Subject: file-utils: ensure directories exist before restoring from trash | ||
1780 | 5 | |||
1781 | 6 | Before restoring a file from trash, ensure its target directory exists on | ||
1782 | 7 | disk, otherwise the restore operation will fail trying to move a file to | ||
1783 | 8 | a nonexistent location. | ||
1784 | 9 | |||
1785 | 10 | https://bugzilla.gnome.org/show_bug.cgi?id=695460 | ||
1786 | 11 | --- | ||
1787 | 12 | diff --git a/libnautilus-private/nautilus-file-utilities.c b/libnautilus-private/nautilus-file-utilities.c | ||
1788 | 13 | index 2b779a1..a28f961 100644 | ||
1789 | 14 | --- a/libnautilus-private/nautilus-file-utilities.c | ||
1790 | 15 | +++ b/libnautilus-private/nautilus-file-utilities.c | ||
1791 | 16 | @@ -1160,15 +1160,92 @@ locations_from_file_list (GList *file_list) | ||
1792 | 17 | return g_list_reverse (ret); | ||
1793 | 18 | } | ||
1794 | 19 | |||
1795 | 20 | +typedef struct { | ||
1796 | 21 | + GHashTable *original_dirs_hash; | ||
1797 | 22 | + GtkWindow *parent_window; | ||
1798 | 23 | +} RestoreFilesData; | ||
1799 | 24 | + | ||
1800 | 25 | +static void | ||
1801 | 26 | +ensure_dirs_task_ready_cb (GObject *_source, | ||
1802 | 27 | + GAsyncResult *res, | ||
1803 | 28 | + gpointer user_data) | ||
1804 | 29 | +{ | ||
1805 | 30 | + NautilusFile *original_dir; | ||
1806 | 31 | + GFile *original_dir_location; | ||
1807 | 32 | + GList *original_dirs, *files, *locations, *l; | ||
1808 | 33 | + RestoreFilesData *data = user_data; | ||
1809 | 34 | + | ||
1810 | 35 | + original_dirs = g_hash_table_get_keys (data->original_dirs_hash); | ||
1811 | 36 | + for (l = original_dirs; l != NULL; l = l->next) { | ||
1812 | 37 | + original_dir = NAUTILUS_FILE (l->data); | ||
1813 | 38 | + original_dir_location = nautilus_file_get_location (original_dir); | ||
1814 | 39 | + | ||
1815 | 40 | + files = g_hash_table_lookup (data->original_dirs_hash, original_dir); | ||
1816 | 41 | + locations = locations_from_file_list (files); | ||
1817 | 42 | + | ||
1818 | 43 | + nautilus_file_operations_move | ||
1819 | 44 | + (locations, NULL, | ||
1820 | 45 | + original_dir_location, | ||
1821 | 46 | + data->parent_window, | ||
1822 | 47 | + NULL, NULL); | ||
1823 | 48 | + | ||
1824 | 49 | + g_list_free_full (locations, g_object_unref); | ||
1825 | 50 | + g_object_unref (original_dir_location); | ||
1826 | 51 | + } | ||
1827 | 52 | + | ||
1828 | 53 | + g_list_free (original_dirs); | ||
1829 | 54 | + | ||
1830 | 55 | + g_hash_table_unref (data->original_dirs_hash); | ||
1831 | 56 | + g_slice_free (RestoreFilesData, data); | ||
1832 | 57 | +} | ||
1833 | 58 | + | ||
1834 | 59 | +static void | ||
1835 | 60 | +ensure_dirs_task_thread_func (GTask *task, | ||
1836 | 61 | + gpointer source, | ||
1837 | 62 | + gpointer task_data, | ||
1838 | 63 | + GCancellable *cancellable) | ||
1839 | 64 | +{ | ||
1840 | 65 | + RestoreFilesData *data = task_data; | ||
1841 | 66 | + NautilusFile *original_dir; | ||
1842 | 67 | + GFile *original_dir_location; | ||
1843 | 68 | + GList *original_dirs, *l; | ||
1844 | 69 | + | ||
1845 | 70 | + original_dirs = g_hash_table_get_keys (data->original_dirs_hash); | ||
1846 | 71 | + for (l = original_dirs; l != NULL; l = l->next) { | ||
1847 | 72 | + original_dir = NAUTILUS_FILE (l->data); | ||
1848 | 73 | + original_dir_location = nautilus_file_get_location (original_dir); | ||
1849 | 74 | + | ||
1850 | 75 | + g_file_make_directory_with_parents (original_dir_location, cancellable, NULL); | ||
1851 | 76 | + g_object_unref (original_dir_location); | ||
1852 | 77 | + } | ||
1853 | 78 | + | ||
1854 | 79 | + g_task_return_pointer (task, NULL, NULL); | ||
1855 | 80 | +} | ||
1856 | 81 | + | ||
1857 | 82 | +static void | ||
1858 | 83 | +restore_files_ensure_parent_directories (GHashTable *original_dirs_hash, | ||
1859 | 84 | + GtkWindow *parent_window) | ||
1860 | 85 | +{ | ||
1861 | 86 | + RestoreFilesData *data; | ||
1862 | 87 | + GTask *ensure_dirs_task; | ||
1863 | 88 | + | ||
1864 | 89 | + data = g_slice_new0 (RestoreFilesData); | ||
1865 | 90 | + data->parent_window = parent_window; | ||
1866 | 91 | + data->original_dirs_hash = g_hash_table_ref (original_dirs_hash); | ||
1867 | 92 | + | ||
1868 | 93 | + ensure_dirs_task = g_task_new (NULL, NULL, ensure_dirs_task_ready_cb, data); | ||
1869 | 94 | + g_task_set_task_data (ensure_dirs_task, data, NULL); | ||
1870 | 95 | + g_task_run_in_thread (ensure_dirs_task, ensure_dirs_task_thread_func); | ||
1871 | 96 | + g_object_unref (ensure_dirs_task); | ||
1872 | 97 | +} | ||
1873 | 98 | + | ||
1874 | 99 | void | ||
1875 | 100 | nautilus_restore_files_from_trash (GList *files, | ||
1876 | 101 | GtkWindow *parent_window) | ||
1877 | 102 | { | ||
1878 | 103 | - NautilusFile *file, *original_dir; | ||
1879 | 104 | + NautilusFile *file; | ||
1880 | 105 | GHashTable *original_dirs_hash; | ||
1881 | 106 | - GList *original_dirs, *unhandled_files; | ||
1882 | 107 | - GFile *original_dir_location; | ||
1883 | 108 | - GList *locations, *l; | ||
1884 | 109 | + GList *unhandled_files, *l; | ||
1885 | 110 | char *message, *file_name; | ||
1886 | 111 | |||
1887 | 112 | original_dirs_hash = nautilus_trashed_files_get_original_directories (files, &unhandled_files); | ||
1888 | 113 | @@ -1186,26 +1263,8 @@ nautilus_restore_files_from_trash (GList *files, | ||
1889 | 114 | } | ||
1890 | 115 | |||
1891 | 116 | if (original_dirs_hash != NULL) { | ||
1892 | 117 | - original_dirs = g_hash_table_get_keys (original_dirs_hash); | ||
1893 | 118 | - for (l = original_dirs; l != NULL; l = l->next) { | ||
1894 | 119 | - original_dir = NAUTILUS_FILE (l->data); | ||
1895 | 120 | - original_dir_location = nautilus_file_get_location (original_dir); | ||
1896 | 121 | - | ||
1897 | 122 | - files = g_hash_table_lookup (original_dirs_hash, original_dir); | ||
1898 | 123 | - locations = locations_from_file_list (files); | ||
1899 | 124 | - | ||
1900 | 125 | - nautilus_file_operations_move | ||
1901 | 126 | - (locations, NULL, | ||
1902 | 127 | - original_dir_location, | ||
1903 | 128 | - parent_window, | ||
1904 | 129 | - NULL, NULL); | ||
1905 | 130 | - | ||
1906 | 131 | - g_list_free_full (locations, g_object_unref); | ||
1907 | 132 | - g_object_unref (original_dir_location); | ||
1908 | 133 | - } | ||
1909 | 134 | - | ||
1910 | 135 | - g_list_free (original_dirs); | ||
1911 | 136 | - g_hash_table_destroy (original_dirs_hash); | ||
1912 | 137 | + restore_files_ensure_parent_directories (original_dirs_hash, parent_window); | ||
1913 | 138 | + g_hash_table_unref (original_dirs_hash); | ||
1914 | 139 | } | ||
1915 | 140 | |||
1916 | 141 | nautilus_file_list_unref (unhandled_files); | ||
1917 | 142 | |||
1918 | 143 | 0 | ||
1919 | === removed file 'debian/patches/git_reuse_already_opened_views.patch' | |||
1920 | --- debian/patches/git_reuse_already_opened_views.patch 2013-03-14 10:35:52 +0000 | |||
1921 | +++ debian/patches/git_reuse_already_opened_views.patch 1970-01-01 00:00:00 +0000 | |||
1922 | @@ -1,302 +0,0 @@ | |||
1923 | 1 | Description: Focus already opened nautilus windows or tabs when an already | ||
1924 | 2 | opened location is requested. Add a --new-window command to force the opening | ||
1925 | 3 | of a new window. | ||
1926 | 4 | |||
1927 | 5 | Origin: upstream, https://git.gnome.org/browse/nautilus/commit/?id=c8ee0c5 | ||
1928 | 6 | https://git.gnome.org/browse/nautilus/commit/?id=d0b0b | ||
1929 | 7 | https://git.gnome.org/browse/nautilus/commit/?id=ce4255cf | ||
1930 | 8 | Bug: https://bugzilla.gnome.org/show_bug.cgi?id=694034 | ||
1931 | 9 | Bug-Ubuntu: https://bugs.launchpad.net/nautilus/+bug/692444 | ||
1932 | 10 | Forwarded: yes | ||
1933 | 11 | Applied-Upstream: 3.7.91 | ||
1934 | 12 | Author: Marco Trevisan <marco@ubuntu.com> | ||
1935 | 13 | |||
1936 | 14 | Index: nautilus/data/nautilus.desktop.in.in | ||
1937 | 15 | =================================================================== | ||
1938 | 16 | --- nautilus.orig/data/nautilus.desktop.in.in 2013-03-12 19:34:31.066512196 +0100 | ||
1939 | 17 | +++ nautilus/data/nautilus.desktop.in.in 2013-03-12 19:34:41.726459664 +0100 | ||
1940 | 18 | @@ -1,7 +1,7 @@ | ||
1941 | 19 | [Desktop Entry] | ||
1942 | 20 | _Name=Files | ||
1943 | 21 | _Comment=Access and organize files | ||
1944 | 22 | -Exec=nautilus %U | ||
1945 | 23 | +Exec=nautilus --new-window %U | ||
1946 | 24 | Icon=system-file-manager | ||
1947 | 25 | Terminal=false | ||
1948 | 26 | Type=Application | ||
1949 | 27 | Index: nautilus/libnautilus-private/nautilus-file-utilities.c | ||
1950 | 28 | =================================================================== | ||
1951 | 29 | --- nautilus.orig/libnautilus-private/nautilus-file-utilities.c 2013-03-12 19:34:31.066512196 +0100 | ||
1952 | 30 | +++ nautilus/libnautilus-private/nautilus-file-utilities.c 2013-03-12 19:34:31.058512174 +0100 | ||
1953 | 31 | @@ -1296,6 +1296,48 @@ | ||
1954 | 32 | return NULL; | ||
1955 | 33 | } | ||
1956 | 34 | |||
1957 | 35 | +gboolean | ||
1958 | 36 | +nautilus_file_selection_equal (GList *selection_a, | ||
1959 | 37 | + GList *selection_b) | ||
1960 | 38 | +{ | ||
1961 | 39 | + GList *al, *bl; | ||
1962 | 40 | + gboolean selection_matches; | ||
1963 | 41 | + | ||
1964 | 42 | + if (selection_a == NULL || selection_b == NULL) { | ||
1965 | 43 | + return (selection_a == selection_b); | ||
1966 | 44 | + } | ||
1967 | 45 | + | ||
1968 | 46 | + if (g_list_length (selection_a) != g_list_length (selection_b)) { | ||
1969 | 47 | + return FALSE; | ||
1970 | 48 | + } | ||
1971 | 49 | + | ||
1972 | 50 | + selection_matches = TRUE; | ||
1973 | 51 | + | ||
1974 | 52 | + for (al = selection_a; al; al = al->next) { | ||
1975 | 53 | + GFile *a_location = nautilus_file_get_location (NAUTILUS_FILE (al->data)); | ||
1976 | 54 | + gboolean found = FALSE; | ||
1977 | 55 | + | ||
1978 | 56 | + for (bl = selection_b; bl; bl = bl->next) { | ||
1979 | 57 | + GFile *b_location = nautilus_file_get_location (NAUTILUS_FILE (bl->data)); | ||
1980 | 58 | + found = g_file_equal (b_location, a_location); | ||
1981 | 59 | + g_object_unref (b_location); | ||
1982 | 60 | + | ||
1983 | 61 | + if (found) { | ||
1984 | 62 | + break; | ||
1985 | 63 | + } | ||
1986 | 64 | + } | ||
1987 | 65 | + | ||
1988 | 66 | + selection_matches = found; | ||
1989 | 67 | + g_object_unref (a_location); | ||
1990 | 68 | + | ||
1991 | 69 | + if (!selection_matches) { | ||
1992 | 70 | + break; | ||
1993 | 71 | + } | ||
1994 | 72 | + } | ||
1995 | 73 | + | ||
1996 | 74 | + return selection_matches; | ||
1997 | 75 | +} | ||
1998 | 76 | + | ||
1999 | 77 | #if !defined (NAUTILUS_OMIT_SELF_CHECK) | ||
2000 | 78 | |||
2001 | 79 | void | ||
2002 | 80 | Index: nautilus/libnautilus-private/nautilus-file-utilities.h | ||
2003 | 81 | =================================================================== | ||
2004 | 82 | --- nautilus.orig/libnautilus-private/nautilus-file-utilities.h 2013-03-12 19:34:31.066512196 +0100 | ||
2005 | 83 | +++ nautilus/libnautilus-private/nautilus-file-utilities.h 2013-03-12 19:34:31.058512174 +0100 | ||
2006 | 84 | @@ -95,4 +95,6 @@ | ||
2007 | 85 | GCancellable *cancellable, | ||
2008 | 86 | gpointer user_data); | ||
2009 | 87 | |||
2010 | 88 | +gboolean nautilus_file_selection_equal (GList *selection_a, GList *selection_b); | ||
2011 | 89 | + | ||
2012 | 90 | #endif /* NAUTILUS_FILE_UTILITIES_H */ | ||
2013 | 91 | Index: nautilus/src/nautilus-application.c | ||
2014 | 92 | =================================================================== | ||
2015 | 93 | --- nautilus.orig/src/nautilus-application.c 2013-03-12 19:34:31.066512196 +0100 | ||
2016 | 94 | +++ nautilus/src/nautilus-application.c 2013-03-12 19:34:31.058512174 +0100 | ||
2017 | 95 | @@ -576,6 +576,47 @@ | ||
2018 | 96 | } | ||
2019 | 97 | } | ||
2020 | 98 | |||
2021 | 99 | +static NautilusWindowSlot * | ||
2022 | 100 | +get_window_slot_for_location (NautilusApplication *application, GFile *location) | ||
2023 | 101 | +{ | ||
2024 | 102 | + NautilusWindowSlot *slot; | ||
2025 | 103 | + GList *l, *sl; | ||
2026 | 104 | + | ||
2027 | 105 | + slot = NULL; | ||
2028 | 106 | + | ||
2029 | 107 | + if (g_file_query_file_type (location, G_FILE_QUERY_INFO_NONE, NULL) != G_FILE_TYPE_DIRECTORY) { | ||
2030 | 108 | + location = g_file_get_parent (location); | ||
2031 | 109 | + } else { | ||
2032 | 110 | + g_object_ref (location); | ||
2033 | 111 | + } | ||
2034 | 112 | + | ||
2035 | 113 | + for (l = gtk_application_get_windows (GTK_APPLICATION (application)); l; l = l->next) { | ||
2036 | 114 | + NautilusWindow *win = NAUTILUS_WINDOW (l->data); | ||
2037 | 115 | + | ||
2038 | 116 | + if (NAUTILUS_IS_DESKTOP_WINDOW (win)) | ||
2039 | 117 | + continue; | ||
2040 | 118 | + | ||
2041 | 119 | + for (sl = nautilus_window_get_slots (win); sl; sl = sl->next) { | ||
2042 | 120 | + NautilusWindowSlot *current = NAUTILUS_WINDOW_SLOT (sl->data); | ||
2043 | 121 | + GFile *slot_location = nautilus_window_slot_get_location (current); | ||
2044 | 122 | + | ||
2045 | 123 | + if (g_file_equal (slot_location, location)) { | ||
2046 | 124 | + slot = current; | ||
2047 | 125 | + break; | ||
2048 | 126 | + } | ||
2049 | 127 | + } | ||
2050 | 128 | + | ||
2051 | 129 | + if (slot) { | ||
2052 | 130 | + break; | ||
2053 | 131 | + } | ||
2054 | 132 | + } | ||
2055 | 133 | + | ||
2056 | 134 | + g_object_unref (location); | ||
2057 | 135 | + | ||
2058 | 136 | + return slot; | ||
2059 | 137 | +} | ||
2060 | 138 | + | ||
2061 | 139 | + | ||
2062 | 140 | static void | ||
2063 | 141 | open_window (NautilusApplication *application, | ||
2064 | 142 | GFile *location, GdkScreen *screen, const char *geometry) | ||
2065 | 143 | @@ -609,6 +650,7 @@ | ||
2066 | 144 | |||
2067 | 145 | static void | ||
2068 | 146 | open_windows (NautilusApplication *application, | ||
2069 | 147 | + gboolean force_new, | ||
2070 | 148 | GFile **files, | ||
2071 | 149 | gint n_files, | ||
2072 | 150 | GdkScreen *screen, | ||
2073 | 151 | @@ -621,8 +663,22 @@ | ||
2074 | 152 | open_window (application, NULL, screen, geometry); | ||
2075 | 153 | } else { | ||
2076 | 154 | /* Open windows at each requested location. */ | ||
2077 | 155 | - for (i = 0; i < n_files; i++) { | ||
2078 | 156 | - open_window (application, files[i], screen, geometry); | ||
2079 | 157 | + for (i = 0; i < n_files; ++i) { | ||
2080 | 158 | + NautilusWindowSlot *slot = NULL; | ||
2081 | 159 | + | ||
2082 | 160 | + if (!force_new) | ||
2083 | 161 | + slot = get_window_slot_for_location (application, files[i]); | ||
2084 | 162 | + | ||
2085 | 163 | + if (!slot) { | ||
2086 | 164 | + open_window (application, files[i], screen, geometry); | ||
2087 | 165 | + } else { | ||
2088 | 166 | + /* We open the location again to update any possible selection */ | ||
2089 | 167 | + nautilus_window_slot_open_location (slot, files[i], 0); | ||
2090 | 168 | + | ||
2091 | 169 | + NautilusWindow *window = nautilus_window_slot_get_window (slot); | ||
2092 | 170 | + nautilus_window_set_active_slot (window, slot); | ||
2093 | 171 | + gtk_window_present (GTK_WINDOW (window)); | ||
2094 | 172 | + } | ||
2095 | 173 | } | ||
2096 | 174 | } | ||
2097 | 175 | } | ||
2098 | 176 | @@ -634,19 +690,28 @@ | ||
2099 | 177 | const char *startup_id) | ||
2100 | 178 | { | ||
2101 | 179 | NautilusWindow *window; | ||
2102 | 180 | + NautilusWindowSlot *slot; | ||
2103 | 181 | GList *sel_list = NULL; | ||
2104 | 182 | |||
2105 | 183 | nautilus_profile_start (NULL); | ||
2106 | 184 | |||
2107 | 185 | - window = nautilus_application_create_window (application, gdk_screen_get_default ()); | ||
2108 | 186 | - gtk_window_set_startup_id (GTK_WINDOW (window), startup_id); | ||
2109 | 187 | + slot = get_window_slot_for_location (application, location); | ||
2110 | 188 | + | ||
2111 | 189 | + if (!slot) { | ||
2112 | 190 | + window = nautilus_application_create_window (application, gdk_screen_get_default ()); | ||
2113 | 191 | + slot = nautilus_window_get_active_slot (window); | ||
2114 | 192 | + } else { | ||
2115 | 193 | + window = nautilus_window_slot_get_window (slot); | ||
2116 | 194 | + nautilus_window_set_active_slot (window, slot); | ||
2117 | 195 | + gtk_window_present (GTK_WINDOW (window)); | ||
2118 | 196 | + } | ||
2119 | 197 | |||
2120 | 198 | if (selection != NULL) { | ||
2121 | 199 | sel_list = g_list_prepend (sel_list, nautilus_file_get (selection)); | ||
2122 | 200 | } | ||
2123 | 201 | |||
2124 | 202 | - nautilus_window_slot_open_location_full (nautilus_window_get_active_slot (window), location, | ||
2125 | 203 | - 0, sel_list, NULL, NULL); | ||
2126 | 204 | + gtk_window_set_startup_id (GTK_WINDOW (window), startup_id); | ||
2127 | 205 | + nautilus_window_slot_open_location_full (slot, location, 0, sel_list, NULL, NULL); | ||
2128 | 206 | |||
2129 | 207 | if (sel_list != NULL) { | ||
2130 | 208 | nautilus_file_list_free (sel_list); | ||
2131 | 209 | @@ -665,7 +730,9 @@ | ||
2132 | 210 | |||
2133 | 211 | DEBUG ("Open called on the GApplication instance; %d files", n_files); | ||
2134 | 212 | |||
2135 | 213 | - open_windows (self, files, n_files, | ||
2136 | 214 | + gboolean force_new = (g_strcmp0 (hint, "new-window") == 0); | ||
2137 | 215 | + | ||
2138 | 216 | + open_windows (self, force_new, files, n_files, | ||
2139 | 217 | gdk_screen_get_default (), | ||
2140 | 218 | self->priv->geometry); | ||
2141 | 219 | } | ||
2142 | 220 | @@ -1059,6 +1126,7 @@ | ||
2143 | 221 | gboolean version = FALSE; | ||
2144 | 222 | gboolean browser = FALSE; | ||
2145 | 223 | gboolean kill_shell = FALSE; | ||
2146 | 224 | + gboolean open_new_window = FALSE; | ||
2147 | 225 | gboolean no_default_window = FALSE; | ||
2148 | 226 | gchar **remaining = NULL; | ||
2149 | 227 | NautilusApplication *self = NAUTILUS_APPLICATION (application); | ||
2150 | 228 | @@ -1075,6 +1143,8 @@ | ||
2151 | 229 | N_("Show the version of the program."), NULL }, | ||
2152 | 230 | { "geometry", 'g', 0, G_OPTION_ARG_STRING, &self->priv->geometry, | ||
2153 | 231 | N_("Create the initial window with the given geometry."), N_("GEOMETRY") }, | ||
2154 | 232 | + { "new-window", 'w', 0, G_OPTION_ARG_NONE, &open_new_window, | ||
2155 | 233 | + N_("Always open a new window for browsing specified URIs"), NULL }, | ||
2156 | 234 | { "no-default-window", 'n', 0, G_OPTION_ARG_NONE, &no_default_window, | ||
2157 | 235 | N_("Only create windows for explicitly specified URIs."), NULL }, | ||
2158 | 236 | { "no-desktop", '\0', 0, G_OPTION_ARG_NONE, &self->priv->no_desktop, | ||
2159 | 237 | @@ -1089,7 +1159,6 @@ | ||
2160 | 238 | GError *error = NULL; | ||
2161 | 239 | gint argc = 0; | ||
2162 | 240 | gchar **argv = NULL; | ||
2163 | 241 | - | ||
2164 | 242 | *exit_status = EXIT_SUCCESS; | ||
2165 | 243 | |||
2166 | 244 | nautilus_profile_start (NULL); | ||
2167 | 245 | @@ -1127,8 +1196,8 @@ | ||
2168 | 246 | goto out; | ||
2169 | 247 | } | ||
2170 | 248 | |||
2171 | 249 | - DEBUG ("Parsing local command line, no_default_window %d, quit %d, " | ||
2172 | 250 | - "self checks %d, no_desktop %d", | ||
2173 | 251 | + DEBUG ("Parsing local command line, open_new_window %d, no_default_window %d, " | ||
2174 | 252 | + "quit %d, self checks %d, no_desktop %d", open_new_window, | ||
2175 | 253 | no_default_window, kill_shell, perform_self_check, self->priv->no_desktop); | ||
2176 | 254 | |||
2177 | 255 | g_application_register (application, NULL, &error); | ||
2178 | 256 | @@ -1185,7 +1254,7 @@ | ||
2179 | 257 | |||
2180 | 258 | /* Invoke "Open" to create new windows */ | ||
2181 | 259 | if (len > 0) { | ||
2182 | 260 | - g_application_open (application, files, len, ""); | ||
2183 | 261 | + g_application_open (application, files, len, open_new_window ? "new-window" : ""); | ||
2184 | 262 | } | ||
2185 | 263 | |||
2186 | 264 | for (idx = 0; idx < len; idx++) { | ||
2187 | 265 | Index: nautilus/src/nautilus-window-manage-views.c | ||
2188 | 266 | =================================================================== | ||
2189 | 267 | --- nautilus.orig/src/nautilus-window-manage-views.c 2013-03-12 19:34:31.066512196 +0100 | ||
2190 | 268 | +++ nautilus/src/nautilus-window-manage-views.c 2013-03-12 19:34:31.062512185 +0100 | ||
2191 | 269 | @@ -427,6 +427,7 @@ | ||
2192 | 270 | NautilusWindowSlot *target_slot; | ||
2193 | 271 | NautilusWindowOpenFlags slot_flags; | ||
2194 | 272 | GFile *old_location; | ||
2195 | 273 | + GList *old_selection; | ||
2196 | 274 | char *old_uri, *new_uri; | ||
2197 | 275 | int new_slot_position; | ||
2198 | 276 | gboolean use_same; | ||
2199 | 277 | @@ -525,9 +526,14 @@ | ||
2200 | 278 | } | ||
2201 | 279 | } | ||
2202 | 280 | |||
2203 | 281 | - if (target_window == window && target_slot == slot && | ||
2204 | 282 | + old_selection = NULL; | ||
2205 | 283 | + if (slot->content_view != NULL) { | ||
2206 | 284 | + old_selection = nautilus_view_get_selection (slot->content_view); | ||
2207 | 285 | + } | ||
2208 | 286 | + | ||
2209 | 287 | + if (target_window == window && target_slot == slot && !is_desktop && | ||
2210 | 288 | old_location && g_file_equal (old_location, location) && | ||
2211 | 289 | - !is_desktop) { | ||
2212 | 290 | + nautilus_file_selection_equal (old_selection, new_selection)) { | ||
2213 | 291 | |||
2214 | 292 | if (callback != NULL) { | ||
2215 | 293 | callback (window, location, NULL, user_data); | ||
2216 | 294 | @@ -537,7 +543,7 @@ | ||
2217 | 295 | } | ||
2218 | 296 | |||
2219 | 297 | slot->pending_use_default_location = ((flags & NAUTILUS_WINDOW_OPEN_FLAG_USE_DEFAULT_LOCATION) != 0); | ||
2220 | 298 | - begin_location_change (target_slot, location, old_location, new_selection, | ||
2221 | 299 | + begin_location_change (target_slot, location, old_location, new_selection, | ||
2222 | 300 | NAUTILUS_LOCATION_CHANGE_STANDARD, 0, NULL, callback, user_data); | ||
2223 | 301 | |||
2224 | 302 | done: | ||
2225 | 303 | 0 | ||
2226 | === removed file 'debian/patches/git_search_dir_incremental_load.patch' | |||
2227 | --- debian/patches/git_search_dir_incremental_load.patch 2013-03-22 17:44:56 +0000 | |||
2228 | +++ debian/patches/git_search_dir_incremental_load.patch 1970-01-01 00:00:00 +0000 | |||
2229 | @@ -1,148 +0,0 @@ | |||
2230 | 1 | From e153ba8046f52680b98a5fc209c2b4161b193d2d Mon Sep 17 00:00:00 2001 | ||
2231 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
2232 | 3 | Date: Fri, 12 Oct 2012 23:04:14 +0000 | ||
2233 | 4 | Subject: search-directory: enable incremental directory load | ||
2234 | 5 | |||
2235 | 6 | Instead of emitting nautilus_directory_done_loading() from the | ||
2236 | 7 | "finished" callback, do it as soon as we receive the first batch of | ||
2237 | 8 | hits. The rest of the results will be added to the directory in | ||
2238 | 9 | background. | ||
2239 | 10 | |||
2240 | 11 | https://bugzilla.gnome.org/show_bug.cgi?id=663242 | ||
2241 | 12 | --- | ||
2242 | 13 | diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c | ||
2243 | 14 | index 5da6f7a..510d319 100644 | ||
2244 | 15 | --- a/libnautilus-private/nautilus-search-directory.c | ||
2245 | 16 | +++ b/libnautilus-private/nautilus-search-directory.c | ||
2246 | 17 | @@ -46,7 +46,7 @@ struct NautilusSearchDirectoryDetails { | ||
2247 | 18 | NautilusSearchEngine *engine; | ||
2248 | 19 | |||
2249 | 20 | gboolean search_running; | ||
2250 | 21 | - gboolean search_finished; | ||
2251 | 22 | + gboolean search_loaded; | ||
2252 | 23 | |||
2253 | 24 | GList *files; | ||
2254 | 25 | GHashTable *files_hash; | ||
2255 | 26 | @@ -90,7 +90,6 @@ G_DEFINE_TYPE (NautilusSearchDirectory, nautilus_search_directory, | ||
2256 | 27 | static GParamSpec *properties[NUM_PROPERTIES] = { NULL, }; | ||
2257 | 28 | |||
2258 | 29 | static void search_engine_hits_added (NautilusSearchEngine *engine, GList *hits, NautilusSearchDirectory *search); | ||
2259 | 30 | -static void search_engine_finished (NautilusSearchEngine *engine, NautilusSearchDirectory *search); | ||
2260 | 31 | static void search_engine_error (NautilusSearchEngine *engine, const char *error, NautilusSearchDirectory *search); | ||
2261 | 32 | static void search_callback_file_ready_callback (NautilusFile *file, gpointer data); | ||
2262 | 33 | static void file_changed (NautilusFile *file, NautilusSearchDirectory *search); | ||
2263 | 34 | @@ -161,7 +160,7 @@ start_search (NautilusSearchDirectory *search) | ||
2264 | 35 | |||
2265 | 36 | /* We need to start the search engine */ | ||
2266 | 37 | search->details->search_running = TRUE; | ||
2267 | 38 | - search->details->search_finished = FALSE; | ||
2268 | 39 | + search->details->search_loaded = FALSE; | ||
2269 | 40 | |||
2270 | 41 | set_hidden_files (search); | ||
2271 | 42 | nautilus_search_provider_set_query (NAUTILUS_SEARCH_PROVIDER (search->details->engine), | ||
2272 | 43 | @@ -436,7 +435,7 @@ search_call_when_ready (NautilusDirectory *directory, | ||
2273 | 44 | search_callback->wait_for_attributes = file_attributes; | ||
2274 | 45 | search_callback->wait_for_file_list = wait_for_file_list; | ||
2275 | 46 | |||
2276 | 47 | - if (wait_for_file_list && !search->details->search_finished) { | ||
2277 | 48 | + if (wait_for_file_list && !search->details->search_loaded) { | ||
2278 | 49 | /* Add it to the pending callback list, which will be | ||
2279 | 50 | * processed when the directory has finished loading | ||
2280 | 51 | */ | ||
2281 | 52 | @@ -494,6 +493,14 @@ search_cancel_callback (NautilusDirectory *directory, | ||
2282 | 53 | } | ||
2283 | 54 | } | ||
2284 | 55 | |||
2285 | 56 | +static void | ||
2286 | 57 | +search_callback_add_pending_file_callbacks (SearchCallback *callback) | ||
2287 | 58 | +{ | ||
2288 | 59 | + callback->file_list = nautilus_file_list_copy (callback->search_directory->details->files); | ||
2289 | 60 | + callback->non_ready_hash = file_list_to_hash_table (callback->search_directory->details->files); | ||
2290 | 61 | + | ||
2291 | 62 | + search_callback_add_file_callbacks (callback); | ||
2292 | 63 | +} | ||
2293 | 64 | |||
2294 | 65 | static void | ||
2295 | 66 | search_engine_hits_added (NautilusSearchEngine *engine, GList *hits, | ||
2296 | 67 | @@ -542,15 +549,20 @@ search_engine_hits_added (NautilusSearchEngine *engine, GList *hits, | ||
2297 | 68 | file = nautilus_directory_get_corresponding_file (NAUTILUS_DIRECTORY (search)); | ||
2298 | 69 | nautilus_file_emit_changed (file); | ||
2299 | 70 | nautilus_file_unref (file); | ||
2300 | 71 | -} | ||
2301 | 72 | |||
2302 | 73 | -static void | ||
2303 | 74 | -search_callback_add_pending_file_callbacks (SearchCallback *callback) | ||
2304 | 75 | -{ | ||
2305 | 76 | - callback->file_list = nautilus_file_list_copy (callback->search_directory->details->files); | ||
2306 | 77 | - callback->non_ready_hash = file_list_to_hash_table (callback->search_directory->details->files); | ||
2307 | 78 | + if (!search->details->search_loaded) { | ||
2308 | 79 | + search->details->search_loaded = TRUE; | ||
2309 | 80 | + nautilus_directory_emit_done_loading (NAUTILUS_DIRECTORY (search)); | ||
2310 | 81 | |||
2311 | 82 | - search_callback_add_file_callbacks (callback); | ||
2312 | 83 | + /* Add all file callbacks */ | ||
2313 | 84 | + g_list_foreach (search->details->pending_callback_list, | ||
2314 | 85 | + (GFunc)search_callback_add_pending_file_callbacks, NULL); | ||
2315 | 86 | + search->details->callback_list = g_list_concat (search->details->callback_list, | ||
2316 | 87 | + search->details->pending_callback_list); | ||
2317 | 88 | + | ||
2318 | 89 | + g_list_free (search->details->pending_callback_list); | ||
2319 | 90 | + search->details->pending_callback_list = NULL; | ||
2320 | 91 | + } | ||
2321 | 92 | } | ||
2322 | 93 | |||
2323 | 94 | static void | ||
2324 | 95 | @@ -566,23 +578,6 @@ search_engine_error (NautilusSearchEngine *engine, const char *error_message, Na | ||
2325 | 96 | } | ||
2326 | 97 | |||
2327 | 98 | static void | ||
2328 | 99 | -search_engine_finished (NautilusSearchEngine *engine, NautilusSearchDirectory *search) | ||
2329 | 100 | -{ | ||
2330 | 101 | - search->details->search_finished = TRUE; | ||
2331 | 102 | - | ||
2332 | 103 | - nautilus_directory_emit_done_loading (NAUTILUS_DIRECTORY (search)); | ||
2333 | 104 | - | ||
2334 | 105 | - /* Add all file callbacks */ | ||
2335 | 106 | - g_list_foreach (search->details->pending_callback_list, | ||
2336 | 107 | - (GFunc)search_callback_add_pending_file_callbacks, NULL); | ||
2337 | 108 | - search->details->callback_list = g_list_concat (search->details->callback_list, | ||
2338 | 109 | - search->details->pending_callback_list); | ||
2339 | 110 | - | ||
2340 | 111 | - g_list_free (search->details->pending_callback_list); | ||
2341 | 112 | - search->details->pending_callback_list = NULL; | ||
2342 | 113 | -} | ||
2343 | 114 | - | ||
2344 | 115 | -static void | ||
2345 | 116 | search_force_reload (NautilusDirectory *directory) | ||
2346 | 117 | { | ||
2347 | 118 | NautilusSearchDirectory *search; | ||
2348 | 119 | @@ -593,7 +588,7 @@ search_force_reload (NautilusDirectory *directory) | ||
2349 | 120 | return; | ||
2350 | 121 | } | ||
2351 | 122 | |||
2352 | 123 | - search->details->search_finished = FALSE; | ||
2353 | 124 | + search->details->search_loaded = FALSE; | ||
2354 | 125 | |||
2355 | 126 | /* Remove file monitors */ | ||
2356 | 127 | reset_file_list (search); | ||
2357 | 128 | @@ -608,7 +603,7 @@ search_are_all_files_seen (NautilusDirectory *directory) | ||
2358 | 129 | search = NAUTILUS_SEARCH_DIRECTORY (directory); | ||
2359 | 130 | |||
2360 | 131 | return (!search->details->query || | ||
2361 | 132 | - search->details->search_finished); | ||
2362 | 133 | + search->details->search_loaded); | ||
2363 | 134 | } | ||
2364 | 135 | |||
2365 | 136 | static gboolean | ||
2366 | 137 | @@ -760,9 +755,6 @@ nautilus_search_directory_init (NautilusSearchDirectory *search) | ||
2367 | 138 | g_signal_connect (search->details->engine, "hits-added", | ||
2368 | 139 | G_CALLBACK (search_engine_hits_added), | ||
2369 | 140 | search); | ||
2370 | 141 | - g_signal_connect (search->details->engine, "finished", | ||
2371 | 142 | - G_CALLBACK (search_engine_finished), | ||
2372 | 143 | - search); | ||
2373 | 144 | g_signal_connect (search->details->engine, "error", | ||
2374 | 145 | G_CALLBACK (search_engine_error), | ||
2375 | 146 | search); | ||
2376 | 147 | -- | ||
2377 | 148 | cgit v0.9.1 | ||
2378 | 149 | 0 | ||
2379 | === removed file 'debian/patches/git_search_dont_follow_symlinks.patch' | |||
2380 | --- debian/patches/git_search_dont_follow_symlinks.patch 2013-04-16 10:17:12 +0000 | |||
2381 | +++ debian/patches/git_search_dont_follow_symlinks.patch 1970-01-01 00:00:00 +0000 | |||
2382 | @@ -1,26 +0,0 @@ | |||
2383 | 1 | From 60234999479df2b890f532472ef5c9d312cfe0c9 Mon Sep 17 00:00:00 2001 | ||
2384 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
2385 | 3 | Date: Thu, 04 Apr 2013 20:30:49 +0000 | ||
2386 | 4 | Subject: search-engine-simple: don't follow symlinks when descending | ||
2387 | 5 | |||
2388 | 6 | It's inconsistent with "find" and it can yield to unexpectedly large | ||
2389 | 7 | result sets. | ||
2390 | 8 | Do not follow symlinks when recursing the search down the hierarchy. | ||
2391 | 9 | |||
2392 | 10 | https://bugzilla.gnome.org/show_bug.cgi?id=697181 | ||
2393 | 11 | --- | ||
2394 | 12 | diff --git a/libnautilus-private/nautilus-search-engine-simple.c b/libnautilus-private/nautilus-search-engine-simple.c | ||
2395 | 13 | index 87ff363..9c80d2e 100644 | ||
2396 | 14 | --- a/libnautilus-private/nautilus-search-engine-simple.c | ||
2397 | 15 | +++ b/libnautilus-private/nautilus-search-engine-simple.c | ||
2398 | 16 | @@ -217,7 +217,8 @@ visit_directory (GFile *dir, SearchThreadData *data) | ||
2399 | 17 | : | ||
2400 | 18 | STD_ATTRIBUTES | ||
2401 | 19 | , | ||
2402 | 20 | - 0, data->cancellable, NULL); | ||
2403 | 21 | + G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, | ||
2404 | 22 | + data->cancellable, NULL); | ||
2405 | 23 | |||
2406 | 24 | if (enumerator == NULL) { | ||
2407 | 25 | return; | ||
2408 | 26 | -- | ||
2409 | 27 | 0 | ||
2410 | === removed file 'debian/patches/git_search_recursive_dir.patch' | |||
2411 | --- debian/patches/git_search_recursive_dir.patch 2013-03-22 17:44:56 +0000 | |||
2412 | +++ debian/patches/git_search_recursive_dir.patch 1970-01-01 00:00:00 +0000 | |||
2413 | @@ -1,78 +0,0 @@ | |||
2414 | 1 | From 6a1cdcf6a68ed4f63890bf3a3ac2a0cca121321e Mon Sep 17 00:00:00 2001 | ||
2415 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
2416 | 3 | Date: Thu, 18 Oct 2012 21:16:41 +0000 | ||
2417 | 4 | Subject: search-directory: make the simple engine recursive | ||
2418 | 5 | |||
2419 | 6 | https://bugzilla.gnome.org/show_bug.cgi?id=325146 | ||
2420 | 7 | --- | ||
2421 | 8 | diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c | ||
2422 | 9 | index 510d319..06901b6 100644 | ||
2423 | 10 | --- a/libnautilus-private/nautilus-search-directory.c | ||
2424 | 11 | +++ b/libnautilus-private/nautilus-search-directory.c | ||
2425 | 12 | @@ -145,6 +145,7 @@ static void | ||
2426 | 13 | start_search (NautilusSearchDirectory *search) | ||
2427 | 14 | { | ||
2428 | 15 | NautilusSearchEngineModel *model_provider; | ||
2429 | 16 | + NautilusSearchEngineSimple *simple_provider; | ||
2430 | 17 | |||
2431 | 18 | if (!search->details->query) { | ||
2432 | 19 | return; | ||
2433 | 20 | @@ -169,6 +170,9 @@ start_search (NautilusSearchDirectory *search) | ||
2434 | 21 | model_provider = nautilus_search_engine_get_model_provider (search->details->engine); | ||
2435 | 22 | nautilus_search_engine_model_set_model (model_provider, search->details->base_model); | ||
2436 | 23 | |||
2437 | 24 | + simple_provider = nautilus_search_engine_get_simple_provider (search->details->engine); | ||
2438 | 25 | + g_object_set (simple_provider, "recursive", TRUE, NULL); | ||
2439 | 26 | + | ||
2440 | 27 | reset_file_list (search); | ||
2441 | 28 | |||
2442 | 29 | nautilus_search_provider_start (NAUTILUS_SEARCH_PROVIDER (search->details->engine)); | ||
2443 | 30 | diff --git a/libnautilus-private/nautilus-search-engine-simple.h b/libnautilus-private/nautilus-search-engine-simple.h | ||
2444 | 31 | index bd11197..93f491e 100644 | ||
2445 | 32 | --- a/libnautilus-private/nautilus-search-engine-simple.h | ||
2446 | 33 | +++ b/libnautilus-private/nautilus-search-engine-simple.h | ||
2447 | 34 | @@ -24,8 +24,6 @@ | ||
2448 | 35 | #ifndef NAUTILUS_SEARCH_ENGINE_SIMPLE_H | ||
2449 | 36 | #define NAUTILUS_SEARCH_ENGINE_SIMPLE_H | ||
2450 | 37 | |||
2451 | 38 | -#include <libnautilus-private/nautilus-search-engine.h> | ||
2452 | 39 | - | ||
2453 | 40 | #define NAUTILUS_TYPE_SEARCH_ENGINE_SIMPLE (nautilus_search_engine_simple_get_type ()) | ||
2454 | 41 | #define NAUTILUS_SEARCH_ENGINE_SIMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SEARCH_ENGINE_SIMPLE, NautilusSearchEngineSimple)) | ||
2455 | 42 | #define NAUTILUS_SEARCH_ENGINE_SIMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SEARCH_ENGINE_SIMPLE, NautilusSearchEngineSimpleClass)) | ||
2456 | 43 | diff --git a/libnautilus-private/nautilus-search-engine.c b/libnautilus-private/nautilus-search-engine.c | ||
2457 | 44 | index c92b745..31fa941 100644 | ||
2458 | 45 | --- a/libnautilus-private/nautilus-search-engine.c | ||
2459 | 46 | +++ b/libnautilus-private/nautilus-search-engine.c | ||
2460 | 47 | @@ -313,3 +313,9 @@ nautilus_search_engine_get_model_provider (NautilusSearchEngine *engine) | ||
2461 | 48 | { | ||
2462 | 49 | return engine->details->model; | ||
2463 | 50 | } | ||
2464 | 51 | + | ||
2465 | 52 | +NautilusSearchEngineSimple * | ||
2466 | 53 | +nautilus_search_engine_get_simple_provider (NautilusSearchEngine *engine) | ||
2467 | 54 | +{ | ||
2468 | 55 | + return engine->details->simple; | ||
2469 | 56 | +} | ||
2470 | 57 | diff --git a/libnautilus-private/nautilus-search-engine.h b/libnautilus-private/nautilus-search-engine.h | ||
2471 | 58 | index b9cefad..916dbdd 100644 | ||
2472 | 59 | --- a/libnautilus-private/nautilus-search-engine.h | ||
2473 | 60 | +++ b/libnautilus-private/nautilus-search-engine.h | ||
2474 | 61 | @@ -28,6 +28,7 @@ | ||
2475 | 62 | |||
2476 | 63 | #include <libnautilus-private/nautilus-directory.h> | ||
2477 | 64 | #include <libnautilus-private/nautilus-search-engine-model.h> | ||
2478 | 65 | +#include <libnautilus-private/nautilus-search-engine-simple.h> | ||
2479 | 66 | |||
2480 | 67 | #define NAUTILUS_TYPE_SEARCH_ENGINE (nautilus_search_engine_get_type ()) | ||
2481 | 68 | #define NAUTILUS_SEARCH_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SEARCH_ENGINE, NautilusSearchEngine)) | ||
2482 | 69 | @@ -52,5 +53,7 @@ GType nautilus_search_engine_get_type (void); | ||
2483 | 70 | NautilusSearchEngine *nautilus_search_engine_new (void); | ||
2484 | 71 | NautilusSearchEngineModel * | ||
2485 | 72 | nautilus_search_engine_get_model_provider (NautilusSearchEngine *engine); | ||
2486 | 73 | +NautilusSearchEngineSimple * | ||
2487 | 74 | + nautilus_search_engine_get_simple_provider (NautilusSearchEngine *engine); | ||
2488 | 75 | |||
2489 | 76 | #endif /* NAUTILUS_SEARCH_ENGINE_H */ | ||
2490 | 77 | -- | ||
2491 | 78 | cgit v0.9.1 | ||
2492 | 79 | 0 | ||
2493 | === removed file 'debian/patches/git_show_accelerators.patch' | |||
2494 | --- debian/patches/git_show_accelerators.patch 2013-03-07 00:19:06 +0000 | |||
2495 | +++ debian/patches/git_show_accelerators.patch 1970-01-01 00:00:00 +0000 | |||
2496 | @@ -1,76 +0,0 @@ | |||
2497 | 1 | From 1c2b1e33346d2b06dedff3d81fc36e679e2d0761 Mon Sep 17 00:00:00 2001 | ||
2498 | 2 | From: Cosimo Cecchi <cosimoc@gnome.org> | ||
2499 | 3 | Date: Thu, 14 Feb 2013 14:48:09 +0000 | ||
2500 | 4 | Subject: ui: specify accelerators=true for our menu definitions | ||
2501 | 5 | |||
2502 | 6 | This will make GtkMenuButton do the right thing and show accelerators in | ||
2503 | 7 | the popup. | ||
2504 | 8 | Thanks to Juanjo Marín for the fix. | ||
2505 | 9 | |||
2506 | 10 | https://bugzilla.gnome.org/show_bug.cgi?id=680962 | ||
2507 | 11 | --- | ||
2508 | 12 | diff --git a/src/nautilus-canvas-view-ui.xml b/src/nautilus-canvas-view-ui.xml | ||
2509 | 13 | index 5a3b313..1caffe1 100644 | ||
2510 | 14 | --- a/src/nautilus-canvas-view-ui.xml | ||
2511 | 15 | +++ b/src/nautilus-canvas-view-ui.xml | ||
2512 | 16 | @@ -1,5 +1,5 @@ | ||
2513 | 17 | <ui> | ||
2514 | 18 | - <popup name="ViewMenu"> | ||
2515 | 19 | + <popup name="ViewMenu" accelerators="true"> | ||
2516 | 20 | <placeholder name="Layout Options"> | ||
2517 | 21 | <menuitem name="Manual Layout" action="Manual Layout"/> | ||
2518 | 22 | <placeholder name="Auto Layout"> | ||
2519 | 23 | diff --git a/src/nautilus-directory-view-ui.xml b/src/nautilus-directory-view-ui.xml | ||
2520 | 24 | index efdb9d1..e164fec 100644 | ||
2521 | 25 | --- a/src/nautilus-directory-view-ui.xml | ||
2522 | 26 | +++ b/src/nautilus-directory-view-ui.xml | ||
2523 | 27 | @@ -4,13 +4,13 @@ | ||
2524 | 28 | <accelerator action="OpenCloseParent"/> | ||
2525 | 29 | <accelerator action="PropertiesAccel"/> | ||
2526 | 30 | <accelerator action="RenameSelectAll"/> | ||
2527 | 31 | -<popup name="ViewMenu"> | ||
2528 | 32 | +<popup name="ViewMenu" accelerators="true"> | ||
2529 | 33 | <placeholder name="View Details"> | ||
2530 | 34 | <menuitem name="Reset to Defaults" action="Reset to Defaults"/> | ||
2531 | 35 | <menuitem name="Show Hidden Files" action="Show Hidden Files"/> | ||
2532 | 36 | </placeholder> | ||
2533 | 37 | </popup> | ||
2534 | 38 | -<popup name="ActionMenu"> | ||
2535 | 39 | +<popup name="ActionMenu" accelerators="true"> | ||
2536 | 40 | <placeholder name="New Items Placeholder"> | ||
2537 | 41 | <menuitem name="New Folder" action="New Folder"/> | ||
2538 | 42 | <menuitem name="New Folder with Selection" action="New Folder with Selection"/> | ||
2539 | 43 | diff --git a/src/nautilus-list-view-ui.xml b/src/nautilus-list-view-ui.xml | ||
2540 | 44 | index 22ca858..20f336d 100644 | ||
2541 | 45 | --- a/src/nautilus-list-view-ui.xml | ||
2542 | 46 | +++ b/src/nautilus-list-view-ui.xml | ||
2543 | 47 | @@ -1,5 +1,5 @@ | ||
2544 | 48 | <ui> | ||
2545 | 49 | - <popup name="ViewMenu"> | ||
2546 | 50 | + <popup name="ViewMenu" accelerators="true"> | ||
2547 | 51 | <placeholder name="View Details"> | ||
2548 | 52 | <menuitem name="Visible Columns" action="Visible Columns"/> | ||
2549 | 53 | </placeholder> | ||
2550 | 54 | diff --git a/src/nautilus-shell-ui.xml b/src/nautilus-shell-ui.xml | ||
2551 | 55 | index 2fb2961..4cb7348 100644 | ||
2552 | 56 | --- a/src/nautilus-shell-ui.xml | ||
2553 | 57 | +++ b/src/nautilus-shell-ui.xml | ||
2554 | 58 | @@ -15,7 +15,7 @@ | ||
2555 | 59 | <accelerator action="ZoomOutAccel"/> | ||
2556 | 60 | <accelerator action="PromptLocationAccel"/> | ||
2557 | 61 | <accelerator action="ReloadAccel"/> | ||
2558 | 62 | -<popup name="ViewMenu"> | ||
2559 | 63 | +<popup name="ViewMenu" accelerators="true"> | ||
2560 | 64 | <placeholder name="Zoom Items Placeholder"> | ||
2561 | 65 | <menuitem name="Zoom In" action="Zoom In"/> | ||
2562 | 66 | <menuitem name="Zoom Out" action="Zoom Out"/> | ||
2563 | 67 | @@ -33,7 +33,7 @@ | ||
2564 | 68 | <separator/> | ||
2565 | 69 | <placeholder name="View Details"/> | ||
2566 | 70 | </popup> | ||
2567 | 71 | -<popup name="ActionMenu"> | ||
2568 | 72 | +<popup name="ActionMenu" accelerators="true"> | ||
2569 | 73 | <placeholder name="New Items Placeholder"> | ||
2570 | 74 | <menuitem name="New Tab" action="New Tab"/> | ||
2571 | 75 | <menuitem name="New Window" action="New Window"/> | ||
2572 | 76 | |||
2573 | 77 | 0 | ||
2574 | === removed file 'debian/patches/git_single_filesystem_count.patch' | |||
2575 | --- debian/patches/git_single_filesystem_count.patch 2013-01-15 03:21:01 +0000 | |||
2576 | +++ debian/patches/git_single_filesystem_count.patch 1970-01-01 00:00:00 +0000 | |||
2577 | @@ -1,115 +0,0 @@ | |||
2578 | 1 | From a645da5f1043c59203fd194fe85b6976d75d2ece Mon Sep 17 00:00:00 2001 | ||
2579 | 2 | From: Phillip Susi <psusi@ubuntu.com> | ||
2580 | 3 | Date: Mon, 17 Dec 2012 14:11:54 +0000 | ||
2581 | 4 | Subject: directory: limit deep scount (folder contents and size) to one filesystem | ||
2582 | 5 | |||
2583 | 6 | When getting the size of the root directory, nautilus was descending | ||
2584 | 7 | into other filesystems including /proc, causing it to report nonsensical | ||
2585 | 8 | sizes. | ||
2586 | 9 | Store the fsid of the starting directory, and do not recurse into | ||
2587 | 10 | other mount points. | ||
2588 | 11 | |||
2589 | 12 | https://bugzilla.gnome.org/show_bug.cgi?id=629394 | ||
2590 | 13 | https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/585472 | ||
2591 | 14 | --- | ||
2592 | 15 | diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c | ||
2593 | 16 | index f1d53f3..6961ae0 100644 | ||
2594 | 17 | --- a/libnautilus-private/nautilus-directory-async.c | ||
2595 | 18 | +++ b/libnautilus-private/nautilus-directory-async.c | ||
2596 | 19 | @@ -135,6 +135,7 @@ struct DeepCountState { | ||
2597 | 20 | GFile *deep_count_location; | ||
2598 | 21 | GList *deep_count_subdirectories; | ||
2599 | 22 | GArray *seen_deep_count_inodes; | ||
2600 | 23 | + char *fs_id; | ||
2601 | 24 | }; | ||
2602 | 25 | |||
2603 | 26 | |||
2604 | 27 | @@ -2579,6 +2580,7 @@ deep_count_one (DeepCountState *state, | ||
2605 | 28 | NautilusFile *file; | ||
2606 | 29 | GFile *subdir; | ||
2607 | 30 | gboolean is_seen_inode; | ||
2608 | 31 | + const char *fs_id; | ||
2609 | 32 | |||
2610 | 33 | if (should_skip_file (NULL, info)) { | ||
2611 | 34 | return; | ||
2612 | 35 | @@ -2596,10 +2598,13 @@ deep_count_one (DeepCountState *state, | ||
2613 | 36 | file->details->deep_directory_count += 1; | ||
2614 | 37 | |||
2615 | 38 | /* Record the fact that we have to descend into this directory. */ | ||
2616 | 39 | - | ||
2617 | 40 | - subdir = g_file_get_child (state->deep_count_location, g_file_info_get_name (info)); | ||
2618 | 41 | - state->deep_count_subdirectories = g_list_prepend | ||
2619 | 42 | - (state->deep_count_subdirectories, subdir); | ||
2620 | 43 | + fs_id = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILESYSTEM); | ||
2621 | 44 | + if (g_strcmp0 (fs_id, state->fs_id) == 0) { | ||
2622 | 45 | + /* only if it is on the same filesystem */ | ||
2623 | 46 | + subdir = g_file_get_child (state->deep_count_location, g_file_info_get_name (info)); | ||
2624 | 47 | + state->deep_count_subdirectories = g_list_prepend | ||
2625 | 48 | + (state->deep_count_subdirectories, subdir); | ||
2626 | 49 | + } | ||
2627 | 50 | } else { | ||
2628 | 51 | /* Even non-regular files count as files. */ | ||
2629 | 52 | file->details->deep_file_count += 1; | ||
2630 | 53 | @@ -2627,6 +2632,7 @@ deep_count_state_free (DeepCountState *state) | ||
2631 | 54 | } | ||
2632 | 55 | g_list_free_full (state->deep_count_subdirectories, g_object_unref); | ||
2633 | 56 | g_array_free (state->seen_deep_count_inodes, TRUE); | ||
2634 | 57 | + g_free (state->fs_id); | ||
2635 | 58 | g_free (state); | ||
2636 | 59 | } | ||
2637 | 60 | |||
2638 | 61 | @@ -2773,6 +2779,7 @@ deep_count_load (DeepCountState *state, GFile *location) | ||
2639 | 62 | G_FILE_ATTRIBUTE_STANDARD_SIZE "," | ||
2640 | 63 | G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "," | ||
2641 | 64 | G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "," | ||
2642 | 65 | + G_FILE_ATTRIBUTE_ID_FILESYSTEM "," | ||
2643 | 66 | G_FILE_ATTRIBUTE_UNIX_INODE, | ||
2644 | 67 | G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, /* flags */ | ||
2645 | 68 | G_PRIORITY_LOW, /* prio */ | ||
2646 | 69 | @@ -2804,6 +2811,25 @@ deep_count_stop (NautilusDirectory *directory) | ||
2647 | 70 | } | ||
2648 | 71 | |||
2649 | 72 | static void | ||
2650 | 73 | +deep_count_got_info (GObject *source_object, | ||
2651 | 74 | + GAsyncResult *res, | ||
2652 | 75 | + gpointer user_data) | ||
2653 | 76 | +{ | ||
2654 | 77 | + GFileInfo *info; | ||
2655 | 78 | + const char *id; | ||
2656 | 79 | + GFile *file = (GFile *)source_object; | ||
2657 | 80 | + DeepCountState *state = (DeepCountState *)user_data; | ||
2658 | 81 | + | ||
2659 | 82 | + info = g_file_query_info_finish (file, res, NULL); | ||
2660 | 83 | + if (info != NULL) { | ||
2661 | 84 | + id = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILESYSTEM); | ||
2662 | 85 | + state->fs_id = g_strdup (id); | ||
2663 | 86 | + g_object_unref (info); | ||
2664 | 87 | + } | ||
2665 | 88 | + deep_count_load (state, file); | ||
2666 | 89 | +} | ||
2667 | 90 | + | ||
2668 | 91 | +static void | ||
2669 | 92 | deep_count_start (NautilusDirectory *directory, | ||
2670 | 93 | NautilusFile *file, | ||
2671 | 94 | gboolean *doing_io) | ||
2672 | 95 | @@ -2846,11 +2872,18 @@ deep_count_start (NautilusDirectory *directory, | ||
2673 | 96 | state->directory = directory; | ||
2674 | 97 | state->cancellable = g_cancellable_new (); | ||
2675 | 98 | state->seen_deep_count_inodes = g_array_new (FALSE, TRUE, sizeof (guint64)); | ||
2676 | 99 | + state->fs_id = NULL; | ||
2677 | 100 | |||
2678 | 101 | directory->details->deep_count_in_progress = state; | ||
2679 | 102 | |||
2680 | 103 | location = nautilus_file_get_location (file); | ||
2681 | 104 | - deep_count_load (state, location); | ||
2682 | 105 | + g_file_query_info_async (location, | ||
2683 | 106 | + G_FILE_ATTRIBUTE_ID_FILESYSTEM, | ||
2684 | 107 | + G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, | ||
2685 | 108 | + G_PRIORITY_DEFAULT, | ||
2686 | 109 | + NULL, | ||
2687 | 110 | + deep_count_got_info, | ||
2688 | 111 | + state); | ||
2689 | 112 | g_object_unref (location); | ||
2690 | 113 | } | ||
2691 | 114 | |||
2692 | 115 | |||
2693 | 116 | 0 | ||
2694 | === modified file 'debian/patches/series' | |||
2695 | --- debian/patches/series 2013-06-10 16:47:24 +0000 | |||
2696 | +++ debian/patches/series 2013-06-17 03:30:40 +0000 | |||
2697 | @@ -3,8 +3,6 @@ | |||
2698 | 3 | #05_desktop_menu_export.patch | 3 | #05_desktop_menu_export.patch |
2699 | 4 | 06_never_exec_nonexec_launchers.patch | 4 | 06_never_exec_nonexec_launchers.patch |
2700 | 5 | 08_clean_session_capplet.patch | 5 | 08_clean_session_capplet.patch |
2701 | 6 | 09_no-initial-fade.patch | ||
2702 | 7 | git_reuse_already_opened_views.patch | ||
2703 | 8 | 11_copy_skipping_pager.patch | 6 | 11_copy_skipping_pager.patch |
2704 | 9 | 12_unity_launcher_support.patch | 7 | 12_unity_launcher_support.patch |
2705 | 10 | 14_bring_del_instead_ctrl_del.patch | 8 | 14_bring_del_instead_ctrl_del.patch |
2706 | @@ -14,25 +12,4 @@ | |||
2707 | 14 | 18_unity_icon_color.patch | 12 | 18_unity_icon_color.patch |
2708 | 15 | zg_activity_logging.patch | 13 | zg_activity_logging.patch |
2709 | 16 | dont_wrap_labels_after_dots.patch | 14 | dont_wrap_labels_after_dots.patch |
2710 | 17 | git_add_missing_tooltips.patch | ||
2711 | 18 | git_launcher_no_frame.patch | ||
2712 | 19 | git_restore_filename.patch | ||
2713 | 20 | git_single_filesystem_count.patch | ||
2714 | 21 | git_fix_touch_double_click.patch | ||
2715 | 22 | git_show_accelerators.patch | ||
2716 | 23 | git_add_desktop_keywords.patch | ||
2717 | 24 | git_export_opened_locations_on_dbus.patch | ||
2718 | 25 | git_margin_primary_workarea_revert.patch | ||
2719 | 26 | 10_sync_background_to_accountsservice.patch | ||
2720 | 27 | git_search_dir_incremental_load.patch | ||
2721 | 28 | git_enable_simple_search_engine.patch | ||
2722 | 29 | git_search_recursive_dir.patch | ||
2723 | 30 | git_enable_copy_from_recent.patch | ||
2724 | 31 | git_restore_from_missing_directories.patch | ||
2725 | 32 | 19_unity_open_location_xid.patch | 15 | 19_unity_open_location_xid.patch |
2726 | 33 | git_reset_view_to_defaults.patch | ||
2727 | 34 | git_rank_exact_matches_higher.patch | ||
2728 | 35 | git_rank_reversed.patch | ||
2729 | 36 | git_search_dont_follow_symlinks.patch | ||
2730 | 37 | git_eel_needs_terminal.patch | ||
2731 | 38 | 0001-trash-bar-fix-double-disconnect-handler.patch | ||
2732 | 39 | 16 | ||
2733 | === modified file 'debian/patches/zg_activity_logging.patch' | |||
2734 | --- debian/patches/zg_activity_logging.patch 2012-10-29 00:09:57 +0000 | |||
2735 | +++ debian/patches/zg_activity_logging.patch 2013-06-17 03:30:40 +0000 | |||
2736 | @@ -1,17 +1,17 @@ | |||
2737 | 1 | === modified file 'nautilus-3.3.91/libnautilus-private/Makefile.am' | 1 | === modified file 'nautilus-3.3.91/libnautilus-private/Makefile.am' |
2739 | 2 | Index: nautilus-3.5.5/libnautilus-private/Makefile.am | 2 | Index: nautilus-3.8.1/libnautilus-private/Makefile.am |
2740 | 3 | =================================================================== | 3 | =================================================================== |
2744 | 4 | --- nautilus-3.5.5.orig/libnautilus-private/Makefile.am 2012-08-07 17:53:26.000000000 +0200 | 4 | --- nautilus-3.8.1.orig/libnautilus-private/Makefile.am 2013-06-04 22:27:52.532397563 -0400 |
2745 | 5 | +++ nautilus-3.5.5/libnautilus-private/Makefile.am 2012-08-08 09:41:30.199206870 +0200 | 5 | +++ nautilus-3.8.1/libnautilus-private/Makefile.am 2013-06-04 22:27:52.520397564 -0400 |
2746 | 6 | @@ -12,6 +12,7 @@ | 6 | @@ -11,6 +11,7 @@ |
2747 | 7 | $(WARNING_CFLAGS) \ | 7 | $(WARNING_CFLAGS) \ |
2749 | 8 | $(DISABLE_DEPRECATED_CFLAGS) \ | 8 | $(DISABLE_DEPRECATED) \ |
2750 | 9 | $(TRACKER_CFLAGS) \ | 9 | $(TRACKER_CFLAGS) \ |
2751 | 10 | + `pkg-config --cflags zeitgeist-1.0` \ | 10 | + `pkg-config --cflags zeitgeist-1.0` \ |
2752 | 11 | -DDATADIR=\""$(datadir)"\" \ | 11 | -DDATADIR=\""$(datadir)"\" \ |
2753 | 12 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ | 12 | -DSYSCONFDIR=\""$(sysconfdir)"\" \ |
2754 | 13 | -DNAUTILUS_DATADIR=\""$(datadir)/nautilus"\" \ | 13 | -DNAUTILUS_DATADIR=\""$(datadir)/nautilus"\" \ |
2756 | 14 | @@ -44,6 +45,7 @@ | 14 | @@ -39,6 +40,7 @@ |
2757 | 15 | 15 | ||
2758 | 16 | libnautilus_private_la_LDFLAGS = \ | 16 | libnautilus_private_la_LDFLAGS = \ |
2759 | 17 | -no-undefined \ | 17 | -no-undefined \ |
2760 | @@ -19,10 +19,10 @@ | |||
2761 | 19 | $(NULL) | 19 | $(NULL) |
2762 | 20 | 20 | ||
2763 | 21 | libnautilus_private_la_LIBADD = \ | 21 | libnautilus_private_la_LIBADD = \ |
2765 | 22 | Index: nautilus-3.5.5/libnautilus-private/nautilus-file-operations.c | 22 | Index: nautilus-3.8.1/libnautilus-private/nautilus-file-operations.c |
2766 | 23 | =================================================================== | 23 | =================================================================== |
2769 | 24 | --- nautilus-3.5.5.orig/libnautilus-private/nautilus-file-operations.c 2012-07-16 23:37:16.000000000 +0200 | 24 | --- nautilus-3.8.1.orig/libnautilus-private/nautilus-file-operations.c 2013-06-04 22:27:52.532397563 -0400 |
2770 | 25 | +++ nautilus-3.5.5/libnautilus-private/nautilus-file-operations.c 2012-08-08 09:41:30.207206869 +0200 | 25 | +++ nautilus-3.8.1/libnautilus-private/nautilus-file-operations.c 2013-06-04 22:27:52.524397563 -0400 |
2771 | 26 | @@ -66,6 +66,8 @@ | 26 | @@ -66,6 +66,8 @@ |
2772 | 27 | #include "nautilus-file-undo-operations.h" | 27 | #include "nautilus-file-undo-operations.h" |
2773 | 28 | #include "nautilus-file-undo-manager.h" | 28 | #include "nautilus-file-undo-manager.h" |
2774 | @@ -137,7 +137,7 @@ | |||
2775 | 137 | static void | 137 | static void |
2776 | 138 | mark_desktop_file_trusted (CommonJob *common, | 138 | mark_desktop_file_trusted (CommonJob *common, |
2777 | 139 | GCancellable *cancellable, | 139 | GCancellable *cancellable, |
2779 | 140 | @@ -1864,6 +1964,35 @@ | 140 | @@ -1867,6 +1967,35 @@ |
2780 | 141 | 141 | ||
2781 | 142 | job = user_data; | 142 | job = user_data; |
2782 | 143 | 143 | ||
2783 | @@ -173,7 +173,7 @@ | |||
2784 | 173 | g_list_free_full (job->files, g_object_unref); | 173 | g_list_free_full (job->files, g_object_unref); |
2785 | 174 | 174 | ||
2786 | 175 | if (job->done_callback) { | 175 | if (job->done_callback) { |
2788 | 176 | @@ -4504,6 +4633,23 @@ | 176 | @@ -4541,6 +4670,23 @@ |
2789 | 177 | job->done_callback_data); | 177 | job->done_callback_data); |
2790 | 178 | } | 178 | } |
2791 | 179 | 179 | ||
2792 | @@ -197,7 +197,7 @@ | |||
2793 | 197 | g_list_free_full (job->files, g_object_unref); | 197 | g_list_free_full (job->files, g_object_unref); |
2794 | 198 | if (job->destination) { | 198 | if (job->destination) { |
2795 | 199 | g_object_unref (job->destination); | 199 | g_object_unref (job->destination); |
2797 | 200 | @@ -5067,6 +5213,19 @@ | 200 | @@ -5107,6 +5253,19 @@ |
2798 | 201 | job->done_callback_data); | 201 | job->done_callback_data); |
2799 | 202 | } | 202 | } |
2800 | 203 | 203 | ||
2801 | @@ -217,7 +217,7 @@ | |||
2802 | 217 | g_list_free_full (job->files, g_object_unref); | 217 | g_list_free_full (job->files, g_object_unref); |
2803 | 218 | g_object_unref (job->destination); | 218 | g_object_unref (job->destination); |
2804 | 219 | g_hash_table_unref (job->debuting_files); | 219 | g_hash_table_unref (job->debuting_files); |
2806 | 220 | @@ -5410,6 +5569,23 @@ | 220 | @@ -5450,6 +5609,23 @@ |
2807 | 221 | job->done_callback_data); | 221 | job->done_callback_data); |
2808 | 222 | } | 222 | } |
2809 | 223 | 223 | ||
2810 | @@ -241,7 +241,7 @@ | |||
2811 | 241 | g_list_free_full (job->files, g_object_unref); | 241 | g_list_free_full (job->files, g_object_unref); |
2812 | 242 | g_object_unref (job->destination); | 242 | g_object_unref (job->destination); |
2813 | 243 | g_hash_table_unref (job->debuting_files); | 243 | g_hash_table_unref (job->debuting_files); |
2815 | 244 | @@ -5882,6 +6058,14 @@ | 244 | @@ -5922,6 +6098,14 @@ |
2816 | 245 | job->done_callback_data); | 245 | job->done_callback_data); |
2817 | 246 | } | 246 | } |
2818 | 247 | 247 | ||
2819 | @@ -256,11 +256,11 @@ | |||
2820 | 256 | g_object_unref (job->dest_dir); | 256 | g_object_unref (job->dest_dir); |
2821 | 257 | if (job->src) { | 257 | if (job->src) { |
2822 | 258 | g_object_unref (job->src); | 258 | g_object_unref (job->src); |
2824 | 259 | Index: nautilus-3.5.5/libnautilus-private/nautilus-file.c | 259 | Index: nautilus-3.8.1/libnautilus-private/nautilus-file.c |
2825 | 260 | =================================================================== | 260 | =================================================================== |
2829 | 261 | --- nautilus-3.5.5.orig/libnautilus-private/nautilus-file.c 2012-08-08 09:41:29.955206857 +0200 | 261 | --- nautilus-3.8.1.orig/libnautilus-private/nautilus-file.c 2013-06-04 22:27:52.532397563 -0400 |
2830 | 262 | +++ nautilus-3.5.5/libnautilus-private/nautilus-file.c 2012-08-08 09:41:30.219206871 +0200 | 262 | +++ nautilus-3.8.1/libnautilus-private/nautilus-file.c 2013-06-04 22:27:52.524397563 -0400 |
2831 | 263 | @@ -90,6 +90,9 @@ | 263 | @@ -91,6 +91,9 @@ |
2832 | 264 | #define DEBUG_REF_PRINTF printf | 264 | #define DEBUG_REF_PRINTF printf |
2833 | 265 | #endif | 265 | #endif |
2834 | 266 | 266 | ||
2835 | @@ -270,7 +270,7 @@ | |||
2836 | 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. */ |
2837 | 271 | #define SORT_LAST_CHAR1 '.' | 271 | #define SORT_LAST_CHAR1 '.' |
2838 | 272 | #define SORT_LAST_CHAR2 '#' | 272 | #define SORT_LAST_CHAR2 '#' |
2840 | 273 | @@ -1728,10 +1731,34 @@ | 273 | @@ -1735,10 +1738,34 @@ |
2841 | 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)); |
2842 | 275 | 275 | ||
2843 | 276 | update_info_and_name (op->file, new_info); | 276 | update_info_and_name (op->file, new_info); |
2844 | @@ -306,10 +306,10 @@ | |||
2845 | 306 | nautilus_directory_moved (old_uri, new_uri); | 306 | nautilus_directory_moved (old_uri, new_uri); |
2846 | 307 | g_free (new_uri); | 307 | g_free (new_uri); |
2847 | 308 | g_free (old_uri); | 308 | g_free (old_uri); |
2849 | 309 | Index: nautilus-3.5.5/test/Makefile.am | 309 | Index: nautilus-3.8.1/test/Makefile.am |
2850 | 310 | =================================================================== | 310 | =================================================================== |
2853 | 311 | --- nautilus-3.5.5.orig/test/Makefile.am 2012-05-08 06:28:09.000000000 +0200 | 311 | --- nautilus-3.8.1.orig/test/Makefile.am 2013-06-04 22:27:52.532397563 -0400 |
2854 | 312 | +++ nautilus-3.5.5/test/Makefile.am 2012-08-08 09:41:30.219206871 +0200 | 312 | +++ nautilus-3.8.1/test/Makefile.am 2013-06-04 22:27:52.524397563 -0400 |
2855 | 313 | @@ -6,6 +6,7 @@ | 313 | @@ -6,6 +6,7 @@ |
2856 | 314 | $(COMMON_CFLAGS) \ | 314 | $(COMMON_CFLAGS) \ |
2857 | 315 | $(NAUTILUS_CFLAGS) \ | 315 | $(NAUTILUS_CFLAGS) \ |
2858 | @@ -337,10 +337,10 @@ | |||
2859 | 337 | EXTRA_DIST = \ | 337 | EXTRA_DIST = \ |
2860 | 338 | test.h \ | 338 | test.h \ |
2861 | 339 | $(NULL) | 339 | $(NULL) |
2863 | 340 | Index: nautilus-3.5.5/test/run-zeitgeist-test.sh | 340 | Index: nautilus-3.8.1/test/run-zeitgeist-test.sh |
2864 | 341 | =================================================================== | 341 | =================================================================== |
2865 | 342 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 342 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
2867 | 343 | +++ nautilus-3.5.5/test/run-zeitgeist-test.sh 2012-08-08 09:41:30.219206871 +0200 | 343 | +++ nautilus-3.8.1/test/run-zeitgeist-test.sh 2013-06-04 22:27:52.524397563 -0400 |
2868 | 344 | @@ -0,0 +1,50 @@ | 344 | @@ -0,0 +1,50 @@ |
2869 | 345 | +#! /bin/sh -e | 345 | +#! /bin/sh -e |
2870 | 346 | + | 346 | + |
2871 | @@ -392,10 +392,10 @@ | |||
2872 | 392 | +echo "Cleaning up..." | 392 | +echo "Cleaning up..." |
2873 | 393 | +zeitgeist-daemon --quit | 393 | +zeitgeist-daemon --quit |
2874 | 394 | +rm -r "${TMP_PATH}" | 394 | +rm -r "${TMP_PATH}" |
2876 | 395 | Index: nautilus-3.5.5/test/test-nautilus-zeitgeist.c | 395 | Index: nautilus-3.8.1/test/test-nautilus-zeitgeist.c |
2877 | 396 | =================================================================== | 396 | =================================================================== |
2878 | 397 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 397 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
2880 | 398 | +++ nautilus-3.5.5/test/test-nautilus-zeitgeist.c 2012-08-08 09:41:30.219206871 +0200 | 398 | +++ nautilus-3.8.1/test/test-nautilus-zeitgeist.c 2013-06-04 22:27:52.524397563 -0400 |
2881 | 399 | @@ -0,0 +1,343 @@ | 399 | @@ -0,0 +1,343 @@ |
2882 | 400 | +/* | 400 | +/* |
2883 | 401 | + * Copyright © 2012 Canonical Ltd. | 401 | + * Copyright © 2012 Canonical Ltd. |
Thanks Jeremy, what's the plan for the background drawing if we merge that change?