gtk+ r22082 - in trunk: . gdk
- From: cdywan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22082 - in trunk: . gdk
- Date: Fri, 9 Jan 2009 13:47:02 +0000 (UTC)
Author: cdywan
Date: Fri Jan 9 13:47:02 2009
New Revision: 22082
URL: http://svn.gnome.org/viewvc/gtk+?rev=22082&view=rev
Log:
2009-01-09 Christian Dywan <christian imendio com>
Fail in gdk_window_new if _gdk_window_new failed
* gdk/gdkwindow.c (gdk_window_new): Add g_return_val_if_fail
in case _gdk_window_new is NULL. Approved by Tim Janik
Modified:
trunk/ChangeLog
trunk/gdk/gdkwindow.c
Modified: trunk/gdk/gdkwindow.c
==============================================================================
--- trunk/gdk/gdkwindow.c (original)
+++ trunk/gdk/gdkwindow.c Fri Jan 9 13:47:02 2009
@@ -373,6 +373,7 @@
g_return_val_if_fail (attributes != NULL, NULL);
window = _gdk_window_new (parent, attributes, attributes_mask);
+ g_return_val_if_fail (window != NULL, window);
/* Inherit redirection from parent */
if (parent != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]