Re: dialog



>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]