[gnome-boxes/wip/feborges/new-wizard-design: 5/8] wizard-source: Make "Select a File" a menu option



commit 2b21fc6ecd04e2d308776c26177d92d0f0a71d21
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Jan 16 15:49:18 2018 +0100

    wizard-source: Make "Select a File" a menu option
    
    Removes it from the top of the panel and lists below the other
    options. Selecting a file (exposing the filesystem) should be
    always a fallback.
    
    Fixes #42

 data/ui/wizard-source.ui | 91 +++++++++++++++++++++++-------------------------
 1 file changed, 44 insertions(+), 47 deletions(-)
---
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index a38ee96d..3977bc67 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -40,53 +40,6 @@
           </packing>
         </child>
 
-        <child>
-          <object class="GtkBox" id="downloaded_and_select_file_hbox">
-            <property name="visible">True</property>
-            <property name="margin-bottom">20</property>
-            <property name="spacing">50</property>
-            <property name="orientation">horizontal</property>
-            <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>
-
         <child>
           <object class="BoxesWizardScrolled" id="media_scrolled">
             <property name="visible">True</property>
@@ -303,6 +256,50 @@
                 </child>
               </object>
             </child>
+
+            <child>
+              <object class="GtkButton" id="select_file_button">
+                <property name="visible">True</property>
+                <signal name="clicked" handler="on_select_file_button_clicked"/>
+                <style>
+                  <class name="boxes-menu-row"/>
+                </style>
+                <child>
+                  <object class="GtkBox">
+                    <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">
+                        <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">
+                        <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>
 


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