diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-12-17 21:51:32 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-12-17 21:51:32 +0800 |
commit | 8116a43344d472e00101c6357fac13b3970a19e7 (patch) | |
tree | dc51fd6d204f861386a301baca867061b9e02ccb /calendar/gui/tasks-component.c | |
parent | 31641a0c2b522d5ac1da0a0764eadfce92400412 (diff) | |
download | gsoc2013-evolution-8116a43344d472e00101c6357fac13b3970a19e7.tar.gz gsoc2013-evolution-8116a43344d472e00101c6357fac13b3970a19e7.tar.zst gsoc2013-evolution-8116a43344d472e00101c6357fac13b3970a19e7.zip |
made it public.
2003-12-17 Rodrigo Moya <rodrigo@ximian.com>
* gui/tasks-control.[ch] (tasks_control_sensitize_commands): made
it public.
* gui/tasks-component.c (update_uri_for_primary_selection): call
tasks_control_sensitize_commands() when the primary selection
changes.
svn path=/trunk/; revision=23963
Diffstat (limited to 'calendar/gui/tasks-component.c')
-rw-r--r-- | calendar/gui/tasks-component.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index bda28845e2..0fa40303ff 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -181,6 +181,8 @@ update_uri_for_primary_selection (TasksComponent *component) TasksComponentPrivate *priv; ESource *source; char *uri; + ECalendarTable *cal_table; + ETable *etable; priv = component->priv; @@ -192,7 +194,11 @@ update_uri_for_primary_selection (TasksComponent *component) uri = e_source_get_uri (source); e_tasks_set_default_uri (priv->tasks, uri); g_free (uri); - + + cal_table = e_tasks_get_calendar_table (priv->tasks); + etable = e_calendar_table_get_table (cal_table); + tasks_control_sensitize_commands (priv->view_control, priv->tasks, e_table_selected_count (etable)); + /* Save the selection for next time we start up */ calendar_config_set_primary_tasks (e_source_peek_uid (source)); } |