From cca3468ea7fcb8d4e96fb7af9b10ba9e23f49a25 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 30 Mar 2012 11:28:34 -0500 Subject: Start by adding the data we're going to need to our private structure --- libdbusmenu-glib/client.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 7d96db3..3fb5e2c 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -100,6 +100,10 @@ struct _DbusmenuClientPrivate DbusmenuTextDirection text_direction; DbusmenuStatus status; GStrv icon_dirs; + + gboolean group_events; + gulong event_idle; + GVariantBuilder events_to_go; }; typedef struct _newItemPropData newItemPropData; @@ -380,6 +384,10 @@ dbusmenu_client_init (DbusmenuClient *self) priv->status = DBUSMENU_STATUS_NORMAL; priv->icon_dirs = NULL; + priv->group_events = FALSE; + priv->event_idle = 0; + /* Note: Not initing events_to_go */ + return; } @@ -393,6 +401,15 @@ dbusmenu_client_dispose (GObject *object) priv->delayed_idle = 0; } + if (priv->event_idle != 0) { + g_source_remove(priv->event_idle); + priv->event_idle = 0; + + GVariant * data = g_variant_builder_end(&priv->events_to_go); + g_variant_ref_sink(data); + g_variant_unref(data); + } + /* Only used for queueing up a new command, so we can just drop this array. */ if (priv->delayed_property_list != NULL) { -- cgit v1.2.3