Re: GtkInvisible - a subclass of GtkWidget or GtkBin?




Damon Chaplin <damon@karuna.freeserve.co.uk> writes:

> The GtkInvisible widget has GtkBin at the start of its struct, yet uses
> GTK_WIDGET_TYPE when creating its type:
> 
>    invisible_type = gtk_type_unique (GTK_TYPE_WIDGET, &invisible_info);
> 
> 
> Is it meant to be a subclass of GtkWidget or GtkBin?

GtkWidget. I copied some code from GtkWindow, so that's
probably where the mistake came from. (It's pretty harmless,
since GtkBin only adds 4 bytes)

                                        Owen 



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