Commit 5585ce9e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Silently do nothing if the widget is not a child. (Coverity)

2006-04-12  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_remove): Silently do nothing
        if the widget is not a child.  (Coverity)
parent 3f201df5
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_remove): Silently do nothing
if the widget is not a child. (Coverity)
2006-04-11 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkkeys-x11.c (get_xkb): Return early in error
......
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_remove): Silently do nothing
if the widget is not a child. (Coverity)
2006-04-11 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkkeys-x11.c (get_xkb): Return early in error
......
......@@ -3299,7 +3299,10 @@ gtk_notebook_remove (GtkContainer *container,
page_num++;
children = children->next;
}
if (children == NULL)
return;
g_object_ref (widget);
gtk_notebook_real_remove (notebook, children);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment