forked from AuroraMiddleware/gtk
filechooser: Manage spinner state
So we don't get an allocate every frame.
This commit is contained in:
parent
af6adb5bc0
commit
62ccf8743a
@ -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_stack_set_visible_child (row->mount_stack, GTK_WIDGET (row->busy_spinner));
|
||||||
gtk_widget_set_child_visible (GTK_WIDGET (row->mount_stack), TRUE);
|
gtk_widget_set_child_visible (GTK_WIDGET (row->mount_stack), TRUE);
|
||||||
|
gtk_spinner_start (row->busy_spinner);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gtk_widget_set_child_visible (GTK_WIDGET (row->mount_stack), FALSE);
|
gtk_widget_set_child_visible (GTK_WIDGET (row->mount_stack), FALSE);
|
||||||
|
gtk_spinner_stop (row->busy_spinner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,6 @@
|
|||||||
<child>
|
<child>
|
||||||
<object class="GtkSpinner" id="search_spinner">
|
<object class="GtkSpinner" id="search_spinner">
|
||||||
<property name="visible">0</property>
|
<property name="visible">0</property>
|
||||||
<property name="active">1</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="pack-type">end</property>
|
<property name="pack-type">end</property>
|
||||||
|
@ -73,7 +73,6 @@
|
|||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSpinner" id="busy_spinner">
|
<object class="GtkSpinner" id="busy_spinner">
|
||||||
<property name="active">1</property>
|
|
||||||
<property name="halign">center</property>
|
<property name="halign">center</property>
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
</object>
|
</object>
|
||||||
|
Loading…
Reference in New Issue
Block a user