mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
win32: Move init code into windows-specific code
Avoids warnings about undefined functions on non-windows.
This commit is contained in:
parent
4dfbaccd67
commit
88b7dfdb1e
@ -157,7 +157,7 @@ invalidate_win32_themes (GdkXEvent *xevent,
|
||||
}
|
||||
|
||||
static void
|
||||
_gtk_win32_theme_init (void)
|
||||
gtk_win32_theme_init (void)
|
||||
{
|
||||
char *buf;
|
||||
char dummy;
|
||||
@ -224,6 +224,8 @@ gtk_win32_theme_get_htheme (GtkWin32Theme *theme)
|
||||
guint16 *wclass;
|
||||
char *lower;
|
||||
|
||||
gtk_win32_theme_init ();
|
||||
|
||||
if (theme->htheme)
|
||||
return theme->htheme;
|
||||
|
||||
@ -244,8 +246,6 @@ gtk_win32_theme_lookup (const char *classname)
|
||||
{
|
||||
GtkWin32Theme *theme;
|
||||
|
||||
_gtk_win32_theme_init ();
|
||||
|
||||
theme = g_hash_table_lookup (themes_by_class, classname);
|
||||
|
||||
if (theme != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user