Commit 379bb6c9 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

placesview: Fix server mount feedback

We weren't properly resetting the in-entry progress.
parent 3df3a049
Pipeline #275311 passed with stages
in 15 minutes and 4 seconds
......@@ -1215,12 +1215,14 @@ server_mount_ready_cb (GObject *source_file,
g_clear_error (&error);
}
if (view->destroyed) {
g_object_unref (view);
return;
}
if (view->destroyed)
{
g_object_unref (view);
return;
}
view->should_pulse_entry = FALSE;
gtk_entry_set_progress_fraction (GTK_ENTRY (view->address_entry), 0);
/* Restore from Cancel to Connect */
gtk_button_set_label (GTK_BUTTON (view->connect_button), _("Con_nect"));
......@@ -1388,8 +1390,7 @@ pulse_entry_cb (gpointer user_data)
}
else
{
gtk_entry_set_progress_pulse_step (GTK_ENTRY (view->address_entry), 0.0);
gtk_entry_set_progress_fraction (GTK_ENTRY (view->address_entry), 0.0);
gtk_entry_set_progress_fraction (GTK_ENTRY (view->address_entry), 0);
view->entry_pulse_timeout_id = 0;
return G_SOURCE_REMOVE;
......@@ -1443,6 +1444,7 @@ mount_server (GtkPlacesView *view,
view->should_pulse_entry = TRUE;
gtk_entry_set_progress_pulse_step (GTK_ENTRY (view->address_entry), 0.1);
gtk_entry_set_progress_fraction (GTK_ENTRY (view->address_entry), 0.1);
/* Allow to cancel the operation */
gtk_button_set_label (GTK_BUTTON (view->connect_button), _("Cance_l"));
gtk_widget_set_sensitive (view->address_entry, FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment