[gnome-terminal] all: Fix -Wdeclaration-after-statement warning
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] all: Fix -Wdeclaration-after-statement warning
- Date: Thu, 3 May 2012 19:07:42 +0000 (UTC)
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]