gtk+ r20187 - in trunk: . gtk
- From: timj svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20187 - in trunk: . gtk
- Date: Tue, 27 May 2008 08:35:24 +0000 (UTC)
Author: timj
Date: Tue May 27 08:35:24 2008
New Revision: 20187
URL: http://svn.gnome.org/viewvc/gtk+?rev=20187&view=rev
Log:
2008-05-27 10:33:41 Tim Janik <timj imendio com>
* gtk/gtkwidget.c: guard gtk_widget_get_snapshot() against
invalid or invisible widgets.
Modified:
trunk/ChangeLog
trunk/gtk/gtkwidget.c
Modified: trunk/gtk/gtkwidget.c
==============================================================================
--- trunk/gtk/gtkwidget.c (original)
+++ trunk/gtk/gtkwidget.c Tue May 27 08:35:24 2008
@@ -8356,6 +8356,10 @@
GdkPixmap *pixmap;
GList *windows = NULL, *list;
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+ if (!GTK_WIDGET_VISIBLE (widget))
+ return NULL;
+
/* the widget (and parent_window) must be realized to be drawable */
if (widget->parent && !GTK_WIDGET_REALIZED (widget->parent))
gtk_widget_realize (widget->parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]