icon-browser: Centre Copy button in dialog again
authorJulian Sparber <julian@sparber.net>
Wed, 18 Oct 2017 11:00:41 +0000 (13:00 +0200)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 31 Oct 2017 18:41:55 +0000 (18:41 +0000)
This patch moves the "Copy to Clipboard" button into the same container
as the description label, to centre the button regardless of the number
of icons shown in the grid.

https://bugzilla.gnome.org/show_bug.cgi?id=789134

demos/icon-browser/window.ui

index d978909315dd6ad1bf351d343bbf03a74576a85c..4fef7757dc77696eb1fe5a5d3ca3ad0125e4ae50 100644 (file)
                 <property name="top-attach">2</property>
               </packing>
             </child>
-            <child>
-              <object class="GtkButton">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">Copy to Clipboard</property>
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <property name="margin">20</property>
-                <signal name="clicked" handler="copy_to_clipboard"/>
-              </object>
-              <packing>
-                <property name="left-attach">0</property>
-                <property name="top-attach">4</property>
-                <property name="width">5</property>
-              </packing>
-            </child>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label" translatable="yes">Copy to Clipboard</property>
+            <property name="halign">center</property>
+            <property name="valign">center</property>
+            <property name="margin">20</property>
+            <signal name="clicked" handler="copy_to_clipboard"/>
           </object>
         </child>
         <child>