time-select: hide period selector when not 12h format
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
c6ada8c356
commit
37a38b6acb
@@ -55,10 +55,14 @@
|
|||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkComboBox" id="period_combo">
|
<object class="GtkComboBoxText" id="period_combo">
|
||||||
<property name="visible">True</property>
|
<property name="visible">False</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
|
<items>
|
||||||
|
<item translatable="yes">AM</item>
|
||||||
|
<item translatable="yes">PM</item>
|
||||||
|
</items>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left_attach">3</property>
|
<property name="left_attach">3</property>
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ gcal_time_selector_constructed (GObject *object)
|
|||||||
g_object_ref (priv->minute_spin);
|
g_object_ref (priv->minute_spin);
|
||||||
|
|
||||||
priv->period_combo = (GtkWidget*) gtk_builder_get_object (builder, "period_combo");
|
priv->period_combo = (GtkWidget*) gtk_builder_get_object (builder, "period_combo");
|
||||||
|
gtk_widget_set_visible (priv->period_combo, !priv->format_24h);
|
||||||
g_object_ref (priv->period_combo);
|
g_object_ref (priv->period_combo);
|
||||||
|
|
||||||
g_object_unref (builder);
|
g_object_unref (builder);
|
||||||
|
|||||||
Reference in New Issue
Block a user