[gnome-boxes/move-select-file-to-menu: 2/2] wizard-source: Make "Select a file" a menu-box-row entry



commit 9b10ed73780e8f9f08e23bacc1e37e3400c794d4
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Jan 15 14:52:27 2018 +0100

    wizard-source: Make "Select a file" a menu-box-row entry
    
    According to the mockups available at
    https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/boxes/wires/newbox-assistant.png
    
    Fixes #178

 data/ui/wizard-source.ui | 82 ++++++++++++++++++++++++++----------------------
 1 file changed, 44 insertions(+), 38 deletions(-)
---
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index eb232878..5fd7d520 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -63,44 +63,6 @@
                 <property name="fill">True</property>
               </packing>
             </child>
-            <child>
-              <object class="GtkButton" id="select_file_button">
-                <property name="visible">True</property>
-                <property name="vexpand">False</property>
-                <signal name="clicked" handler="on_select_file_button_clicked"/>
-                <child>
-                  <object class="GtkBox" id="select_file_box">
-                    <property name="visible">True</property>
-                    <property name="margin-start">10</property>
-                    <property name="margin-end">10</property>
-                    <property name="spacing">50</property>
-                    <property name="orientation">horizontal</property>
-                    <child>
-                      <object class="GtkLabel" id="select_file_label">
-                        <property name="visible">True</property>
-                        <property name="halign">start</property>
-                        <property name="use-underline">True</property>
-                        <property name="label" translatable="yes">_Select a file</property>
-                      </object>
-                      <packing>
-                        <property name="expand">True</property>
-                        <property name="fill">True</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkLabel" id="select_file_next_label">
-                        <property name="visible">True</property>
-                        <property name="label" translatable="yes">▶</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                      </packing>
-                    </child>
-                  </object>
-                </child>
-              </object>
-            </child>
           </object>
         </child>
 
@@ -285,6 +247,50 @@
           </object>
         </child>
 
+        <child>
+          <object class="GtkButton" id="select_file_button">
+            <property name="visible">True</property>
+            <property name="vexpand">False</property>
+            <signal name="clicked" handler="on_select_file_button_clicked"/>
+            <style>
+              <class name="boxes-menu-row"/>
+            </style>
+            <child>
+              <object class="GtkBox" id="select_file_box">
+                <property name="visible">True</property>
+                <property name="margin-top">10</property>
+                <property name="margin-bottom">10</property>
+                <property name="margin-start">20</property>
+                <property name="margin-end">20</property>
+                <property name="spacing">20</property>
+                <property name="orientation">horizontal</property>
+                <child>
+                  <object class="GtkLabel" id="select_file_label">
+                    <property name="visible">True</property>
+                    <property name="halign">start</property>
+                    <property name="use-underline">True</property>
+                    <property name="label" translatable="yes">_Select a file</property>
+                  </object>
+                  <packing>
+                    <property name="expand">True</property>
+                    <property name="fill">True</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="select_file_next_label">
+                    <property name="visible">True</property>
+                    <property name="label" translatable="yes">▶</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">False</property>
+                  </packing>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+
         <child>
           <object class="GtkLabel" id="trademark_label">
             <property name="visible">True</property>


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