edit-dialog: group dates and times

Instead of start and end, group the selectors by
dates and times.
This commit is contained in:
Georges Basile Stavracas Neto
2016-07-06 18:54:59 -03:00
parent 025d931da8
commit b6c19e8399
+39 -29
View File
@@ -134,10 +134,10 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="starts_label"> <object class="GtkLabel" id="dates_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="label" translatable="yes">Starts</property> <property name="label" translatable="yes">Date</property>
<style> <style>
<class name="dim-label"/> <class name="dim-label"/>
</style> </style>
@@ -148,10 +148,10 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="ends_label"> <object class="GtkLabel" id="times_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="label" translatable="yes">Ends</property> <property name="label" translatable="yes">Time</property>
<style> <style>
<class name="dim-label"/> <class name="dim-label"/>
</style> </style>
@@ -278,69 +278,70 @@
<child> <child>
<object class="GtkBox" id="start_date_box"> <object class="GtkBox" id="start_date_box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="homogeneous">True</property> <property name="hexpand">True</property>
<style> <property name="spacing">6</property>
<class name="linked"/>
</style>
<child> <child>
<object class="GcalDateSelector" id="start_date_selector"> <object class="GcalDateSelector" id="start_date_selector">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">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" /> <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" bind-flags="default" />
</object> </object>
<packing>
<property name="position">1</property>
</packing>
</child> </child>
<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="visible">True</property>
<property name="can_focus">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" /> <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" bind-flags="default" />
</object> </object>
<packing>
<property name="position">2</property>
</packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">1</property> <property name="top_attach">1</property>
<property name="width">2</property> <property name="width">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="end_date_box"> <object class="GtkBox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="homogeneous">True</property> <property name="spacing">6</property>
<style>
<class name="linked"/>
</style>
<child> <child>
<object class="GcalDateSelector" id="end_date_selector"> <object class="GcalTimeSelector" id="start_time_selector">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">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" /> <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" bind-flags="default" />
</object> </object>
<packing> </child>
<property name="position">1</property> <child>
</packing> <object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label">-</property>
</object>
</child> </child>
<child> <child>
<object class="GcalTimeSelector" id="end_time_selector"> <object class="GcalTimeSelector" id="end_time_selector">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">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" /> <property name="sensitive" bind-source="GcalEditDialog" bind-property="writable" bind-flags="default" />
</object> </object>
<packing>
<property name="position">2</property>
</packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
<property name="top_attach">2</property> <property name="top_attach">2</property>
<property name="width">2</property> <property name="width">3</property>
</packing> </packing>
</child> </child>
<child> <child>
@@ -528,4 +529,13 @@
<widget name="title_label_box" /> <widget name="title_label_box" />
</widgets> </widgets>
</object> </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> </interface>