summaryrefslogtreecommitdiff
path: root/gdk/gdkimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/gdkimage.c')
-rw-r--r--gdk/gdkimage.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdk/gdkimage.c b/gdk/gdkimage.c
index d5b145cfb2..1d1c09c5ef 100644
--- a/gdk/gdkimage.c
+++ b/gdk/gdkimage.c
@@ -411,3 +411,13 @@ _gdk_image_get_scratch (GdkScreen *screen,
#endif
return image;
}
+
+GdkImage*
+gdk_image_new (GdkImageType type,
+ GdkVisual *visual,
+ gint width,
+ gint height)
+{
+ return _gdk_image_new_for_depth (gdk_visual_get_screen (visual), type,
+ visual, width, height, -1);
+}