[gnome-calendar/gbsneto/gtk4: 3/21] event-editor/time-selector: Port to GTK4
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/gtk4: 3/21] event-editor/time-selector: Port to GTK4
- Date: Mon, 7 Feb 2022 22:45:37 +0000 (UTC)
commit 33a24403ffe3f1b61d46863fd657787a044f79dd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jan 14 11:43:25 2022 -0300
event-editor/time-selector: Port to GTK4
src/gui/event-editor/gcal-time-selector.c | 2 +-
src/gui/event-editor/gcal-time-selector.ui | 8 +-------
2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/gui/event-editor/gcal-time-selector.c b/src/gui/event-editor/gcal-time-selector.c
index ea719d51..f0c2b8ae 100644
--- a/src/gui/event-editor/gcal-time-selector.c
+++ b/src/gui/event-editor/gcal-time-selector.c
@@ -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);
diff --git a/src/gui/event-editor/gcal-time-selector.ui b/src/gui/event-editor/gcal-time-selector.ui
index 45d4e4d2..51b1d877 100644
--- a/src/gui/event-editor/gcal-time-selector.ui
+++ b/src/gui/event-editor/gcal-time-selector.ui
@@ -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"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]