[gnome-calendar] window: trivial code refactoring
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: trivial code refactoring
- Date: Fri, 6 Oct 2017 23:33:01 +0000 (UTC)
commit f83471c609b5b195f20e30aea6ff6ec67b14ab69
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 6 20:30:02 2017 -0300
window: trivial code refactoring
src/gcal-window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 55f4229..9202920 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -722,9 +722,9 @@ show_new_event_widget (GcalView *view,
window->event_creation_data->x = x;
window->event_creation_data->y = y;
window->event_creation_data->start_date = g_date_time_ref (start_span);
- if (end_span != NULL)
- window->event_creation_data->end_date = g_date_time_ref (end_span);
- g_debug ("[show_new_event] position (%f, %f)", x, y);
+ window->event_creation_data->end_date = end_span ? g_date_time_ref (end_span) : NULL;
+
+ g_debug ("Quick add popover position (%f, %f)", x, y);
/* Setup the quick add popover's dates */
gcal_quick_add_popover_set_date_start (GCAL_QUICK_ADD_POPOVER (window->quick_add_popover), start_span);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]