[Xfce4-commits] <xfce4-panel:xfce-4.8> Deactivate menu button if loading menu failed.
Nick Schermer
noreply at xfce.org
Sat Jan 29 21:26:22 CET 2011
Updating branch refs/heads/xfce-4.8
to f3063104180157e7dd029faeccb513ba34c737a4 (commit)
from 15a5fa2fb459aa175e4b6f98e341bdff0395eccd (commit)
commit f3063104180157e7dd029faeccb513ba34c737a4
Author: Nick Schermer <nick at xfce.org>
Date: Sun Jan 23 20:37:24 2011 +0100
Deactivate menu button if loading menu failed.
plugins/applicationsmenu/applicationsmenu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/plugins/applicationsmenu/applicationsmenu.c b/plugins/applicationsmenu/applicationsmenu.c
index 8098767..a0fc8af 100644
--- a/plugins/applicationsmenu/applicationsmenu.c
+++ b/plugins/applicationsmenu/applicationsmenu.c
@@ -1033,6 +1033,8 @@ applications_menu_plugin_menu (GtkWidget *button,
xfce_dialog_show_error (NULL, error, _("Failed to load the applications menu"));
g_error_free (error);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
+
if (G_LIKELY (menu != NULL))
g_object_unref (G_OBJECT (menu));
More information about the Xfce4-commits
mailing list