Re: dialog
- From: Pauli Virtanen <virtanen jytko jyu fi>
- To: gtk-list redhat com
- Subject: Re: dialog
- Date: Sun, 11 Oct 1998 12:54:54 +0300 (EETDST)
>oh, oh, don't ever do this!
>what you want is something like (off head):
>void
>embed_dialog (GtkWidget *window /* e.g. a dialog from popup_sole_dialog() */,
> GtkWidget *parent /* e.g. a scrolled window */)
>{
> GtkWidget *child;
>
> child = GTK_BIN (window)->child;
> if (child)
> gtk_widget_reparent (child, parent);
>
> gtk_widget_destroy (window);
>{
Thanks a lot. I've wondered what is this BIN,
but haven't found it documented anywhere.
pauli
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]