[gtk+] win32: Move variable definition to not cause gcc warning



commit c2dd3c0d89782c564adaabdc40e4268b7da286a8
Author: Benjamin Otte <otte redhat com>
Date:   Sun Feb 21 04:55:55 2016 +0100

    win32: Move variable definition to not cause gcc warning
    
    It's only used on win32, so only define it there.

 gtk/gtkwin32theme.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c
index 50d4563..282c414 100644
--- a/gtk/gtkwin32theme.c
+++ b/gtk/gtkwin32theme.c
@@ -480,12 +480,11 @@ int
 gtk_win32_theme_get_size (GtkWin32Theme *theme,
                          int            id)
 {
-  int size;
-
 #ifdef G_OS_WIN32
   if (use_xp_theme && GetThemeSysSize != NULL)
     {
       HTHEME htheme = gtk_win32_theme_get_htheme (theme);
+      int size;
 
       /* If htheme is NULL it will just return the GetSystemMetrics value */
       size = GetThemeSysSize (htheme, id);


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