From 86d57d3066eb25150e09050b2e9cd789bc9e56da Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Fri, 11 Feb 2011 13:37:19 -0500 Subject: don't unregister on dbus until after we hide appindicator --- src/app-indicator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app-indicator.c b/src/app-indicator.c index f4e9173..79ced0a 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -579,11 +579,6 @@ app_indicator_dispose (GObject *object) AppIndicator *self = APP_INDICATOR (object); AppIndicatorPrivate *priv = self->priv; - if (priv->dbus_registration != 0) { - g_dbus_connection_unregister_object(priv->connection, priv->dbus_registration); - priv->dbus_registration = 0; - } - if (priv->shorties != NULL) { g_object_unref(G_OBJECT(priv->shorties)); priv->shorties = NULL; @@ -632,6 +627,11 @@ app_indicator_dispose (GObject *object) g_signal_emit (self, signals[CONNECTION_CHANGED], 0, FALSE); } + if (priv->dbus_registration != 0) { + g_dbus_connection_unregister_object(priv->connection, priv->dbus_registration); + priv->dbus_registration = 0; + } + if (priv->connection != NULL) { g_object_unref(G_OBJECT(priv->connection)); priv->connection = NULL; -- cgit v1.2.3