aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-11 21:32:01 -0600
committerTed Gould <ted@gould.cx>2010-11-11 21:32:01 -0600
commit1d3ca65fb6f35c8b25f373d988d777fd6f8ce6f0 (patch)
treeb7512600716bc1fb2f38b47b41b46afe195c04e6
parentd089c385b260d54d7521c277ebc875a3017d7f96 (diff)
downloadlibayatana-appindicator-1d3ca65fb6f35c8b25f373d988d777fd6f8ce6f0.tar.gz
libayatana-appindicator-1d3ca65fb6f35c8b25f373d988d777fd6f8ce6f0.tar.bz2
libayatana-appindicator-1d3ca65fb6f35c8b25f373d988d777fd6f8ce6f0.zip
Adding shorties as a private variable
-rw-r--r--src/app-indicator.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 318a056..138498c 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -91,6 +91,9 @@ struct _AppIndicatorPrivate {
DBusGProxy *watcher_proxy;
DBusGConnection *connection;
DBusGProxy * dbus_proxy;
+
+ /* Might be used */
+ IndicatorDesktopShortcuts * shorties;
};
/* Signals Stuff */
@@ -568,6 +571,8 @@ app_indicator_init (AppIndicator *self)
priv->status_icon = NULL;
priv->fallback_timer = 0;
+ priv->shorties = NULL;
+
/* Put the object on DBus */
GError * error = NULL;
priv->connection = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
@@ -594,6 +599,11 @@ app_indicator_dispose (GObject *object)
AppIndicator *self = APP_INDICATOR (object);
AppIndicatorPrivate *priv = self->priv;
+ if (priv->shorties != NULL) {
+ g_object_unref(G_OBJECT(priv->shorties));
+ priv->shorties = NULL;
+ }
+
if (priv->status != APP_INDICATOR_STATUS_PASSIVE) {
app_indicator_set_status(self, APP_INDICATOR_STATUS_PASSIVE);
}