[gnome-control-center/gnome-3-0] user-accounts: don't call gtk_main_quit if AccountService is unavailable



commit 42784bb8a17ae4509f27f0476e7ec09fc0001e9f
Author: David Benjamin <davidben mit edu>
Date:   Wed Mar 23 22:00:58 2011 -0400

    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

 panels/user-accounts/um-user-panel.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index b457006..0e377f8 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -832,9 +832,12 @@ users_loaded (UmUserManager     *manager,
                                                  _("Failed to contact the accounts service"));
                 gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
                                                           _("Please make sure that the AccountService is installed and enabled."));
-                g_signal_connect (dialog, "response",
-                                  G_CALLBACK (gtk_main_quit), NULL);
+                g_signal_connect_swapped (dialog, "response",
+                                          G_CALLBACK (gtk_widget_destroy),
+                                          dialog);
                 gtk_widget_show (dialog);
+
+                gtk_widget_set_sensitive (d->main_box, FALSE);
         }
 
         list = um_user_manager_list_users (d->um);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]