[Xfce4-commits] [apps/xfce4-taskmanager] 10/15: Use gtk_check_menu_item_get_active() instead of poking directly at the active member
noreply at xfce.org
noreply at xfce.org
Mon Dec 8 23:02:09 CET 2014
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch landry/gtk3
in repository apps/xfce4-taskmanager.
commit f76b9973bd8a219fb0bfc4bc80e8c720b731a1a9
Author: Landry Breuil <landry at xfce.org>
Date: Mon Dec 8 22:47:41 2014 +0100
Use gtk_check_menu_item_get_active() instead of poking directly at the active member
---
src/settings-tool-button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/settings-tool-button.c b/src/settings-tool-button.c
index 468185f..9bdfd6e 100644
--- a/src/settings-tool-button.c
+++ b/src/settings-tool-button.c
@@ -73,7 +73,7 @@ show_settings_dialog (XtmSettingsToolButton *button)
static void
refresh_rate_toggled (GtkCheckMenuItem *mi, XtmSettings *settings)
{
- if(mi->active)
+ if(gtk_check_menu_item_get_active(mi))
{
guint refresh_rate = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (mi), "refresh-rate"));
g_object_set (settings, "refresh-rate", refresh_rate, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list