aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-11 13:37:19 -0500
committerMichael Terry <mike@mterry.name>2011-02-11 13:37:19 -0500
commit86d57d3066eb25150e09050b2e9cd789bc9e56da (patch)
tree0a887f2b3819c646c28a5c98e50281b709bacb74 /src
parent1c384cdf7e601e3786fc1add31d157c0eafa1539 (diff)
downloadlibayatana-appindicator-86d57d3066eb25150e09050b2e9cd789bc9e56da.tar.gz
libayatana-appindicator-86d57d3066eb25150e09050b2e9cd789bc9e56da.tar.bz2
libayatana-appindicator-86d57d3066eb25150e09050b2e9cd789bc9e56da.zip
don't unregister on dbus until after we hide appindicator
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c10
1 files 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;