[gtk+/client-side-windows: 26/284] gdk_pixmap_new - drawable may be NULL
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 26/284] gdk_pixmap_new - drawable may be NULL
- Date: Thu, 2 Apr 2009 14:01:54 -0400 (EDT)
commit be863a9056f905e0adea32d5aea8d5a19a0a4932
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 4 22:24:07 2008 +0100
gdk_pixmap_new - drawable may be NULL
---
gdk/gdkpixmap.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c
index be1d3a2..2b6e073 100644
--- a/gdk/gdkpixmap.c
+++ b/gdk/gdkpixmap.c
@@ -237,7 +237,10 @@ gdk_pixmap_new (GdkDrawable *drawable,
{
GdkDrawable *source_drawable;
- source_drawable = _gdk_drawable_get_source_drawable (drawable);
+ if (drawable)
+ source_drawable = _gdk_drawable_get_source_drawable (drawable);
+ else
+ source_drawable = NULL;
return _gdk_pixmap_new (source_drawable, width, height, depth);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]