[Sugar-devel] Turteleart dependency on xdpyinfo

Walter Bender walter.bender at gmail.com
Tue Oct 30 08:06:33 EDT 2012


On Tue, Oct 30, 2012 at 8:01 AM, Gonzalo Odiard <gonzalo at laptop.org> wrote:
> Actually, this needs some investigation. The "tip", which I wrote,
>>
>> works for GTK3. I need to make sure that (a) there is a GTK2
>> equivalent ; and (b) that is works on older versions of Sugar. For
>> sure, going forward, the GTK3 version of Turtle Blocks will use Gtk
>> for this. Stay tuned.
>>
>
> At least the part to get the dpi info worked in gtk2:
>
> Gtk2:
>     xft_dpi = gtk.settings_get_default().get_property('gtk-xft-dpi')
> Gtk3:
>     xft_dpi = Gtk.Settings.get_default().get_property('gtk-xft-dpi')
>
> Gonzalo
>
>

I was trying that, and it didn't work, but it turns out that it was
due to a typo. I'll push the patch for TA. Seems to be part of GTK
2.6+, so I think we are generally OK.

thanks.

-walter
>
>>
>> -walter
>> >>
>> >> --
>> >> Daniel Narvaez
>> >
>> > I am switch Turtle Art over. I may have this dependency in other
>> > activities as well.
>> >
>> > -walter
>> >
>> >
>> > --
>> > Walter Bender
>> > Sugar Labs
>> > http://www.sugarlabs.org
>>
>>
>>
>> --
>> Walter Bender
>> Sugar Labs
>> http://www.sugarlabs.org
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list