Re: gtk_container_replace function.



Chema Celorio <chema ximian com> writes:

> I had to hack a function to replace a widget inside a container for
> another widget, I am suggesting moving this functionality into gtk
> because i have seen a couple of apps hack a similar functionality.
> The prototype will be :
> 
> gtk_container_replace (GtkContainer *container, GtkWidget *old_widget,
> GtkWidget *new_widget);
> 
> I have solved _my_ problem already, but i believe this functionality
> will be better off inside gtk. When apps have to hack a function like
> this they end up messing with the internals of the widgets/containers
> and we should avoid it if possible.

Can you propose how you would implement this function? 

When would you want to do this in an normal application? (Most
applications that want to do something like this simply use a box
containing both, and hide/show as needed.)

Regards,
                                        Owen




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