[gnome-calendar] window: use gcal_clear_datetime
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: use gcal_clear_datetime
- Date: Sun, 5 Mar 2017 23:33:37 +0000 (UTC)
commit 1d8993d450d816c78646750f5e1d10c1564349cc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Mar 5 20:30:08 2017 -0300
window: use gcal_clear_datetime
We have our own macro to make the code a little bit
more pleasant to read, let's just use it.
src/gcal-window.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 7a0cbf0..8548f06 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -382,8 +382,8 @@ update_active_date (GcalWindow *window,
gcal_manager_set_subscriber (window->manager, E_CAL_DATA_MODEL_SUBSCRIBER (window->year_view),
range_start, range_end);
- g_clear_pointer (&date_start, g_date_time_unref);
- g_clear_pointer (&date_end, g_date_time_unref);
+ gcal_clear_datetime (&date_start);
+ gcal_clear_datetime (&date_end);
}
/* month_view */
@@ -397,8 +397,8 @@ update_active_date (GcalWindow *window,
gcal_manager_set_subscriber (window->manager, E_CAL_DATA_MODEL_SUBSCRIBER (window->month_view),
range_start, range_end);
- g_clear_pointer (&date_start, g_date_time_unref);
- g_clear_pointer (&date_end, g_date_time_unref);
+ gcal_clear_datetime (&date_start);
+ gcal_clear_datetime (&date_end);
}
/* week_view */
@@ -423,8 +423,8 @@ update_active_date (GcalWindow *window,
gcal_manager_set_subscriber (window->manager, E_CAL_DATA_MODEL_SUBSCRIBER (window->week_view),
range_start, range_end);
- g_clear_pointer (&date_start, g_date_time_unref);
- g_clear_pointer (&date_end, g_date_time_unref);
+ gcal_clear_datetime (&date_start);
+ gcal_clear_datetime (&date_end);
}
update_today_button_sensitive (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]