Re: GtkInvisible - a subclass of GtkWidget or GtkBin?



On Wed, 17 Mar 1999, Damon Chaplin wrote:

> 
> 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. it is used as an internal widget for interprocess communication in
the dnd code only.

> (GTK+ 1.2.0)

the GtkBin in the structure declaration should probably be changed to
GtkWidget, but not for 1.2.x since that would break binary compatibility
(though no one would probably notice). it is the correct thing for
CVS HEAD though.

> 
> Damon
> 

---
ciaoTJ



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