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



commit e9a25534c3523905661c411c8c647be0152bbca6
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 47b09f8..baef819 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]