[gnome-calendar/gnome-3-24] window: fix style
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-24] window: fix style
- Date: Tue, 16 May 2017 18:04:58 +0000 (UTC)
commit 06c0625243ef33c6e8fb884178c64e6ae21536cd
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue May 16 14:56:18 2017 -0300
window: fix style
src/gcal-window.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 40ae457..a8a5996 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -253,6 +253,8 @@ update_active_date (GcalWindow *window,
previous_date = window->active_date;
window->active_date = new_date;
+ g_debug ("Updating active date to %s", icaltime_as_ical_string (*new_date));
+
gcal_view_set_date (GCAL_VIEW (window->views[GCAL_WINDOW_VIEW_WEEK]), new_date);
gcal_view_set_date (GCAL_VIEW (window->views[GCAL_WINDOW_VIEW_MONTH]), new_date);
gcal_view_set_date (GCAL_VIEW (window->views[GCAL_WINDOW_VIEW_YEAR]), new_date);
@@ -1277,12 +1279,15 @@ gcal_window_set_property (GObject *object,
gtk_stack_set_visible_child (GTK_STACK (self->views_stack),
self->views[self->active_view]);
return;
+
case PROP_ACTIVE_DATE:
update_active_date (GCAL_WINDOW (object), g_value_dup_boxed (value));
return;
+
case PROP_NEW_EVENT_MODE:
set_new_event_mode (GCAL_WINDOW (object), g_value_get_boolean (value));
return;
+
case PROP_MANAGER:
if (g_set_object (&self->manager, g_value_get_object (value)))
{
@@ -1335,12 +1340,15 @@ gcal_window_get_property (GObject *object,
case PROP_ACTIVE_VIEW:
g_value_set_enum (value, self->active_view);
return;
+
case PROP_MANAGER:
g_value_set_object (value, self->manager);
return;
+
case PROP_ACTIVE_DATE:
g_value_set_boxed (value, self->active_date);
return;
+
case PROP_NEW_EVENT_MODE:
g_value_set_boolean (value, self->new_event_mode);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]