[Sugar-devel] Icons size in gtk3 theme

Gonzalo Odiard gonzalo at laptop.org
Fri Nov 25 17:32:43 EST 2011


Replying to my self, is working now.

Gonzalo

On Fri, Nov 25, 2011 at 3:59 PM, Gonzalo Odiard <gonzalo at laptop.org> wrote:

> I was looking at why the toolbars/toolbuttons in gtk3 activities are
> smaller than in gtk2,
> and the problem is in the icons size.
>
> We set that in gtk2 (icon.py) doing:
>
>  width, height = gtk.icon_size_lookup(self.props.icon_size)
>
> where self.props.icon_size = 3 and the values returned are 40, 40 (in my
> desktop)
>
> These values are setted in:
> sugar-72.gtkrc:
>
> gtk-icon-sizes="gtk-menu=24,24:gtk-dnd=24,24:gtk-small-toolbar=24,24:gtk-button=24,24:gtk-large-toolbar=40,40"
> and
> sugar-100.gtkrc:
>
> gtk-icon-sizes="gtk-menu=33,33:gtk-dnd=33,33:gtk-small-toolbar=33,33:gtk-button=33,33:gtk-large-toolbar=55,55"
>
> Now if in gtk3 I do:
>
> print Gtk.icon_size_lookup(3)
> (True, 24, 24)
>
> I have tried adding:
>
> gtk-icon-sizes =
> "gtk-menu=40,40:gtk-dnd=40,40:gtk-small-toolbar=40,40:gtk-button=40,40:gtk-large-toolbar=40,40"
>
> to sugar-jhbuild/source/sugar-artwork/gtk3/theme/settings.ini
> doing make-install, the file is installed, icon_size_lookup continue
> returning 24 and the icons continue at the same size.
>
> Any idea?
>
> Gonzalo
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111125/f6de8c35/attachment.html>


More information about the Sugar-devel mailing list