Re: Creating a widget without a window

Date view Thread view Subject view Author view

From: Miguel de Icaza (miguel@gnu.org)
Date: Wed Dec 29 1999 - 23:26:56 EST


> I want to include a widget created with Glade in
> a dialog which I have already written.
> The problem is, that that I can't create the
> glade widget without a window around it.
> I tried to remove it:
>
> window=create_gladewidget();
> list=gtk_container_children(GTK_CONTAINER(window));
> widget=GTK_WIDGET(list->data);
> g_list_free(list);
> gtk_container_remove(GTK_CONTAINER(window),widget);
> gtk_widget_destroy(window);

What you can do is do a gtk_widget_reparent on the chile you want, and
then destroy the container.

Miguel.

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to majordomo@ncis.pn.org
with the line "unsubscribe glade-devel" in the body of the message.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 19:26:34 EDT