aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-01-07 10:26:42 -0600
committerCody Russell <crussell@canonical.com>2010-01-07 10:26:42 -0600
commit6bde6a4be29ba003b483b9db76226a95419ce115 (patch)
tree23dfd044d59f5582bb2025a3c6ec3fd1f7ddea08 /src
parentbf0be373898c44e6e9898aeac5813704fca7889e (diff)
downloadlibayatana-appindicator-6bde6a4be29ba003b483b9db76226a95419ce115.tar.gz
libayatana-appindicator-6bde6a4be29ba003b483b9db76226a95419ce115.tar.bz2
libayatana-appindicator-6bde6a4be29ba003b483b9db76226a95419ce115.zip
More checkbox related updates.
Diffstat (limited to 'src')
-rw-r--r--src/libappindicator/app-indicator.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index 8e03e07..ee3fd7c 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -686,8 +686,6 @@ container_iterate (GtkWidget *widget,
if (GTK_IS_SEPARATOR_MENU_ITEM (widget))
{
- label = gtk_menu_item_get_label (GTK_MENU_ITEM (widget));
-
dbusmenu_menuitem_property_set (child,
"type",
DBUSMENU_CLIENT_TYPES_SEPARATOR);
@@ -699,13 +697,17 @@ container_iterate (GtkWidget *widget,
label = gtk_menu_item_get_label (GTK_MENU_ITEM (widget));
dbusmenu_menuitem_property_set (child,
- "type",
+ DBUSMENU_MENUITEM_PROP_TOGGLE_TYPE,
DBUSMENU_MENUITEM_TOGGLE_CHECK);
dbusmenu_menuitem_property_set (child,
DBUSMENU_MENUITEM_PROP_LABEL,
label);
+ dbusmenu_menuitem_property_set (child,
+ DBUSMENU_MENUITEM_PROP_TOGGLE_CHECKED,
+ "checked");
+
label_set = TRUE;
}
else if (GTK_IS_IMAGE_MENU_ITEM (widget))