[nautilus/wip/csoriano/search-popover: 16/43] query-editor: remove hack for spinner
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/search-popover: 16/43] query-editor: remove hack for spinner
- Date: Tue, 2 Feb 2016 21:14:17 +0000 (UTC)
commit 2039b16a1f4a7f707896a04a0e9aa1c9d422175d
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 59034ee..0d2100d 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;
@@ -405,14 +402,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);
@@ -598,16 +587,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]