filechooser: Manage spinner state

So we don't get an allocate every frame.
This commit is contained in:
Timm Bäder 2018-01-04 12:17:21 +01:00
parent af6adb5bc0
commit 62ccf8743a
3 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -100,7 +100,6 @@
<child>
<object class="GtkSpinner" id="search_spinner">
<property name="visible">0</property>
<property name="active">1</property>
</object>
<packing>
<property name="pack-type">end</property>

View File

@ -73,7 +73,6 @@
</child>
<child>
<object class="GtkSpinner" id="busy_spinner">
<property name="active">1</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>