Browse Source

Made the Identify button square

It had been stretched vertically due to the two text labels stretching
the whole grid.  Now the button is square, because it's set to align
center rather than fill.
Clara Hobbs 7 years ago
parent
commit
76097aaf7b
1 changed files with 17 additions and 15 deletions
  1. 17
    15
      data/select-list-row.ui

+ 17
- 15
data/select-list-row.ui View File

@@ -37,6 +37,23 @@
37 37
         <property name="top_attach">0</property>
38 38
       </packing>
39 39
     </child>
40
+    <child>
41
+      <object class="GtkButton" id="identify">
42
+        <property name="visible">True</property>
43
+        <property name="can_focus">True</property>
44
+        <property name="receives_default">True</property>
45
+        <property name="tooltip_text" translatable="yes">Identify device</property>
46
+        <property name="halign">center</property>
47
+        <property name="valign">center</property>
48
+        <property name="image">identify-image</property>
49
+        <signal name="clicked" handler="on_identify_clicked" swapped="no"/>
50
+      </object>
51
+      <packing>
52
+        <property name="left_attach">1</property>
53
+        <property name="top_attach">0</property>
54
+        <property name="height">2</property>
55
+      </packing>
56
+    </child>
40 57
     <child>
41 58
       <object class="GtkLabel" id="device">
42 59
         <property name="visible">True</property>
@@ -57,20 +74,5 @@
57 74
         <property name="top_attach">1</property>
58 75
       </packing>
59 76
     </child>
60
-    <child>
61
-      <object class="GtkButton" id="identify">
62
-        <property name="visible">True</property>
63
-        <property name="can_focus">True</property>
64
-        <property name="receives_default">True</property>
65
-        <property name="tooltip_text" translatable="yes">Identify device</property>
66
-        <property name="image">identify-image</property>
67
-        <signal name="clicked" handler="on_identify_clicked" swapped="no"/>
68
-      </object>
69
-      <packing>
70
-        <property name="left_attach">1</property>
71
-        <property name="top_attach">0</property>
72
-        <property name="height">2</property>
73
-      </packing>
74
-    </child>
75 77
   </object>
76 78
 </interface>

Loading…
Cancel
Save