summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-01-27 17:36:29 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-02-02 22:22:37 +0100
commit27590823d6d6783ef4ab0b3593d7d22494080f7e (patch)
tree17730556e652d8dfd64f2cd38943a591dba12730
parent65b03f5041d4c83e3580215b7ae905b7be9a985a (diff)
downloadnautilus-27590823d6d6783ef4ab0b3593d7d22494080f7e.tar.gz
query-editor: remove hack for spinner
Instead, don't use it. We need a way to say that the view is loading/searching, which is the floating bar now, and hopefully something different in the future.
-rw-r--r--src/nautilus-query-editor.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 289741b3f..1cb41d478 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -39,11 +39,8 @@ typedef struct {
GtkWidget *entry;
GtkWidget *popover;
GtkWidget *label;
- GtkWidget *spinner;
gboolean change_frozen;
- GBinding *spinner_active_binding;
-
GFile *location;
NautilusQuery *query;
@@ -402,14 +399,6 @@ setup_widgets (NautilusQueryEditor *editor)
priv = nautilus_query_editor_get_instance_private (editor);
- /* Spinner for when the search is happening */
- priv->spinner = gtk_spinner_new ();
- gtk_widget_set_margin_end (priv->spinner, 18);
- gtk_widget_show (priv->spinner);
-
- /* HACK: we're invasively adding the spinner to GtkSearchBar > GtkRevealer > GtkBox */
- gtk_box_pack_end (GTK_BOX (gtk_bin_get_child (GTK_BIN (gtk_bin_get_child (GTK_BIN (editor))))), priv->spinner, FALSE, TRUE, 0);
-
/* vertical box that holds the search entry and the label below */
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_add (GTK_CONTAINER (editor), vbox);
@@ -595,16 +584,7 @@ nautilus_query_editor_set_query (NautilusQueryEditor *editor,
}
g_free (current_text);
- /* Clear bindings */
- g_clear_pointer (&priv->spinner_active_binding, g_binding_unbind);
-
if (g_set_object (&priv->query, query)) {
- if (query) {
- priv->spinner_active_binding = g_object_bind_property (query, "searching",
- priv->spinner, "active",
- G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
- }
-
g_object_notify (G_OBJECT (editor), "query");
}