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



commit 61623a1f665b8668ca95498c4540586fd926417f
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 7fe45ed..dfb2abe 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -831,9 +831,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]