[gtk+] icon-browser: Centre Copy button in dialog again



commit e11e304d106cda8c36e38e268535d7b2433c785f
Author: Julian Sparber <julian sparber net>
Date:   Wed Oct 18 13:00:41 2017 +0200

    icon-browser: Centre Copy button in dialog again
    
    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 |   25 ++++++++++---------------
 1 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/demos/icon-browser/window.ui b/demos/icon-browser/window.ui
index d978909..4fef775 100644
--- a/demos/icon-browser/window.ui
+++ b/demos/icon-browser/window.ui
@@ -308,21 +308,16 @@
                 <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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]