<div dir="ltr">What should be used instead of icon_size?<div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 11, 2014 at 12:43 PM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Ok, we looked more into this and it's an horrible, horrible mess. Several activities are using Gtk.IconSize, often just passing it to Gtk.Image. Here is the best possible plan I can think of:<br>

<br></div>- Change sugar and sugar-toolkit-gtk3 to never use Gtk.IconSize explicitly. Just use pixels, the sizes stuff is half deprecated and of very little use.<br></div><div>- Set the proper pixel_size on the toolbutton image.<br>

</div><div><br></div><div>Hacks to help backward compatibility<br></div><div><br></div>- Register sugar specific sizes (LARGE_TOOLBAR, MENU) with the deprecated Gtk.icon_size_register function. <br></div>- Overwrite Gtk.IconSize.* with the sugar specific sizes. This will only work at python level, but should help a lot with activities that uses them.<br>

<br></div>Cleanup<br><br></div>- Drop sizes from settings.ini<br></div>- Deprecate Icon's icon_size property.<br></div>- Suggest that activity authors never use Gtk.IconSize.<br><br></div>I'm not sure this will fix everything, but should at least cover the large majority of the issues.<br>

</div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div>