[gnome-terminal] all: Fix -Wdeclaration-after-statement warning



commit 4666737744f5d4c7088154a5e386042707af7422
Author: Christian Persch <chpe gnome org>
Date:   Mon Apr 16 18:40:51 2012 +0200

    all: Fix -Wdeclaration-after-statement warning

 src/terminal-util.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/terminal-util.c b/src/terminal-util.c
index 47d908a..469cd54 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -898,9 +898,6 @@ gboolean
 terminal_util_x11_window_is_minimized (GdkWindow *window)
 {
   GdkDisplay *display;
-
-  display = gdk_window_get_display (window);
-
   Atom type;
   gint format;
   gulong nitems;
@@ -908,9 +905,10 @@ terminal_util_x11_window_is_minimized (GdkWindow *window)
   guchar *data;
   Atom *atoms = NULL;
   gulong i;
-
   gboolean minimized = FALSE;
 
+  display = gdk_window_get_display (window);
+
   type = None;
   gdk_error_trap_push ();
   XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display), GDK_WINDOW_XID (window),



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