Re: Removing a widget



Why not gtk_widget_reparent? Or, more precisely, when is it safe to use
gtk_widget_reparent?

Havoc Pennington wrote:
> 
> To "move" a widget:
> 
> gtk_widget_ref(child);
> gtk_container_remove(container, child);
> gtk_container_add(new_container, child);
> gtk_widget_unref(child);
> 
> Havoc

-- 
Harold



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]