[gtk+] win32: Move init code into windows-specific code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: Move init code into windows-specific code
- Date: Thu, 11 Feb 2016 03:15:37 +0000 (UTC)
commit 88b7dfdb1eebddf6be7ecd008b4419661480d645
Author: Benjamin Otte <otte redhat com>
Date: Thu Feb 11 04:14:28 2016 +0100
win32: Move init code into windows-specific code
Avoids warnings about undefined functions on non-windows.
gtk/gtkwin32theme.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c
index a430f99..167abf3 100644
--- a/gtk/gtkwin32theme.c
+++ b/gtk/gtkwin32theme.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]