<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>