aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-22 13:50:27 -0500
committerTed Gould <ted@gould.cx>2011-07-22 13:50:27 -0500
commit195a64f16c356b1b75c81ec374699c94c636fbe2 (patch)
treeb84569e98a19ea51c309481929b296629f6cb8c2 /src/app-indicator.c
parentbeb4f164b808f2dbb3fffa6ed85c931c2710a924 (diff)
downloadlibayatana-appindicator-195a64f16c356b1b75c81ec374699c94c636fbe2.tar.gz
libayatana-appindicator-195a64f16c356b1b75c81ec374699c94c636fbe2.tar.bz2
libayatana-appindicator-195a64f16c356b1b75c81ec374699c94c636fbe2.zip
Always clear the sec_activate_target
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r--src/app-indicator.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 1dc91d8..98aec7a 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -2077,15 +2077,15 @@ app_indicator_set_secondary_activate_target (AppIndicator *self, GtkWidget *menu
g_return_if_fail (IS_APP_INDICATOR (self));
AppIndicatorPrivate *priv = self->priv;
- if (menuitem == NULL) {
- if (priv->sec_activate_target) {
- g_object_unref(G_OBJECT(priv->sec_activate_target));
- g_signal_handlers_disconnect_by_func (priv->sec_activate_target,
- sec_activate_target_parent_changed,
- self);
- priv->sec_activate_target = NULL;
- }
+ if (priv->sec_activate_target) {
+ g_signal_handlers_disconnect_by_func (priv->sec_activate_target,
+ sec_activate_target_parent_changed,
+ self);
+ g_object_unref(G_OBJECT(priv->sec_activate_target));
+ priv->sec_activate_target = NULL;
+ }
+ if (menuitem == NULL) {
return;
}