Printers: Hide spinner after search
Don't show spinner after search for new printers (#659753).
This commit is contained in:
parent
0d86715c01
commit
92b64f1cab
2 changed files with 5 additions and 1 deletions
|
@ -235,6 +235,8 @@
|
|||
<child>
|
||||
<object class="GtkLabel" id="get-devices-status-label">
|
||||
<property name="visible">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="xpad">5</property>
|
||||
<property name="label" translatable="yes"></property>
|
||||
</object>
|
||||
<packing>
|
||||
|
@ -244,7 +246,7 @@
|
|||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
<property name="secondary">True</property>
|
||||
</packing>
|
||||
|
|
|
@ -575,6 +575,7 @@ DBus method \"GroupPhysicalDevices\" to group duplicates in device list.");
|
|||
gtk_builder_get_object (pp->builder, "spinner");
|
||||
gtk_spinner_stop (GTK_SPINNER (widget));
|
||||
gtk_widget_set_sensitive (widget, FALSE);
|
||||
gtk_widget_hide (widget);
|
||||
|
||||
if (pp->cancellable != NULL)
|
||||
{
|
||||
|
@ -633,6 +634,7 @@ devices_get (PpNewPrinterDialog *pp)
|
|||
gtk_builder_get_object (pp->builder, "spinner");
|
||||
gtk_spinner_start (GTK_SPINNER (widget));
|
||||
gtk_widget_set_sensitive (widget, TRUE);
|
||||
gtk_widget_show (widget);
|
||||
|
||||
pp->cancellable = g_cancellable_new ();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue