aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}