summaryrefslogtreecommitdiff
path: root/gdk/gdkoffscreenwindow.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-29 01:05:59 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:32 +0200
commiteee6c002d1fd5359e8e588c7b13fa4074382a05d (patch)
tree099769942bddd28b94a5b00086d713c703fa6e74 /gdk/gdkoffscreenwindow.c
parent894d402c0fe3246b22da0d5e05f96227899c7686 (diff)
downloadgtk+-eee6c002d1fd5359e8e588c7b13fa4074382a05d.tar.gz
gdk: store the visual in the GdkWindowObject
Diffstat (limited to 'gdk/gdkoffscreenwindow.c')
-rw-r--r--gdk/gdkoffscreenwindow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index e231f62a3f..37cf41b361 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -175,7 +175,6 @@ gdk_offscreen_window_get_visual (GdkDrawable *drawable)
void
_gdk_offscreen_window_new (GdkWindow *window,
GdkScreen *screen,
- GdkVisual *visual,
GdkWindowAttr *attributes,
gint attributes_mask)
{
@@ -202,13 +201,13 @@ _gdk_offscreen_window_new (GdkWindow *window,
offscreen->colormap = g_object_ref (attributes->colormap);
else
{
- if (gdk_screen_get_system_visual (screen) == visual)
+ if (gdk_screen_get_system_visual (screen) == private->visual)
{
offscreen->colormap = gdk_screen_get_system_colormap (screen);
g_object_ref (offscreen->colormap);
}
else
- offscreen->colormap = gdk_colormap_new (visual, FALSE);
+ offscreen->colormap = gdk_colormap_new (private->visual, FALSE);
}
offscreen->surface = gdk_window_create_similar_surface ((GdkWindow *)private->parent,