aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))