[nautilus/wip/csoriano/search-popover: 16/17] query-editor: remove hack for spinner



commit 016c4be6636f7c9da6381bd4be00d05416cc7019
Author: Carlos Soriano <csoriano gnome org>
Date:   Wed Jan 27 17:36:29 2016 +0100

    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.

 src/nautilus-query-editor.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 5883c66..ab5337e 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");
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]