On Sun, Jun 08, Frank de Lange wrote:
Sebastian, maybe dw_gtk_scrolled_window needs a method to remove the gadget? I re-use the BrowserWindow's full_screen_off_button gadget in all tabs (reparenting it when needed), but I have to forcibly NULLify the window->gadget attribute to be able to add a new gadget to a dw_gtk_scrolled_window. It is not 'right' to mess with interal widget structures... or am I missing something? The code does not seem to provide a way to remove the gadget once it has been defined.
GtkContainer::remove is implemented for GtkDwScrolledWindow (by Dw_gtk_scrolled_window_remove), so you should be able to destroy, unparent etc. the gadget, the GtkDwScrolledWindow will properly "forget" it. I haven't yet tested this, though. Sebastian