From b2b518a8ed5949d1a110336bb3f2733a028018dd Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 26 Oct 2009 20:33:48 +0100 Subject: Bug #598519 - Cannot open task/memo by double click in calendar day view --- modules/calendar/e-cal-shell-content.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/calendar/e-cal-shell-content.c') diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c index d1c9d8fbcc..d784ce7dc6 100644 --- a/modules/calendar/e-cal-shell-content.c +++ b/modules/calendar/e-cal-shell-content.c @@ -38,6 +38,8 @@ #include "calendar/gui/e-day-view.h" #include "calendar/gui/e-week-view.h" +#include "e-cal-shell-view-private.h" + #define E_CAL_SHELL_CONTENT_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_CAL_SHELL_CONTENT, ECalShellContentPrivate)) @@ -434,6 +436,11 @@ cal_shell_content_constructed (GObject *object) e_calendar_table_load_state (E_CALENDAR_TABLE (widget), filename); g_free (filename); + g_signal_connect_swapped ( + widget, "open-component", + G_CALLBACK (e_cal_shell_view_taskpad_open_task), + shell_view); + container = priv->vpaned; widget = gtk_vbox_new (FALSE, 0); @@ -458,6 +465,11 @@ cal_shell_content_constructed (GObject *object) e_memo_table_load_state (E_MEMO_TABLE (widget), filename); g_free (filename); + g_signal_connect_swapped ( + widget, "open-component", + G_CALLBACK (e_cal_shell_view_memopad_open_memo), + shell_view); + /* Load the view instance. */ view_instance = e_shell_view_new_view_instance (shell_view, NULL); -- cgit