aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-component.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-11-19 00:43:34 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-11-19 00:43:34 +0800
commit0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb (patch)
treee050e76ab99e071281a587b86170d0433d6f76ab /calendar/gui/tasks-component.c
parent3dacd544fdfbe363c6ed4be29fd8107f9cb663f4 (diff)
downloadgsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar.gz
gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar.zst
gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.zip
added 'sensitive' argument. (fill_popup_menu_cb): disable/enable menu
2003-11-18 Rodrigo Moya <rodrigo@ximian.com> * 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
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r--calendar/gui/tasks-component.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index f23d4bf732..e548326b3a 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -305,7 +305,7 @@ fill_popup_menu_cb (ESourceSelector *selector, GtkMenu *menu, TasksComponent *co
{
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 (component->priv->source_selector)) ?
TRUE : FALSE;
add_popup_menu_item (menu, _("New Task List"), GTK_STOCK_NEW, G_CALLBACK (new_task_list_cb),