[gnome-logs] Use GDate api from calendar
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Use GDate api from calendar
- Date: Mon, 28 Mar 2022 16:44:00 +0000 (UTC)
commit 9d2a5f2e13eb1e6fa198d672468c2846edc1d305
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Mon Oct 11 00:48:52 2021 +0200
Use GDate api from calendar
src/gl-searchpopover.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/gl-searchpopover.c b/src/gl-searchpopover.c
index 6ee3699..0c7a816 100644
--- a/src/gl-searchpopover.c
+++ b/src/gl-searchpopover.c
@@ -717,7 +717,6 @@ start_date_calendar_day_selected (GtkCalendar *calendar,
{
GDateTime *date;
GDateTime *now;
- guint year, month, day;
gchar *date_label;
GlSearchPopover *popover;
GlSearchPopoverPrivate *priv;
@@ -726,9 +725,7 @@ start_date_calendar_day_selected (GtkCalendar *calendar,
priv = gl_search_popover_get_instance_private (popover);
- gtk_calendar_get_date (calendar, &year, &month, &day);
-
- date = g_date_time_new_local (year, month + 1, day, 0, 0, 0);
+ date = gtk_calendar_get_date (calendar);
/* Translators: date format for the start date entry
* and start date button label in the custom range submenu,
@@ -1088,7 +1085,6 @@ end_date_calendar_day_selected (GtkCalendar *calendar,
{
GDateTime *date;
GDateTime *now;
- guint year, month, day;
gchar *date_label;
GlSearchPopover *popover;
GlSearchPopoverPrivate *priv;
@@ -1097,9 +1093,7 @@ end_date_calendar_day_selected (GtkCalendar *calendar,
priv = gl_search_popover_get_instance_private (popover);
- gtk_calendar_get_date (calendar, &year, &month, &day);
-
- date = g_date_time_new_local (year, month + 1, day, 0, 0, 0);
+ date = gtk_calendar_get_date (calendar);
/* Translators: date format for the end date entry
* and end date button label in the custom range submenu,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]