examples: Use icon-name property to set button icons

Gtk4 added an icon-name property for GtkButton.
This commit is contained in:
Mohammed Sadiq 2018-05-09 07:23:05 +05:30
parent 65b423eb05
commit 47872e5172
4 changed files with 4 additions and 32 deletions

View File

@ -27,14 +27,7 @@
<child>
<object class="GtkToggleButton" id="search">
<property name="sensitive">0</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="search-icon">
<property name="icon-name">edit-find-symbolic</property>
</object>
</child>
<property name="icon-name">edit-find-symbolic</property>
</object>
<packing>
<property name="pack-type">end</property>

View File

@ -18,14 +18,7 @@
<child>
<object class="GtkToggleButton" id="search">
<property name="sensitive">0</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="search-icon">
<property name="icon-name">edit-find-symbolic</property>
</object>
</child>
<property name="icon-name">edit-find-symbolic</property>
</object>
<packing>
<property name="pack-type">end</property>

View File

@ -18,14 +18,7 @@
<child>
<object class="GtkToggleButton" id="search">
<property name="sensitive">0</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="search-icon">
<property name="icon-name">edit-find-symbolic</property>
</object>
</child>
<property name="icon-name">edit-find-symbolic</property>
</object>
<packing>
<property name="pack-type">end</property>

View File

@ -29,14 +29,7 @@
<child>
<object class="GtkToggleButton" id="search">
<property name="sensitive">0</property>
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage" id="search-icon">
<property name="icon-name">edit-find-symbolic</property>
</object>
</child>
<property name="icon-name">edit-find-symbolic</property>
</object>
<packing>
<property name="pack-type">end</property>