summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-02-02 22:06:48 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-02-03 16:33:55 +0100
commitae55fec152123e482a40e608b8e6903502e39988 (patch)
treec860e25a71bcc8a0b2879580984c9dd23a965c82 /src
parent27ac388fab62b60cfafead06cf5a46cf1779d8a0 (diff)
downloadnautilus-ae55fec152123e482a40e608b8e6903502e39988.tar.gz
preferences: add remote and local recursive search
Instead of using a switch in the search popover. The search popover is meant to be as a temporary filter. That means that the "Search subfolders" switch that was present there was reset every time a new search was performed. Even if the nature of the popover is temporary and therefore should be understandable that the switch is also temporary, this can bring confusion in such a sensible matter. To avoid confusion, add two preferences, one for remote file systems and one for local file systems to allow the choice to make a recursive or non recursive search, and remove the switch to avoid frustration. Also, I expect this choice to be more a permanent one than a temporary one, as in, I expect users to what they really want is to make a permanent choice whether they want recursive search or not. For local file systems, on what I can gather, either wants to emulate the type-ahead search, because it's file system is slow to perform a recursive search and will always be, therefore a permanent choice, or the opposite where the file system of the user is fast enough to perform a recursive search, which will most of the cases be like that, and therefore also a permanent choice. For remote file systems is similar. Either the internet connection of the user is fast enough for the whole session or use, therefore wants recursive search always enabled, or it's not, and therefore it doesn't want recursive search enabled.
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-preferences-dialog.c10
-rw-r--r--src/nautilus-query-editor.c57
-rw-r--r--src/nautilus-search-popover.c59
-rw-r--r--src/resources/ui/nautilus-preferences-dialog.ui513
-rw-r--r--src/resources/ui/nautilus-search-popover.ui32
5 files changed, 352 insertions, 319 deletions
diff --git a/src/nautilus-preferences-dialog.c b/src/nautilus-preferences-dialog.c
index 2cb362663..614507a59 100644
--- a/src/nautilus-preferences-dialog.c
+++ b/src/nautilus-preferences-dialog.c
@@ -59,6 +59,10 @@
"use_tree_view_checkbutton"
#define NAUTILUS_PREFERENCES_DIALOG_TRASH_CONFIRM_WIDGET \
"trash_confirm_checkbutton"
+#define NAUTILUS_PREFERENCES_DIALOG_LOCAL_RECURSIVE_SEARCH_WIDGET \
+ "local_recursive_search_checkbutton"
+#define NAUTILUS_PREFERENCES_DIALOG_REMOTE_RECURSIVE_SEARCH_WIDGET \
+ "remote_recursive_search_checkbutton"
/* int enums */
#define NAUTILUS_PREFERENCES_DIALOG_THUMBNAIL_LIMIT_WIDGET \
@@ -493,6 +497,12 @@ static void nautilus_preferences_dialog_setup(GtkBuilder *builder,
bind_builder_bool(builder, nautilus_preferences,
NAUTILUS_PREFERENCES_DIALOG_DELETE_PERMANENTLY_WIDGET,
NAUTILUS_PREFERENCES_SHOW_DELETE_PERMANENTLY);
+ bind_builder_bool(builder, nautilus_preferences,
+ NAUTILUS_PREFERENCES_DIALOG_LOCAL_RECURSIVE_SEARCH_WIDGET,
+ NAUTILUS_PREFERENCES_LOCAL_RECURSIVE_SEARCH);
+ bind_builder_bool(builder, nautilus_preferences,
+ NAUTILUS_PREFERENCES_DIALOG_REMOTE_RECURSIVE_SEARCH_WIDGET,
+ NAUTILUS_PREFERENCES_REMOTE_RECURSIVE_SEARCH);
bind_builder_enum(builder, nautilus_preferences,
NAUTILUS_PREFERENCES_DIALOG_SORT_ORDER_WIDGET,
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index e2b5bd0c1..320b3cf45 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -70,33 +70,35 @@ G_DEFINE_TYPE_WITH_PRIVATE (NautilusQueryEditor, nautilus_query_editor, GTK_TYPE
static void
-query_recursive_changed (GObject *object,
- GParamSpec *pspec,
- NautilusQueryEditor *editor)
+recursive_search_preferences_changed (GSettings *settings,
+ gchar *key,
+ NautilusQueryEditor *editor)
{
NautilusQueryEditorPrivate *priv;
- gchar *key;
+ NautilusFile *file;
+ gchar *recursive_search_key;
+ gboolean recursive;
- priv = nautilus_query_editor_get_instance_private (editor);
- key = "local-recursive-search";
- if (priv->location) {
- NautilusFile *file;
+ priv = nautilus_query_editor_get_instance_private (editor);
- file = nautilus_file_get (priv->location);
+ if (!priv->location || !priv->query)
+ return;
- if (nautilus_file_is_remote (file)) {
- key = "remote-recursive-search";
- }
+ file = nautilus_file_get (priv->location);
- nautilus_file_unref (file);
+ if (nautilus_file_is_remote (file)) {
+ recursive_search_key = "remote-recursive-search";
+ } else {
+ recursive_search_key = "local-recursive-search";
}
- g_settings_set_boolean (nautilus_preferences,
- key,
- nautilus_query_get_recursive (NAUTILUS_QUERY (object)));
-
- nautilus_query_editor_changed (editor);
+ nautilus_file_unref (file);
+ recursive = g_settings_get_boolean (nautilus_preferences, recursive_search_key);
+ if (recursive != nautilus_query_get_recursive (priv->query)) {
+ nautilus_query_set_recursive (priv->query, recursive);
+ nautilus_query_editor_changed (editor);
+ }
}
@@ -110,6 +112,10 @@ nautilus_query_editor_dispose (GObject *object)
g_clear_object (&priv->location);
g_clear_object (&priv->query);
+ g_signal_handlers_disconnect_by_func (nautilus_preferences,
+ recursive_search_preferences_changed,
+ object);
+
G_OBJECT_CLASS (nautilus_query_editor_parent_class)->dispose (object);
}
@@ -287,12 +293,6 @@ create_query (NautilusQueryEditor *editor)
nautilus_query_editor_set_query (editor, query);
- g_signal_connect (query,
- "notify::recursive",
- G_CALLBACK (query_recursive_changed),
- editor);
-
-
nautilus_file_unref (file);
}
@@ -336,6 +336,15 @@ nautilus_query_editor_on_stop_search (GtkWidget *entry,
static void
nautilus_query_editor_init (NautilusQueryEditor *editor)
{
+ g_signal_connect (nautilus_preferences,
+ "changed::remote-recursive-search",
+ G_CALLBACK (recursive_search_preferences_changed),
+ editor);
+
+ g_signal_connect (nautilus_preferences,
+ "changed::local-recursive-search",
+ G_CALLBACK (recursive_search_preferences_changed),
+ editor);
}
static gboolean
diff --git a/src/nautilus-search-popover.c b/src/nautilus-search-popover.c
index a608a2fea..081dd07be 100644
--- a/src/nautilus-search-popover.c
+++ b/src/nautilus-search-popover.c
@@ -34,7 +34,6 @@ struct _NautilusSearchPopover
GtkWidget *dates_listbox;
GtkWidget *date_entry;
GtkWidget *date_stack;
- GtkWidget *recursive_switch;
GtkWidget *select_date_button;
GtkWidget *select_date_button_label;
GtkWidget *type_label;
@@ -44,7 +43,6 @@ struct _NautilusSearchPopover
GtkWidget *last_modified_button;
NautilusQuery *query;
- GBinding *recursive_binding;
};
const gchar* get_text_for_day (gint days);
@@ -285,44 +283,6 @@ query_date_changed (GObject *object,
}
static void
-update_recursive_switch (NautilusSearchPopover *popover,
- GFile *location)
-{
- if (location)
- {
- NautilusFile *file;
- gboolean active;
-
- file = nautilus_file_get (location);
-
- if (!nautilus_file_is_local (file))
- {
- active = g_settings_get_boolean (nautilus_preferences,
- "remote-recursive-search");
- }
- else
- {
- active = g_settings_get_boolean (nautilus_preferences,
- "local-recursive-search");
- }
-
- gtk_switch_set_active (GTK_SWITCH (popover->recursive_switch), active);
- }
-
-}
-
-static void
-query_location_changed (GObject *object,
- GParamSpec *pspec,
- NautilusSearchPopover *popover)
-{
- GFile *location;
-
- location = nautilus_query_get_location (popover->query);
- update_recursive_switch (popover, location);
-}
-
-static void
clear_date_button_clicked (GtkButton *button,
NautilusSearchPopover *popover)
{
@@ -1033,7 +993,6 @@ nautilus_search_popover_class_init (NautilusSearchPopoverClass *klass)
gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, dates_listbox);
gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, date_entry);
gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, date_stack);
- gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, recursive_switch);
gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, select_date_button);
gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, select_date_button_label);
gtk_widget_class_bind_template_child (widget_class, NautilusSearchPopover, type_label);
@@ -1136,8 +1095,6 @@ nautilus_search_popover_set_query (NautilusSearchPopover *popover,
if (previous_query)
{
g_signal_handlers_disconnect_by_func (previous_query, query_date_changed, popover);
- g_signal_handlers_disconnect_by_func (previous_query, query_location_changed, popover);
- g_clear_pointer (&popover->recursive_binding, g_binding_unbind);
}
g_set_object (&popover->query, query);
@@ -1151,22 +1108,6 @@ nautilus_search_popover_set_query (NautilusSearchPopover *popover,
"notify::date",
G_CALLBACK (query_date_changed),
popover);
-
- g_signal_connect (query,
- "notify::location",
- G_CALLBACK (query_location_changed),
- popover);
-
- update_recursive_switch (popover, nautilus_query_get_location (query));
- /* Recursive */
- gtk_switch_set_active (GTK_SWITCH (popover->recursive_switch),
- nautilus_query_get_recursive (query));
-
- popover->recursive_binding = g_object_bind_property (query,
- "recursive",
- popover->recursive_switch,
- "active",
- G_BINDING_BIDIRECTIONAL);
}
else
{
diff --git a/src/resources/ui/nautilus-preferences-dialog.ui b/src/resources/ui/nautilus-preferences-dialog.ui
index 3ca0748fa..3fa6e4894 100644
--- a/src/resources/ui/nautilus-preferences-dialog.ui
+++ b/src/resources/ui/nautilus-preferences-dialog.ui
@@ -1,23 +1,184 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.19.0 -->
<interface>
- <!-- interface-requires gtk+ 3.0 -->
+ <requires lib="gtk+" version="3.0"/>
+ <object class="GtkListStore" id="icon_view_zoom_levels">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Always</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Local Files Only</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Never</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="list_view_zoom_levels">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Small</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Standard</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Large</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="model1">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Icon View</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">List View</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="model10">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Always</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Local Files Only</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Never</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="model2">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">By Name</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">By Size</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">By Type</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">By Modification Date</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">By Access Date</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">By Trashed Date</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="model3">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Small</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Standard</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Large</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="model7">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Always</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Local Files Only</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Never</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkListStore" id="model8">
+ <columns>
+ <!-- column-name gchararray -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">100 KB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">500 KB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">1 MB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">3 MB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">5 MB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">10 MB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">100 MB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">1 GB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">2 GB</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">4 GB</col>
+ </row>
+ </data>
+ </object>
<object class="GtkDialog" id="preferences_dialog">
<property name="can_focus">False</property>
<property name="border_width">0</property>
+ <property name="title" translatable="yes">Files Preferences</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
- <property name="title" translatable="yes">Files Preferences</property>
- <property name="use_header_bar">1</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
- <property name="border_width">0</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
- <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="layout_style">end</property>
</object>
@@ -51,8 +212,8 @@
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Default View</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -83,10 +244,10 @@
<object class="GtkLabel" id="views_label_1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">_Arrange items:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">sort_order_combobox</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -120,13 +281,14 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="sort_folders_first_checkbutton">
- <property name="label" translatable="yes">Sort _folders before files</property>
+ <object class="GtkCheckButton" id="show_delete_permanently_checkbutton">
+ <property name="label" translatable="yes">Show context menu item to delete files permanently</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -136,13 +298,14 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="show_delete_permanently_checkbutton">
- <property name="label" translatable="yes">Show context menu item to delete files permanently</property>
+ <object class="GtkCheckButton" id="show_create_link_checkbutton">
+ <property name="label" translatable="yes">Show context menu item to create links from copied files</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -152,13 +315,14 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="show_create_link_checkbutton">
- <property name="label" translatable="yes">Show context menu item to create links from copied files</property>
+ <object class="GtkCheckButton" id="sort_folders_first_checkbutton">
+ <property name="label" translatable="yes">Sort _folders before files</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -215,8 +379,8 @@
<object class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Behavior</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -240,11 +404,12 @@
<child>
<object class="GtkRadioButton" id="single_click_radiobutton">
<property name="label" translatable="yes">_Single click to open items</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -256,11 +421,12 @@
<child>
<object class="GtkRadioButton" id="double_click_radiobutton">
<property name="label" translatable="yes">_Double click to open items</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
<property name="group">single_click_radiobutton</property>
</object>
@@ -297,8 +463,8 @@
<object class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Executable Text Files</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -323,11 +489,12 @@
<child>
<object class="GtkRadioButton" id="scripts_execute_radiobutton">
<property name="label" translatable="yes">_Run executable text files when they are opened</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -339,11 +506,12 @@
<child>
<object class="GtkRadioButton" id="scripts_view_radiobutton">
<property name="label" translatable="yes">_View executable text files when they are opened</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
<property name="group">scripts_execute_radiobutton</property>
</object>
@@ -356,11 +524,12 @@
<child>
<object class="GtkRadioButton" id="scripts_confirm_radiobutton">
<property name="label" translatable="yes">_Ask each time</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
<property name="group">scripts_execute_radiobutton</property>
</object>
@@ -396,8 +565,8 @@
<object class="GtkLabel" id="label14">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Trash</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -422,11 +591,12 @@
<child>
<object class="GtkCheckButton" id="trash_confirm_checkbutton">
<property name="label" translatable="yes">Ask before _emptying the Trash or deleting files</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
@@ -451,6 +621,109 @@
<property name="position">2</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox" id="vbox3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Search</property>
+ <property name="xalign">0</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkAlignment" id="alignment1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox" id="vbox4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="local_recursive_search_checkbutton">
+ <property name="label" translatable="yes">Search subfolders on local file systems</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkAlignment" id="alignment3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox" id="vbox10">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="remote_recursive_search_checkbutton">
+ <property name="label" translatable="yes">Search subfolders on remote file systems</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="position">1</property>
@@ -485,8 +758,8 @@
<object class="GtkLabel" id="label28">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Icon Captions</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -512,11 +785,10 @@
<object class="GtkLabel" id="label29">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="wrap">True</property>
- <property name="max-width-chars">65</property>
<property name="label" translatable="yes">Choose the order of information to appear beneath icon names. More information will appear when zooming in closer.</property>
<property name="wrap">True</property>
+ <property name="max_width_chars">65</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -543,7 +815,6 @@
<object class="GtkComboBoxText" id="captions_0_combobox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="entry_text_column">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -578,7 +849,6 @@
<object class="GtkComboBoxText" id="captions_1_combobox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="entry_text_column">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -612,7 +882,6 @@
<object class="GtkComboBoxText" id="captions_2_combobox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="entry_text_column">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -652,8 +921,8 @@
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">List View</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -733,11 +1002,10 @@
<object class="GtkLabel" id="label33">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="wrap">True</property>
- <property name="max-width-chars">65</property>
<property name="label" translatable="yes">Choose the order of information to appear in the list view.</property>
<property name="wrap">True</property>
+ <property name="max_width_chars">65</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -796,8 +1064,8 @@
<object class="GtkLabel" id="label18">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Files</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -828,10 +1096,10 @@
<object class="GtkLabel" id="preview_label_0">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Show _thumbnails:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">preview_image_combobox</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -873,10 +1141,10 @@
<object class="GtkLabel" id="preview_label_1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">_Only for files smaller than:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">preview_image_size_combobox</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -935,8 +1203,8 @@
<object class="GtkLabel" id="label22">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Folders</property>
+ <property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -967,10 +1235,10 @@
<object class="GtkLabel" id="preview_label_2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes">Count _number of items:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">preview_folder_combobox</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
@@ -1046,169 +1314,6 @@
</object>
</child>
</object>
- <object class="GtkListStore" id="model1">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Icon View</col>
- </row>
- <row>
- <col id="0" translatable="yes">List View</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="model10">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Always</col>
- </row>
- <row>
- <col id="0" translatable="yes">Local Files Only</col>
- </row>
- <row>
- <col id="0" translatable="yes">Never</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="model2">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">By Name</col>
- </row>
- <row>
- <col id="0" translatable="yes">By Size</col>
- </row>
- <row>
- <col id="0" translatable="yes">By Type</col>
- </row>
- <row>
- <col id="0" translatable="yes">By Modification Date</col>
- </row>
- <row>
- <col id="0" translatable="yes">By Access Date</col>
- </row>
- <row>
- <col id="0" translatable="yes">By Trashed Date</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="model3">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Small</col>
- </row>
- <row>
- <col id="0" translatable="yes">Standard</col>
- </row>
- <row>
- <col id="0" translatable="yes">Large</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="list_view_zoom_levels">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Small</col>
- </row>
- <row>
- <col id="0" translatable="yes">Standard</col>
- </row>
- <row>
- <col id="0" translatable="yes">Large</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="icon_view_zoom_levels">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Always</col>
- </row>
- <row>
- <col id="0" translatable="yes">Local Files Only</col>
- </row>
- <row>
- <col id="0" translatable="yes">Never</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="model7">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">Always</col>
- </row>
- <row>
- <col id="0" translatable="yes">Local Files Only</col>
- </row>
- <row>
- <col id="0" translatable="yes">Never</col>
- </row>
- </data>
- </object>
- <object class="GtkListStore" id="model8">
- <columns>
- <!-- column-name gchararray -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">100 KB</col>
- </row>
- <row>
- <col id="0" translatable="yes">500 KB</col>
- </row>
- <row>
- <col id="0" translatable="yes">1 MB</col>
- </row>
- <row>
- <col id="0" translatable="yes">3 MB</col>
- </row>
- <row>
- <col id="0" translatable="yes">5 MB</col>
- </row>
- <row>
- <col id="0" translatable="yes">10 MB</col>
- </row>
- <row>
- <col id="0" translatable="yes">100 MB</col>
- </row>
- <row>
- <col id="0" translatable="yes">1 GB</col>
- </row>
- <row>
- <col id="0" translatable="yes">2 GB</col>
- </row>
- <row>
- <col id="0" translatable="yes">4 GB</col>
- </row>
- </data>
- </object>
<object class="GtkListStore" id="model9">
<columns>
<!-- column-name gchararray -->
diff --git a/src/resources/ui/nautilus-search-popover.ui b/src/resources/ui/nautilus-search-popover.ui
index a61a512a9..44a18b80f 100644
--- a/src/resources/ui/nautilus-search-popover.ui
+++ b/src/resources/ui/nautilus-search-popover.ui
@@ -398,37 +398,6 @@
<property name="width">2</property>
</packing>
</child>
- <child>
- <object class="GtkLabel" id="subfolders_dim_label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Search Subfolders</property>
- <property name="margin_top">10</property>
- <property name="xalign">0</property>
- <property name="yalign">0.5</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">7</property>
- </packing>
- </child>
- <child>
- <object class="GtkSwitch" id="recursive_switch">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hexpand">True</property>
- <property name="margin_top">10</property>
- <property name="tooltip_text" translatable="yes">When on, the search will be performed on subfolders of the current folder</property>
- <property name="halign">end</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">7</property>
- </packing>
- </child>
</object>
</child>
</template>
@@ -450,7 +419,6 @@
<widget name="when_dim_label"/>
<widget name="around_dim_label"/>
<widget name="what_dim_label"/>
- <widget name="subfolders_dim_label"/>
</widgets>
</object>
</interface>