[gnome-calendar/wip/gbsneto/titlebar-selector] edit-dialog: group dates and times



commit 02fe3331067d08802287b966b47393c259925647
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jul 6 17:29:35 2016 -0300

    edit-dialog: group dates and times
    
    Instead of start and end, group the selectors by
    dates and times.

 data/ui/edit-dialog.ui |   68 +++++++++++++++++++++++++++--------------------
 1 files changed, 39 insertions(+), 29 deletions(-)
---
diff --git a/data/ui/edit-dialog.ui b/data/ui/edit-dialog.ui
index 9d4a879..f88a8ae 100644
--- a/data/ui/edit-dialog.ui
+++ b/data/ui/edit-dialog.ui
@@ -134,10 +134,10 @@
               </packing>
             </child>
             <child>
-              <object class="GtkLabel" id="starts_label">
+              <object class="GtkLabel" id="dates_label">
                 <property name="visible">True</property>
                 <property name="halign">end</property>
-                <property name="label" translatable="yes">Starts</property>
+                <property name="label" translatable="yes">Date</property>
                 <style>
                   <class name="dim-label"/>
                 </style>
@@ -148,10 +148,10 @@
               </packing>
             </child>
             <child>
-              <object class="GtkLabel" id="ends_label">
+              <object class="GtkLabel" id="times_label">
                 <property name="visible">True</property>
                 <property name="halign">end</property>
-                <property name="label" translatable="yes">Ends</property>
+                <property name="label" translatable="yes">Time</property>
                 <style>
                   <class name="dim-label"/>
                 </style>
@@ -278,69 +278,70 @@
             <child>
               <object class="GtkBox" id="start_date_box">
                 <property name="visible">True</property>
-                <property name="homogeneous">True</property>
-                <style>
-                  <class name="linked"/>
-                </style>
+                <property name="hexpand">True</property>
+                <property name="spacing">6</property>
                 <child>
                   <object class="GcalDateSelector" id="start_date_selector">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
                     <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" 
bind-flags="default" />
                   </object>
-                  <packing>
-                    <property name="position">1</property>
-                  </packing>
                 </child>
                 <child>
-                  <object class="GcalTimeSelector" id="start_time_selector">
+                  <object class="GtkLabel">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label">-</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GcalDateSelector" id="end_date_selector">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
                     <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" 
bind-flags="default" />
                   </object>
-                  <packing>
-                    <property name="position">2</property>
-                  </packing>
                 </child>
               </object>
               <packing>
                 <property name="left_attach">1</property>
                 <property name="top_attach">1</property>
-                <property name="width">2</property>
+                <property name="width">4</property>
               </packing>
             </child>
             <child>
-              <object class="GtkBox" id="end_date_box">
+              <object class="GtkBox">
                 <property name="visible">True</property>
-                <property name="homogeneous">True</property>
-                <style>
-                  <class name="linked"/>
-                </style>
+                <property name="spacing">6</property>
                 <child>
-                  <object class="GcalDateSelector" id="end_date_selector">
+                  <object class="GcalTimeSelector" id="start_time_selector">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
                     <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" 
bind-flags="default" />
                   </object>
-                  <packing>
-                    <property name="position">1</property>
-                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="label">-</property>
+                  </object>
                 </child>
                 <child>
                   <object class="GcalTimeSelector" id="end_time_selector">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
+                    <property name="hexpand">True</property>
                     <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" 
bind-flags="default" />
                   </object>
-                  <packing>
-                    <property name="position">2</property>
-                  </packing>
                 </child>
               </object>
               <packing>
                 <property name="left_attach">1</property>
                 <property name="top_attach">2</property>
-                <property name="width">2</property>
+                <property name="width">3</property>
               </packing>
             </child>
             <child>
@@ -528,4 +529,13 @@
       <widget name="title_label_box" />
     </widgets>
   </object>
+  <object class="GtkSizeGroup">
+    <property name="mode">horizontal</property>
+    <widgets>
+      <widget name="end_date_selector" />
+      <widget name="end_time_selector" />
+      <widget name="start_date_selector" />
+      <widget name="start_time_selector" />
+    </widgets>
+  </object>
 </interface>


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