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

Re: Possible typo in item-grid code?



>  I am looking at various parts of Gnumeric while trying to learn how
>  GTK+ objects in GnomeCanvas work.
>  
>  In src/item-grid.c I read
>  
>  static GnomeCanvasItem *item_grid_parent_class;
>  
>  But now that I understand what it's for, this seems stupid. Shouldn't it
>  be either:
>  
>  static GnomeCanvasItemClass *item_grid_parent_class;
>  OR
>  static GtkObjectClass *item_grid_parent_class;

Yes, thanks a lot for pointing this out.  It should be a
GnomeCanvasItemClass *.  I already committed a patch.

You may want to look at simpler or more general examples of canvas
items; Gnumeric can get away with many assumptions.  In particular I
declare GnomeCanvasPixbuf in the gdk-pixbuf module to be Done Right(tm) :-)

  Federico



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