[evolution-data-server/gnome-41] ERemindersWidget: Incorrect value for last selected snooze time after open
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-41] ERemindersWidget: Incorrect value for last selected snooze time after open
- Date: Tue, 19 Oct 2021 15:31:03 +0000 (UTC)
commit 84f70c8c1a6bbb1c9a359c56b7cc71b81e58b7ed
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 19 17:27:38 2021 +0200
ERemindersWidget: Incorrect value for last selected snooze time after open
When the snooze combo is filled for the first time the combo does not have
connected the "changed" signal, thus there's not saved the last selected
minutes value, which can lead to incorrect value change when the combo
is changed to "Add custom time..." or "Clear custom times" items.
src/libedataserverui/e-reminders-widget.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/libedataserverui/e-reminders-widget.c b/src/libedataserverui/e-reminders-widget.c
index baa212f16..52634678c 100644
--- a/src/libedataserverui/e-reminders-widget.c
+++ b/src/libedataserverui/e-reminders-widget.c
@@ -243,6 +243,15 @@ reminders_widget_fill_snooze_combo (ERemindersWidget *reminders,
gtk_combo_box_set_active_iter (combo, &tosel_iter);
else
gtk_combo_box_set_active (combo, 0);
+
+ if (gtk_combo_box_get_active_iter (combo, &iter)) {
+ gint minutes = -3;
+
+ gtk_tree_model_get (GTK_TREE_MODEL (list_store), &iter, 1, &minutes, -1);
+ reminders->priv->last_selected_snooze_minutes = minutes;
+ } else {
+ reminders->priv->last_selected_snooze_minutes = 0;
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]