[Sugar-devel] [PATCH Terminal 1/2] GTK3 Port start

Manuel Kaufmann humitos at gmail.com
Tue May 15 11:02:01 EDT 2012


On Tue, May 15, 2012 at 10:54 AM, Manuel Kaufmann <humitos at gmail.com> wrote:
>> -        scrollbar = gtk.VScrollbar(vt.get_adjustment())
>> +        scrollbar = Gtk.VScrollbar(vt.get_vadjustment())
>
> I don't know why (yet) but I'm getting this error on Fedora 16 with
> jhbuild: http://fpaste.org/iyeO/
>
> I don't have this problem with Debian Testing.

I think that I found a bug or something like that here.

I changed

scrollbar = Gtk.VScrollbar(vt.get_vadjustment())

for

scrollbar = Gtk.VScrollbar.new(vt.get_vadjustment())

and now it's working on my Fedora 16. Taking in consideration the
Porting guide[1] we should not use the ".new" form and both of them
should work.

On Fedora 16:

>>> Gtk.__path__
/usr/lib/girepository-1.0/Gtk-3.0.typelib

$ rpm -qf /usr/lib/girepository-1.0/Gtk-3.0.typelib
gtk3-3.2.4-1.fc16.i686

On Debian Testing:

>>> Gtk.__path__
/usr/lib/girepository-1.0/Gtk-3.0.typelib

$ apt-file search /usr/lib/girepository-1.0/Gtk-3.0.typelib
gir1.2-gtk-3.0: /usr/lib/girepository-1.0/Gtk-3.0.typelib

$ dpkg -l gir1.2-gtk-3.0
ii  gir1.2-gtk-3.0                         3.4.1-2

Maybe it's a bug on gtk3-3.2.4 that it's already fixed on 3.4.1

I don't know what is happening here. Any idea?

[1] http://wiki.sugarlabs.org/go/Features/GTK3/Porting#Constructor_considerations

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/


More information about the Sugar-devel mailing list