diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-11-19 00:43:34 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-11-19 00:43:34 +0800 |
commit | 0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb (patch) | |
tree | e050e76ab99e071281a587b86170d0433d6f76ab /calendar/gui | |
parent | 3dacd544fdfbe363c6ed4be29fd8107f9cb663f4 (diff) | |
download | gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar.gz gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar.bz2 gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar.lz gsoc2013-evolution-0c2c22e17a9c26ebabd25fc3a8cd7ad2dc5146bb.tar.xz 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')
-rw-r--r-- | calendar/gui/calendar-component.c | 2 | ||||
-rw-r--r-- | calendar/gui/tasks-component.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); 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), |