example: Make search button square

The image-button style class takes care of it.
This commit is contained in:
Matthias Clasen 2014-04-17 12:37:51 -07:00
parent fcba75c2ba
commit 35f4243315
4 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,9 @@
<object class="GtkToggleButton" id="search"> <object class="GtkToggleButton" id="search">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<style>
<class name="image-button"/>
</style>
<child> <child>
<object class="GtkImage" id="search-icon"> <object class="GtkImage" id="search-icon">
<property name="visible">True</property> <property name="visible">True</property>

View File

@ -23,6 +23,9 @@
<object class="GtkToggleButton" id="search"> <object class="GtkToggleButton" id="search">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<style>
<class name="image-button"/>
</style>
<child> <child>
<object class="GtkImage" id="search-icon"> <object class="GtkImage" id="search-icon">
<property name="visible">True</property> <property name="visible">True</property>

View File

@ -23,6 +23,9 @@
<object class="GtkToggleButton" id="search"> <object class="GtkToggleButton" id="search">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<style>
<class name="image-button"/>
</style>
<child> <child>
<object class="GtkImage" id="search-icon"> <object class="GtkImage" id="search-icon">
<property name="visible">True</property> <property name="visible">True</property>

View File

@ -40,6 +40,9 @@
<object class="GtkToggleButton" id="search"> <object class="GtkToggleButton" id="search">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property> <property name="sensitive">False</property>
<style>
<class name="image-button"/>
</style>
<child> <child>
<object class="GtkImage" id="search-icon"> <object class="GtkImage" id="search-icon">
<property name="visible">True</property> <property name="visible">True</property>