summaryrefslogtreecommitdiff
path: root/gtk/gtkwin32theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkwin32theme.c')
-rw-r--r--gtk/gtkwin32theme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c
index 5b5014ada5..9a86e1fc76 100644
--- a/gtk/gtkwin32theme.c
+++ b/gtk/gtkwin32theme.c
@@ -157,7 +157,7 @@ invalidate_win32_themes (GdkXEvent *xevent,
gpointer theme;
MSG *msg;
- if (!GDK_IS_WIN32_WINDOW (event->any.window))
+ if (!GDK_IS_WIN32_SURFACE (event->any.window))
return GDK_FILTER_CONTINUE;
msg = (MSG *) xevent;
@@ -170,7 +170,7 @@ invalidate_win32_themes (GdkXEvent *xevent,
theme_was_open |= gtk_win32_theme_close (theme);
}
if (theme_was_open)
- gtk_style_context_reset_widgets (gdk_window_get_display (event->any.window));
+ gtk_style_context_reset_widgets (gdk_surface_get_display (event->any.window));
return GDK_FILTER_CONTINUE;
}
@@ -233,7 +233,7 @@ gtk_win32_theme_init (void)
use_xp_theme = FALSE;
}
- gdk_window_add_filter (NULL, invalidate_win32_themes, NULL);
+ gdk_surface_add_filter (NULL, invalidate_win32_themes, NULL);
}
static HTHEME