[nautilus/wip/exalm/spinner] floating-bar: Don't start spinner if it's not visible
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/exalm/spinner] floating-bar: Don't start spinner if it's not visible
- Date: Mon, 8 Feb 2021 15:54:44 +0000 (UTC)
commit 28052ad5571393094d29abb7ff97335782af5744
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Feb 8 19:22:14 2021 +0500
floating-bar: Don't start spinner if it's not visible
src/nautilus-floating-bar.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c
index 30fbf5779..47b6b36fc 100644
--- a/src/nautilus-floating-bar.c
+++ b/src/nautilus-floating-bar.c
@@ -399,7 +399,9 @@ nautilus_floating_bar_constructed (GObject *obj)
w = gtk_spinner_new ();
gtk_box_pack_start (GTK_BOX (box), w, FALSE, FALSE, 0);
gtk_widget_set_visible (w, self->show_spinner);
- gtk_spinner_start (GTK_SPINNER (w));
+ g_object_bind_property (obj, "show-spinner",
+ w, "active",
+ G_BINDING_SYNC_CREATE);
self->spinner = w;
gtk_widget_set_size_request (w, 16, 16);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]