user-accounts: don't call gtk_main_quit if AccountService is unavailable
Just desensitize the panel and call it a day. https://bugzilla.gnome.org/show_bug.cgi?id=648969
This commit is contained in:
parent
60e9f49673
commit
61623a1f66
1 changed files with 5 additions and 2 deletions
|
@ -831,9 +831,12 @@ users_loaded (UmUserManager *manager,
|
||||||
_("Failed to contact the accounts service"));
|
_("Failed to contact the accounts service"));
|
||||||
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
||||||
_("Please make sure that the AccountService is installed and enabled."));
|
_("Please make sure that the AccountService is installed and enabled."));
|
||||||
g_signal_connect (dialog, "response",
|
g_signal_connect_swapped (dialog, "response",
|
||||||
G_CALLBACK (gtk_main_quit), NULL);
|
G_CALLBACK (gtk_widget_destroy),
|
||||||
|
dialog);
|
||||||
gtk_widget_show (dialog);
|
gtk_widget_show (dialog);
|
||||||
|
|
||||||
|
gtk_widget_set_sensitive (d->main_box, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
list = um_user_manager_list_users (d->um);
|
list = um_user_manager_list_users (d->um);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue