aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-01-09 07:21:15 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-01-09 07:21:15 +0800
commitd26d8fe8ec5602bd5df2f66f6e07420cbbd5f441 (patch)
treefcc017130133a1dad2cabf37bf898075091641fb /calendar/gui/gnome-cal.c
parentc060f65fcbc92e8504fbc33359c9b48a0daf18d1 (diff)
downloadgsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.tar
gsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.tar.gz
gsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.tar.bz2
gsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.tar.lz
gsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.tar.xz
gsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.tar.zst
gsoc2013-evolution-d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441.zip
store the ECal's associated ECalView, and connect to its "objects_removed"
2004-01-08 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (display_notification): store the ECal's associated ECalView, and connect to its "objects_removed" signal. (notifiy_dialog_cb): disconnect signals from the ECalView, not the ECal. (on_dialog_objs_removed_cb): adapted to respond to "objects_removed" signal on ECalView. Made it destroy the tray bar icon also. (add_popup_menu_item): new function to create the popup items. (tray_icon_clicked_cb): remove connection to obsolete signal, and made it popup a menu on right-click. (popup_open_cb, popup_dismiss_cb, popup_dismiss_all_cb): callbacks for popup menu. * gui/gnome-cal.c (connect_week_view_focus): don't access the widget's private fields if NULL. svn path=/trunk/; revision=24120
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index baf4edc56a..9c78aa6641 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -803,6 +803,9 @@ connect_day_view_focus (GnomeCalendar *gcal, EDayView *dv)
static void
connect_week_view_focus (GnomeCalendar *gcal, EWeekView *wv)
{
+ if (!E_IS_WEEK_VIEW (wv))
+ return;
+
g_signal_connect (wv->main_canvas, "focus_in_event",
G_CALLBACK (calendar_focus_change_cb), gcal);
g_signal_connect (wv->main_canvas, "focus_out_event",