[pybliographer] ui: Move 'set default button' in sort dialog to the action area



commit c1242040fc25a8e3122afb1afba2f342d9ca3966
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Mon Mar 26 15:54:41 2018 -0300

    ui: Move 'set default button' in sort dialog to the action area

 Pyblio/GnomeUI/glade/sort.ui |   50 ++++++++++++++++--------------------------
 1 files changed, 19 insertions(+), 31 deletions(-)
---
diff --git a/Pyblio/GnomeUI/glade/sort.ui b/Pyblio/GnomeUI/glade/sort.ui
index 509cb1c..16bd21f 100644
--- a/Pyblio/GnomeUI/glade/sort.ui
+++ b/Pyblio/GnomeUI/glade/sort.ui
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- interface-requires gtk+ 2.24 -->
+  <requires lib="gtk+" version="2.24"/>
   <!-- interface-naming-policy toplevel-contextual -->
   <object class="GtkDialog" id="_w_sort">
     <property name="can_focus">False</property>
@@ -36,12 +36,27 @@
               </packing>
             </child>
             <child>
+              <object class="GtkButton" id="button1">
+                <property name="label" translatable="yes">Set as default</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_action_appearance">False</property>
+                <signal name="clicked" handler="_on_set_as_default" swapped="no"/>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">False</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
               <object class="GtkButton" id="okbutton1">
                 <property name="label">gtk-ok</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="can_default">True</property>
-                <property name="receives_default">False</property>
+                <property name="receives_default">True</property>
                 <property name="use_action_appearance">False</property>
                 <property name="use_stock">True</property>
                 <signal name="clicked" handler="on_accept" swapped="no"/>
@@ -49,7 +64,7 @@
               <packing>
                 <property name="expand">False</property>
                 <property name="fill">False</property>
-                <property name="position">1</property>
+                <property name="position">2</property>
               </packing>
             </child>
           </object>
@@ -96,34 +111,6 @@
                         <property name="position">0</property>
                       </packing>
                     </child>
-                    <child>
-                      <object class="GtkHButtonBox" id="hbuttonbox2">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="border_width">5</property>
-                        <property name="layout_style">end</property>
-                        <child>
-                          <object class="GtkButton" id="button1">
-                            <property name="label" translatable="yes">Set as default</property>
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="receives_default">True</property>
-                            <property name="use_action_appearance">False</property>
-                            <signal name="clicked" handler="_on_set_as_default" swapped="no"/>
-                          </object>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                            <property name="position">0</property>
-                          </packing>
-                        </child>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">1</property>
-                      </packing>
-                    </child>
                   </object>
                 </child>
               </object>
@@ -139,6 +126,7 @@
     </child>
     <action-widgets>
       <action-widget response="-6">cancelbutton1</action-widget>
+      <action-widget response="0">button1</action-widget>
       <action-widget response="-5">okbutton1</action-widget>
     </action-widgets>
   </object>


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