aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-01-07 09:27:01 -0600
committerCody Russell <crussell@canonical.com>2010-01-07 09:27:01 -0600
commitbf0be373898c44e6e9898aeac5813704fca7889e (patch)
treeb7416d03a9e932ce5147742beafec6539745177c /src
parentdd2ed951b8aeb16671bebd2ea104953252ab54a5 (diff)
downloadlibayatana-appindicator-bf0be373898c44e6e9898aeac5813704fca7889e.tar.gz
libayatana-appindicator-bf0be373898c44e6e9898aeac5813704fca7889e.tar.bz2
libayatana-appindicator-bf0be373898c44e6e9898aeac5813704fca7889e.zip
Checkmark support
Diffstat (limited to 'src')
-rw-r--r--src/libappindicator/app-indicator.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index bb68cb2..8e03e07 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -686,15 +686,29 @@ 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);
}
else
{
- label = gtk_menu_item_get_label (GTK_MENU_ITEM (widget));
+ if (GTK_IS_CHECK_MENU_ITEM (widget))
+ {
+ label = gtk_menu_item_get_label (GTK_MENU_ITEM (widget));
+
+ dbusmenu_menuitem_property_set (child,
+ "type",
+ DBUSMENU_MENUITEM_TOGGLE_CHECK);
- if (GTK_IS_IMAGE_MENU_ITEM (widget))
+ dbusmenu_menuitem_property_set (child,
+ DBUSMENU_MENUITEM_PROP_LABEL,
+ label);
+
+ label_set = TRUE;
+ }
+ else if (GTK_IS_IMAGE_MENU_ITEM (widget))
{
GtkWidget *image = gtk_image_menu_item_get_image (GTK_IMAGE_MENU_ITEM (widget));