[gnome-control-center] panel: Disable buttons when D-Bus service not available



commit 0d5e938ddfb757a4bd113018841dab15e8627a40
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 23 20:39:09 2011 +0100

    panel: Disable buttons when D-Bus service not available
    
    https://bugzilla.gnome.org/show_bug.cgi?id=652572

 panels/online-accounts/cc-online-accounts-panel.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c
index 4d8ec45..d491686 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -150,8 +150,10 @@ goa_panel_init (GoaPanel *panel)
     {
       goa_warning ("Error getting a GoaClient: %s (%s, %d)",
                    error->message, g_quark_to_string (error->domain), error->code);
+      w = GTK_WIDGET (gtk_builder_get_object (panel->builder, "goa-top-widget"));
+      gtk_widget_set_sensitive (w, FALSE);
       g_error_free (error);
-      return;
+      goto out;
     }
   g_signal_connect (panel->client,
                     "account-changed",



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