diff options
author | Ted Gould <ted@gould.cx> | 2011-04-05 11:03:26 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-04-05 11:03:26 -0500 |
commit | 30fc6c2185d3e72cc4e797cdfcf31b13bfe36329 (patch) | |
tree | 16bf67c66b217386fba64d0e21b972bfcdf9c000 /libdbusmenu-glib | |
parent | b9264d159d19e434e60b0db13fb972198d5595b1 (diff) | |
download | libdbusmenu-30fc6c2185d3e72cc4e797cdfcf31b13bfe36329.tar.gz libdbusmenu-30fc6c2185d3e72cc4e797cdfcf31b13bfe36329.tar.bz2 libdbusmenu-30fc6c2185d3e72cc4e797cdfcf31b13bfe36329.zip |
Now that we're using the child-display variable more, let's grab it in the first pass.
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index ef89705..96fbd92 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -331,6 +331,8 @@ dbusmenu_client_class_init (DbusmenuClientClass *klass) return; } +#define LAYOUT_PROPS_COUNT 5 + static void dbusmenu_client_init (DbusmenuClient *self) { @@ -351,13 +353,14 @@ dbusmenu_client_init (DbusmenuClient *self) priv->layoutcall = NULL; - gchar * layout_props[5]; + gchar * layout_props[LAYOUT_PROPS_COUNT + 1]; layout_props[0] = DBUSMENU_MENUITEM_PROP_TYPE; layout_props[1] = DBUSMENU_MENUITEM_PROP_LABEL; 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); + layout_props[4] = DBUSMENU_MENUITEM_PROP_CHILD_DISPLAY; + layout_props[LAYOUT_PROPS_COUNT] = NULL; + priv->layout_props = g_variant_new_strv((const gchar * const *)layout_props, LAYOUT_PROPS_COUNT); g_variant_ref_sink(priv->layout_props); priv->current_revision = 0; |