From 8ce427620878340e5449a227b452110ceb47cde4 Mon Sep 17 00:00:00 2001 From: Erwann Chenede Date: Tue, 28 Aug 2001 14:33:43 +0000 Subject: [PATCH] fixed colormap ref count problem and Image grab problem --- gdk/x11/gdkimage-x11.c | 4 ++-- gdk/x11/gdkscreen-x11.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gdk/x11/gdkimage-x11.c b/gdk/x11/gdkimage-x11.c index d037d2b033..d14c8d1fa8 100644 --- a/gdk/x11/gdkimage-x11.c +++ b/gdk/x11/gdkimage-x11.c @@ -413,8 +413,8 @@ _gdk_x11_get_image (GdkDrawable *drawable, /* Translate screen area into window coordinates */ - XTranslateCoordinates (GDK_DRAWABLE_XDISPLAY (drawable), - GDK_SCREEN_XROOTWIN (visual->screen), + XTranslateCoordinates (GDK_SCREEN_XDISPLAY(impl->screen), + GDK_SCREEN_XROOTWIN (impl->screen), impl->xid, 0, 0, &screen_rect.x, &screen_rect.y, diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 01a8f05a5a..afca78b6de 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -157,9 +157,7 @@ gdk_X11_screen_set_default_colormap (GdkScreen * screen, GdkColormap * colormap) { GdkScreenImplX11 *scr_impl = GDK_SCREEN_IMPL_X11 (screen); - gdk_colormap_unref (scr_impl->default_colormap); scr_impl->default_colormap = colormap; - gdk_colormap_ref (scr_impl->default_colormap); } static GdkWindow *