Hi all,

the following code snippet does not to work:

    GtkWidget *child = glade_xml_get_widget( xml, "child_name");
    GtkWidget *parent = glade_xml_get_widget( xml, "parent_name");

        gtk_widget_ref( child);
        gtk_container_remove( GTK_CONTAINER( parent), child);

Basically, the call to gtk_container_remove() seems to destroy the
child widget, which suggest that the child's reference count is not
incremented by the call to gtk_widget_ref().

Could someone enlighten me on why this does not seem to work.

Thanks,

Edgar.

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to