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

Manuel Quiñones manuq at laptop.org
Wed Jul 4 09:29:12 EDT 2012


2012/7/4 Benjamin Berg <benzea at sugarlabs.org>:
> 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.

Yes, it is in the theme gtkrc file of GTK+ 2 and should be themed in
GTK+ 3 when the first example appears.

-- 
.. manuq ..


More information about the Sugar-devel mailing list