Merge lp:~roignac/nautilus/bug_32542_save_search_as_button into lp:~ubuntu-desktop/nautilus/ubuntu

Proposed by Vadim Rutkovsky
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~roignac/nautilus/bug_32542_save_search_as_button
Merge into: lp:~ubuntu-desktop/nautilus/ubuntu
Diff against target: 117 lines (+95/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/21_save_search_on_toolbar.patch (+87/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~roignac/nautilus/bug_32542_save_search_as_button
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+96340@code.launchpad.net

Description of the change

Add 'Save search as' to search toolbar

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

Thank you for your work there, I'm unsure that saving searches is something users do enough to justify to be added to the toolbar though, also we are ui frozen for precise so that will have to wait the next cycle. I will watch the upstream comments though and review the patch again next cycle if they don't do it

Revision history for this message
Sebastien Bacher (seb128) wrote :

the save search has been removed upstream, closing that request

Unmerged revisions

273. By Vadim Rutkovsky

* debian/patches/21_save_search_on_toolbar.patch:
  - Add 'Save search as' button on search toolbar (lp: #32542)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-06 21:21:03 +0000
+++ debian/changelog 2012-03-07 11:59:19 +0000
@@ -1,3 +1,10 @@
1nautilus (1:3.3.91-0ubuntu3) UNRELEASED; urgency=low
2
3 * debian/patches/21_save_search_on_toolbar.patch:
4 - Add 'Save search as' button on search toolbar (lp: #32542)
5
6 -- Vadim Rutkovsky <roignac@gmail.com> Wed, 07 Mar 2012 14:07:27 +0300
7
1nautilus (1:3.3.91-0ubuntu2) UNRELEASED; urgency=low8nautilus (1:3.3.91-0ubuntu2) UNRELEASED; urgency=low
29
3 * debian/patches/20_static_unity_quicklist.patch:10 * debian/patches/20_static_unity_quicklist.patch:
411
=== added file 'debian/patches/21_save_search_on_toolbar.patch'
--- debian/patches/21_save_search_on_toolbar.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/21_save_search_on_toolbar.patch 2012-03-07 11:59:19 +0000
@@ -0,0 +1,87 @@
1## Description: Add 'Save search as' button on search toolbar
2## Origin/Author: Vadim Rutkovsky <roignac@gmail.com>
3## Bug: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/32542, https://bugzilla.gnome.org/show_bug.cgi?id=332299
4Index: trunk/src/nautilus-query-editor.c
5===================================================================
6--- trunk.orig/src/nautilus-query-editor.c 2012-03-07 09:45:57.319085722 +0300
7+++ trunk/src/nautilus-query-editor.c 2012-03-07 11:59:08.746123993 +0300
8@@ -24,6 +24,8 @@
9 #include <config.h>
10 #include "nautilus-query-editor.h"
11 #include "nautilus-window-slot.h"
12+#include "nautilus-actions.h"
13+#include "nautilus-view.h"
14
15 #include <string.h>
16 #include <glib/gi18n.h>
17@@ -1017,9 +1019,19 @@
18 }
19
20 static void
21+save_search_cb (GtkButton *clicked_button, NautilusQueryEditor *editor)
22+{
23+
24+ NautilusView *view;
25+
26+ view = nautilus_window_slot_get_current_view (editor->details->slot);
27+ nautilus_activate_search_save_as (view);
28+}
29+
30+static void
31 finish_first_line (NautilusQueryEditor *editor, GtkWidget *hbox, gboolean use_go)
32 {
33- GtkWidget *button, *image;
34+ GtkWidget *button, *save_search_as, *image;
35
36 button = gtk_button_new ();
37 image = gtk_image_new_from_stock (GTK_STOCK_ADD,
38@@ -1051,6 +1063,14 @@
39 G_CALLBACK (go_search_cb), editor);
40
41 gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
42+
43+ if (!use_go) {
44+ save_search_as = gtk_button_new_with_label (_("Save Search as"));
45+ g_signal_connect (save_search_as, "clicked",
46+ G_CALLBACK (save_search_cb), editor);
47+ gtk_widget_show (save_search_as);
48+ gtk_box_pack_end (GTK_BOX (hbox), save_search_as, FALSE, FALSE, 0);
49+ }
50 }
51
52 static void
53Index: trunk/src/nautilus-view.c
54===================================================================
55--- trunk.orig/src/nautilus-view.c 2012-03-07 08:08:01.221113000 +0300
56+++ trunk/src/nautilus-view.c 2012-03-07 12:00:50.982630965 +0300
57@@ -1774,6 +1774,18 @@
58 }
59 }
60
61+void
62+nautilus_activate_search_save_as (NautilusView *view)
63+{
64+ GtkAction *action;
65+
66+ g_assert (NAUTILUS_IS_VIEW (view));
67+
68+ action = gtk_action_group_get_action (view->details->dir_action_group,
69+ NAUTILUS_ACTION_SAVE_SEARCH_AS);
70+ gtk_action_activate (action);
71+}
72+
73
74 static void
75 action_empty_trash_callback (GtkAction *action,
76Index: trunk/src/nautilus-view.h
77===================================================================
78--- trunk.orig/src/nautilus-view.h 2012-03-07 08:08:01.221113000 +0300
79+++ trunk/src/nautilus-view.h 2012-03-07 11:58:58.938075362 +0300
80@@ -365,6 +365,7 @@
81
82 /* NautilusView methods */
83 const char * nautilus_view_get_view_id (NautilusView *view);
84+void nautilus_activate_search_save_as (NautilusView *view);
85
86 /* file operations */
87 char * nautilus_view_get_backing_uri (NautilusView *view);
088
=== modified file 'debian/patches/series'
--- debian/patches/series 2012-03-05 18:48:13 +0000
+++ debian/patches/series 2012-03-07 11:59:19 +0000
@@ -12,5 +12,6 @@
1214_bring_del_instead_ctrl_del.patch1214_bring_del_instead_ctrl_del.patch
1315_use-ubuntu-help.patch1315_use-ubuntu-help.patch
1420_static_unity_quicklist.patch1420_static_unity_quicklist.patch
1521_save_search_on_toolbar.patch
15git-0001-Workaround-focus-issues-on-typeahead.patch16git-0001-Workaround-focus-issues-on-typeahead.patch
16zg_activity_logging.patch17zg_activity_logging.patch

Subscribers

People subscribed via source and target branches

to all changes: