iconhelper: Improve size determination for surfaces

Instead of just working for image surface, this should now work for all
bounded surfaces.

Test included.
This commit is contained in:
Benjamin Otte
2015-11-28 07:06:37 +01:00
parent 071d2a1d69
commit afd0e28437
5 changed files with 103 additions and 12 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.19.0 -->
<interface>
<requires lib="gtk+" version="3.16"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="resource">/org/gtk/libgtk/inspector/logo.png</property>
</object>
</child>
</object>
</interface>