diff options
author | Milan Crha <mcrha@redhat.com> | 2022-10-05 17:02:28 +0200 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-10-05 15:10:47 +0000 |
commit | 15ce841a6c11a5c1ef466ac08f2641a770efea53 (patch) | |
tree | c13e49a1f828d035678518333916383a74c40fba | |
parent | d273b4304f7907aeb93bac117a4bcf2d2330501d (diff) | |
download | gnome-calendar-15ce841a6c11a5c1ef466ac08f2641a770efea53.tar.gz |
gcal-date-chooser: Update also `combined_choice` in set_date()
Thus it's in sync with the rest of the date chooser.
Also use a common function to replace `self->date` value.
Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
-rw-r--r-- | src/gui/event-editor/gcal-date-chooser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/event-editor/gcal-date-chooser.c b/src/gui/event-editor/gcal-date-chooser.c index bb169eb0..af12b6bd 100644 --- a/src/gui/event-editor/gcal-date-chooser.c +++ b/src/gui/event-editor/gcal-date-chooser.c @@ -466,8 +466,7 @@ gcal_date_chooser_set_date (GcalView *view, g_date_time_get_ymd (self->date, &y1, &m1, &d1); g_date_time_get_ymd (date, &y2, &m2, &d2); - g_date_time_unref (self->date); - self->date = g_date_time_ref (date); + gcal_set_date_time (&self->date, date); if (y1 != y2 || m1 != m2) { |