[libwnck/wip/warnings2: 3/6] window-action-menu: fix 'mixed declarations and code' warning



commit 6d3d1cababd2c6ecb2a7a4eb2fc898ebdb3450ef
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Apr 27 12:56:32 2017 +0300

    window-action-menu: fix 'mixed declarations and code' warning

 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]