summaryrefslogtreecommitdiff
path: root/gdk/gdkpixmap.c
diff options
context:
space:
mode:
authorErwann Chenede - <erwann.chenede@sun.com>2002-05-01 17:42:08 +0000
committerErwann Chenede <erwannc@src.gnome.org>2002-05-01 17:42:08 +0000
commitf7ecb81e15a8c2f88b3785dce6513cac0da4494b (patch)
treed179ae3b1cd48e5af4748b8be5e7ee99155cb309 /gdk/gdkpixmap.c
parent24bd8c4579240d6c0b9f79a82ebb7026b2c4538d (diff)
downloadgtk+-f7ecb81e15a8c2f88b3785dce6513cac0da4494b.tar.gz
removed that function as gdk_drawable_get_screen does the job. #79964
2002-05-01 Erwann Chenede - <erwann.chenede@sun.com> * gdk/gdkpixmap.[hc] (gdk_pixmap_get_screen): * x11/gdkpixmap-x11.c: removed that function as gdk_drawable_get_screen does the job. #79964
Diffstat (limited to 'gdk/gdkpixmap.c')
-rw-r--r--gdk/gdkpixmap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c
index 46a19f5608..f2bf19e199 100644
--- a/gdk/gdkpixmap.c
+++ b/gdk/gdkpixmap.c
@@ -135,6 +135,7 @@ static gint gdk_pixmap_real_get_depth (GdkDrawable *drawable);
static void gdk_pixmap_real_set_colormap (GdkDrawable *drawable,
GdkColormap *cmap);
static GdkColormap* gdk_pixmap_real_get_colormap (GdkDrawable *drawable);
+static GdkScreen* gdk_pixmap_real_get_screen (GdkDrawable *drawable);
static void gdk_pixmap_init (GdkPixmapObject *pixmap);
static void gdk_pixmap_class_init (GdkPixmapObjectClass *klass);
@@ -201,7 +202,7 @@ gdk_pixmap_class_init (GdkPixmapObjectClass *klass)
drawable_class->draw_image = gdk_pixmap_draw_image;
drawable_class->_draw_pixbuf = gdk_pixmap_draw_pixbuf;
drawable_class->get_depth = gdk_pixmap_real_get_depth;
- drawable_class->get_screen = gdk_pixmap_get_screen;
+ drawable_class->get_screen = gdk_pixmap_real_get_screen;
drawable_class->get_size = gdk_pixmap_real_get_size;
drawable_class->set_colormap = gdk_pixmap_real_set_colormap;
drawable_class->get_colormap = gdk_pixmap_real_get_colormap;
@@ -622,3 +623,8 @@ gdk_pixmap_create_from_xpm_d (GdkWindow *window,
transparent_color, data);
}
+static GdkScreen*
+gdk_pixmap_real_get_screen (GdkDrawable *drawable)
+{
+ return gdk_drawable_get_screen (GDK_PIXMAP_OBJECT (drawable)->impl);
+}