<div dir="ltr">For Icon pixel_size.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 January 2014 14:31, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</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">What should be used instead of icon_size?<span class="HOEnZb"><font color="#888888"><div><br></div><div>
Gonzalo</div></font></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div><div class="im">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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></div></blockquote></div><div class="im"><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></div>
</blockquote></div><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div>