diff options
author | Cody Russell <crussell@canonical.com> | 2010-01-07 10:26:42 -0600 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-01-07 10:26:42 -0600 |
commit | 6bde6a4be29ba003b483b9db76226a95419ce115 (patch) | |
tree | 23dfd044d59f5582bb2025a3c6ec3fd1f7ddea08 /src/libappindicator | |
parent | bf0be373898c44e6e9898aeac5813704fca7889e (diff) | |
download | libayatana-appindicator-6bde6a4be29ba003b483b9db76226a95419ce115.tar.gz libayatana-appindicator-6bde6a4be29ba003b483b9db76226a95419ce115.tar.bz2 libayatana-appindicator-6bde6a4be29ba003b483b9db76226a95419ce115.zip |
More checkbox related updates.
Diffstat (limited to 'src/libappindicator')
-rw-r--r-- | src/libappindicator/app-indicator.c | 8 |
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)) |