panel: Disable buttons when D-Bus service not available
https://bugzilla.gnome.org/show_bug.cgi?id=652572
This commit is contained in:
parent
ddc7d4df3c
commit
0d5e938ddf
1 changed files with 3 additions and 1 deletions
|
@ -150,8 +150,10 @@ goa_panel_init (GoaPanel *panel)
|
||||||
{
|
{
|
||||||
goa_warning ("Error getting a GoaClient: %s (%s, %d)",
|
goa_warning ("Error getting a GoaClient: %s (%s, %d)",
|
||||||
error->message, g_quark_to_string (error->domain), error->code);
|
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);
|
g_error_free (error);
|
||||||
return;
|
goto out;
|
||||||
}
|
}
|
||||||
g_signal_connect (panel->client,
|
g_signal_connect (panel->client,
|
||||||
"account-changed",
|
"account-changed",
|
||||||
|
|
Loading…
Add table
Reference in a new issue