aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-07 10:53:27 -0600
committerTed Gould <ted@gould.cx>2010-01-07 10:53:27 -0600
commit52eae1022d9bd79f24b2c85c63b40ce6d51c0389 (patch)
tree5c14fd732ca583afdeccd2d681d34db25ae0165f
parentb55ffff099bd5e808d6f8b25dc8dec902f9d3663 (diff)
downloadlibdbusmenu-52eae1022d9bd79f24b2c85c63b40ce6d51c0389.tar.gz
libdbusmenu-52eae1022d9bd79f24b2c85c63b40ce6d51c0389.tar.bz2
libdbusmenu-52eae1022d9bd79f24b2c85c63b40ce6d51c0389.zip
Using the state defines for the check state.
-rw-r--r--libdbusmenu-gtk/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbusmenu-gtk/client.c b/libdbusmenu-gtk/client.c
index aba98f4..4a8637a 100644
--- a/libdbusmenu-gtk/client.c
+++ b/libdbusmenu-gtk/client.c
@@ -176,9 +176,9 @@ process_toggle_checked (DbusmenuMenuitem * mi, GtkMenuItem * gmi, const GValue *
if (value != NULL && G_VALUE_TYPE(value) == G_TYPE_STRING) {
const gchar * strval = g_value_get_string(value);
- if (!g_strcmp0(strval, "checked")) {
+ if (!g_strcmp0(strval, DBUSMENU_MENUITEM_TOGGLE_STATE_CHECKED)) {
state = GENERICMENUITEM_STATE_CHECKED;
- } else if (!g_strcmp0(strval, "indeterminate")) {
+ } else if (!g_strcmp0(strval, DBUSMENU_MENUITEM_TOGGLE_STATE_UNKNOWN)) {
state = GENERICMENUITEM_STATE_INDETERMINATE;
}
}