event-editor/time-selector: Port to GTK4
This commit is contained in:
@@ -103,7 +103,7 @@ on_output (GtkWidget *widget,
|
||||
adjustment = gtk_spin_button_get_adjustment (GTK_SPIN_BUTTON (widget));
|
||||
value = (gint) gtk_adjustment_get_value (adjustment);
|
||||
text = g_strdup_printf ("%02d", value);
|
||||
gtk_entry_set_text (GTK_ENTRY (widget), text);
|
||||
gtk_editable_set_text (GTK_EDITABLE (widget), text);
|
||||
|
||||
g_free (text);
|
||||
|
||||
|
||||
@@ -6,10 +6,7 @@
|
||||
<!-- Hour -->
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="hour_spin">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="input_purpose">number</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="adjustment">hour_adjustment</property>
|
||||
<signal name="output" handler="on_output" object="GcalTimeSelector" swapped="no"/>
|
||||
@@ -18,7 +15,6 @@
|
||||
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">:</property>
|
||||
</object>
|
||||
</child>
|
||||
@@ -26,10 +22,7 @@
|
||||
<!-- Minute -->
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="minute_spin">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="input_purpose">number</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="adjustment">minute_adjustment</property>
|
||||
<signal name="output" handler="on_output" object="GcalTimeSelector" swapped="no"/>
|
||||
@@ -40,6 +33,7 @@
|
||||
<!-- AM/PM -->
|
||||
<child>
|
||||
<object class="GtkComboBoxText" id="period_combo">
|
||||
<property name="visible">False</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="active">0</property>
|
||||
<signal name="changed" handler="update_time" object="GcalTimeSelector" swapped="yes"/>
|
||||
|
||||
Reference in New Issue
Block a user