From d26d8fe8ec5602bd5df2f66f6e07420cbbd5f441 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 8 Jan 2004 23:21:15 +0000 Subject: store the ECal's associated ECalView, and connect to its "objects_removed" 2004-01-08 Rodrigo Moya * 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 --- calendar/gui/gnome-cal.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui/gnome-cal.c') 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", -- cgit v1.2.3