From 62ccf8743a1bbadcc7267e9cfeaf94a776e4a606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 4 Jan 2018 12:17:21 +0100 Subject: [PATCH] filechooser: Manage spinner state So we don't get an allocate every frame. --- gtk/gtkplacesviewrow.c | 2 ++ gtk/ui/gtkfilechooserwidget.ui | 1 - gtk/ui/gtkplacesviewrow.ui | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkplacesviewrow.c b/gtk/gtkplacesviewrow.c index fbac40027a..c7236afd1b 100644 --- a/gtk/gtkplacesviewrow.c +++ b/gtk/gtkplacesviewrow.c @@ -438,10 +438,12 @@ gtk_places_view_row_set_busy (GtkPlacesViewRow *row, { gtk_stack_set_visible_child (row->mount_stack, GTK_WIDGET (row->busy_spinner)); gtk_widget_set_child_visible (GTK_WIDGET (row->mount_stack), TRUE); + gtk_spinner_start (row->busy_spinner); } else { gtk_widget_set_child_visible (GTK_WIDGET (row->mount_stack), FALSE); + gtk_spinner_stop (row->busy_spinner); } } diff --git a/gtk/ui/gtkfilechooserwidget.ui b/gtk/ui/gtkfilechooserwidget.ui index 5e6a6add86..f178927309 100644 --- a/gtk/ui/gtkfilechooserwidget.ui +++ b/gtk/ui/gtkfilechooserwidget.ui @@ -100,7 +100,6 @@ 0 - 1 end diff --git a/gtk/ui/gtkplacesviewrow.ui b/gtk/ui/gtkplacesviewrow.ui index 4d5418a4e2..47658fa5d1 100644 --- a/gtk/ui/gtkplacesviewrow.ui +++ b/gtk/ui/gtkplacesviewrow.ui @@ -73,7 +73,6 @@ - 1 center center