diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-12-27 06:45:19 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-12-27 06:45:19 +0000 |
commit | 6ef83209bdd09c43eb98e8340ccc2a18d09a098b (patch) | |
tree | 4a2c5cc58bb0547a457c62e250830810a90d1601 /gtk/gtkwidget.c | |
parent | 1bb873464ce8d4be5550d98a6dbc449be149e98a (diff) | |
download | gtk+-6ef83209bdd09c43eb98e8340ccc2a18d09a098b.tar.gz |
Add a g_return_if_fail. (#362614, Xan Lopez)
2006-12-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
(#362614, Xan Lopez)
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 81eee92462..f021bf028d 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -2239,6 +2239,8 @@ gtk_widget_destroyed (GtkWidget *widget, void gtk_widget_show (GtkWidget *widget) { + g_return_if_fail (GTK_IS_WIDGET (widget)); + if (!GTK_WIDGET_VISIBLE (widget)) { g_object_ref (widget); |