[gnome-calendar/wip/gbsneto/dnd: 8/15] month-view: hold a pointer to the singleton GcalManager
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/gbsneto/dnd: 8/15] month-view: hold a pointer to the singleton GcalManager
- Date: Sat, 21 May 2016 21:53:05 +0000 (UTC)
commit f6cc8dce9ac38af9ec26a798aeadf04cf9b5db31
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat May 21 17:32:06 2016 -0300
month-view: hold a pointer to the singleton GcalManager
It'll be used in the next commit to save the DnD'ed event.
src/gcal-month-view.c | 10 ++++++++++
src/gcal-month-view.h | 3 +++
src/gcal-window.c | 1 +
3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 7122989..7578685 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -85,6 +85,7 @@ typedef struct
/* property */
icaltimetype *date;
+ GcalManager *manager;
} GcalMonthViewPrivate;
enum
@@ -2267,3 +2268,12 @@ gcal_month_view_set_use_24h_format (GcalMonthView *view,
priv = gcal_month_view_get_instance_private (view);
priv->use_24h_format = use_24h;
}
+
+void
+gcal_month_view_set_manager (GcalMonthView *view,
+ GcalManager *manager)
+{
+ GcalMonthViewPrivate *priv = gcal_month_view_get_instance_private (view);
+
+ priv->manager = manager;
+}
diff --git a/src/gcal-month-view.h b/src/gcal-month-view.h
index c959665..9f03201 100644
--- a/src/gcal-month-view.h
+++ b/src/gcal-month-view.h
@@ -53,6 +53,9 @@ void gcal_month_view_set_first_weekday (GcalMonthView *view,
void gcal_month_view_set_use_24h_format (GcalMonthView *view,
gboolean use_24h);
+void gcal_month_view_set_manager (GcalMonthView *view,
+ GcalManager *manager);
+
G_END_DECLS
#endif /* __GCAL_MONTH_VIEW_H__ */
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 03ebc36..88e6884 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1507,6 +1507,7 @@ gcal_window_set_property (GObject *object,
g_signal_connect_swapped (self->manager, "source-changed", G_CALLBACK (source_changed), object);
gcal_edit_dialog_set_manager (GCAL_EDIT_DIALOG (self->edit_dialog), self->manager);
+ gcal_month_view_set_manager (GCAL_MONTH_VIEW (self->month_view), self->manager);
gcal_year_view_set_manager (GCAL_YEAR_VIEW (self->year_view), self->manager);
gcal_quick_add_popover_set_manager (GCAL_QUICK_ADD_POPOVER (self->quick_add_popover),
self->manager);
gcal_source_dialog_set_manager (GCAL_SOURCE_DIALOG (self->source_dialog), self->manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]