diff options
author | Ted Gould <ted@gould.cx> | 2011-02-23 11:28:12 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-23 11:28:12 -0600 |
commit | 749be25d3f7736e518b3d33d3d64349118bfdf84 (patch) | |
tree | 52a805e49afea016092f74176d574ee747a3da61 | |
parent | 3887a48a9c3557c396b472f7a8bb95101a025d0d (diff) | |
download | libdbusmenu-749be25d3f7736e518b3d33d3d64349118bfdf84.tar.gz libdbusmenu-749be25d3f7736e518b3d33d3d64349118bfdf84.tar.bz2 libdbusmenu-749be25d3f7736e518b3d33d3d64349118bfdf84.zip |
Adding visible and enabled to the initial grab.
-rw-r--r-- | libdbusmenu-glib/client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index d990b93..b6a00fc 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -317,11 +317,13 @@ dbusmenu_client_init (DbusmenuClient *self) priv->layoutcall = NULL; - gchar * layout_props[3]; + gchar * layout_props[5]; layout_props[0] = DBUSMENU_MENUITEM_PROP_TYPE; layout_props[1] = DBUSMENU_MENUITEM_PROP_LABEL; - layout_props[2] = NULL; - priv->layout_props = g_variant_new_strv((const gchar * const *)layout_props, 2); + layout_props[2] = DBUSMENU_MENUITEM_PROP_VISIBLE; + layout_props[3] = DBUSMENU_MENUITEM_PROP_ENABLED; + layout_props[4] = NULL; + priv->layout_props = g_variant_new_strv((const gchar * const *)layout_props, 4); g_variant_ref_sink(priv->layout_props); priv->current_revision = 0; |