[gnome-terminal] all: Fix -Wshadow warning



commit 09b11498d08999f5f3cc8b00507ed81090920d16
Author: Christian Persch <chpe gnome org>
Date:   Mon Apr 16 18:35:36 2012 +0200

    all: Fix -Wshadow warning

 src/terminal-window.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index d33dd9e..f56bbbb 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1480,9 +1480,10 @@ terminal_window_map_event (GtkWidget    *widget,
   if (priv->clear_demands_attention)
     {
 #ifdef GDK_WINDOWING_X11
-      GdkWindow *window = gtk_widget_get_window (widget);
-      if (GDK_IS_X11_WINDOW (window))
-	terminal_util_x11_clear_demands_attention (window);
+      GdkWindow *gdk_window = gtk_widget_get_window (widget);
+
+      if (GDK_IS_X11_WINDOW (gdk_window))
+	terminal_util_x11_clear_demands_attention (gdk_window);
 #endif
 
       priv->clear_demands_attention = FALSE;



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