From 0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 18 Nov 2003 16:43:34 +0000 Subject: added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menu 2003-11-18 Rodrigo Moya * gui/calendar-component.c (add_popup_menu_item): added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menu items depending on whether there is a selection or not. * gui/tasks-component.c (add_popup_menu_item, fill_popup_menu_cb): ditto. svn path=/trunk/; revision=23419 --- calendar/gui/calendar-component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui/calendar-component.c') diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 394aff4d36..db6a8fc275 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -335,7 +335,7 @@ fill_popup_menu_cb (ESourceSelector *selector, GtkMenu *menu, CalendarComponent { gboolean sensitive; - sensitive = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (priv->source_selector)) ? + sensitive = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (comp->priv->source_selector)) ? TRUE : FALSE; add_popup_menu_item (menu, _("New Calendar"), NULL, G_CALLBACK (new_calendar_cb), comp, TRUE); -- cgit v1.2.3