[Sugar-devel] Two strange files in sugar-toolkit-gtk3

Benjamin Berg benzea at sugarlabs.org
Wed Jul 4 03:23:12 EDT 2012


On Tue, 2012-07-03 at 17:40 -0300, S. Daniel Francis wrote:
> I was looking at the sources of sugar-toolkit-gtk3 and y found the
> following 'strange' things to comment or ask why there are in
> sugar-toolkit:
> 
> First: The module sugar.graphics.panel with this code:
> 
> class Panel(Gtk.VBox):
> 
>     __gtype_name__ = 'SugarPanel'
> 
>     def __init__(self):
>         GObject.GObject.__init__(self)
> 
> I think we can't be so children for make a class and only inherit from
> Gtk.VBox. I would suggest to remove it.

It looks to me like it was added for the GTK+ 2.x theme at least. This
way it is possible to style the widget (and the widgets inside)
differently.

Benjamin



More information about the Sugar-devel mailing list