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



commit a0327e521ee4a9549d3cafcf42a0374beebccd0a
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 8183a7d..1b9428c 100644
--- a/demos/icon-browser/window.ui
+++ b/demos/icon-browser/window.ui
@@ -338,21 +338,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]