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)
This commit is contained in:
Matthias Clasen 2006-12-27 06:45:19 +00:00 committed by Matthias Clasen
parent 1bb873464c
commit 6ef83209bd
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-12-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
(#362614, Xan Lopez)
2006-12-27 Matthias Clasen <mclasen@redhat.com> 2006-12-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (update_node): If a required action * gtk/gtkuimanager.c (update_node): If a required action

View File

@ -2239,6 +2239,8 @@ gtk_widget_destroyed (GtkWidget *widget,
void void
gtk_widget_show (GtkWidget *widget) gtk_widget_show (GtkWidget *widget)
{ {
g_return_if_fail (GTK_IS_WIDGET (widget));
if (!GTK_WIDGET_VISIBLE (widget)) if (!GTK_WIDGET_VISIBLE (widget))
{ {
g_object_ref (widget); g_object_ref (widget);