diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-04-27 12:56:32 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-04-28 12:38:23 +0300 |
commit | b3ab069a9aa3ffb48bbf143a6fb31cf4128f2672 (patch) | |
tree | 2cf7b726bbbde9eaa49f4e0e6c5efce1b7f2afa8 /libwnck | |
parent | a44be55bb97bf2f5d405677ce413cd13323f6a65 (diff) | |
download | libwnck-b3ab069a9aa3ffb48bbf143a6fb31cf4128f2672.tar.gz |
window-action-menu: fix 'mixed declarations and code' warning
Diffstat (limited to 'libwnck')
-rw-r--r-- | libwnck/window-action-menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libwnck/window-action-menu.c b/libwnck/window-action-menu.c index e586fe3..3e9a386 100644 --- a/libwnck/window-action-menu.c +++ b/libwnck/window-action-menu.c @@ -1139,10 +1139,12 @@ wnck_action_menu_dispose (GObject *object) if (WNCK_IS_WINDOW (menu->priv->window)) { + WnckScreen *screen; + g_object_weak_unref (G_OBJECT (menu->priv->window), window_weak_notify, menu); g_signal_handlers_disconnect_by_data (menu->priv->window, menu); - WnckScreen *screen = wnck_window_get_screen (menu->priv->window); + screen = wnck_window_get_screen (menu->priv->window); g_signal_handlers_disconnect_by_data (screen, menu); menu->priv->window = NULL; |