mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 13:40:31 +00:00
win32: Move variable definition to not cause gcc warning
It's only used on win32, so only define it there.
This commit is contained in:
parent
00559e1b86
commit
c2dd3c0d89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user