aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-03-27 04:38:03 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-03-27 04:38:03 +0800
commitf231743ff15a88a11d8a9140b357ecef4ca5985b (patch)
tree35c1d5d2efc8bacbebc989e0d7b2f7403bc7191b /calendar/gui/calendar-commands.c
parent6c4c8684de1fcb81bf1ee3803e9d9b6c204605f8 (diff)
downloadgsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.tar
gsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.tar.gz
gsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.tar.bz2
gsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.tar.lz
gsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.tar.xz
gsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.tar.zst
gsoc2013-evolution-f231743ff15a88a11d8a9140b357ecef4ca5985b.zip
Fixes #55648
2004-03-26 JP Rosevear <jpr@ximian.com> Fixes #55648 * gui/print.c (print_todo_details): get the default from the model * gui/gnome-cal.h: remove and update protos * gui/gnome-cal.c (update_query): the clients and client_list members are now arrays of source types (setup_widgets): default the query to everything for tasks, cast the config items (gnome_calendar_init): init all the client hashs (gnome_calendar_destroy): clean them up, clean up all categories (client_cal_opened_cb): handle based on source type (append_category_cb): don't track the size in the closure (client_categories_changed_cb): do all the merging here (backend_died_cb): handle based on source type (gnome_calendar_construct): we don't special case the task stuff any more (gnome_calendar_get_default_client): return the default of the current view (gnome_calendar_add_source): take a source type argument and append accordingly (gnome_calendar_remove_source): similar, but remove accordingly (gnome_calendar_set_default_source): take a source type argument and set the default accordingly (gnome_calendar_new_task): use the default of the task model * gui/e-calendar-view.c (e_calendar_view_add_event): kill warning * gui/calendar-component.c (update_uris_for_selection): pass source type when adding/removing (update_uri_for_primary_selection): ditto (update_task_selection): make sure we show the correct list of tasks (update_primary_task_selection): make sure we track the primary task correctly (delete_calendar_cb): pass source type when removing (config_primary_selection_changed_cb): config listener callback for tasks (config_tasks_selection_changed_cb): ditto (impl_createControls): load the initial task selection, listen for changes (calendar_component_init): get the source lists * gui/calendar-commands.c (sensitize_taskpad_commands): get the task pad and then the default client from that svn path=/trunk/; revision=25201
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index cf846de38d..29ddda03d4 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -571,6 +571,8 @@ sensitize_taskpad_commands (GnomeCalendar *gcal, BonoboControl *control, gboolea
{
BonoboUIComponent *uic;
int n_selected;
+ ECalendarTable *task_pad;
+ ECalModel *model;
ECal *e_cal;
gboolean read_only = TRUE;
@@ -578,7 +580,10 @@ sensitize_taskpad_commands (GnomeCalendar *gcal, BonoboControl *control, gboolea
g_assert (uic != NULL);
n_selected = enable ? gnome_calendar_get_num_tasks_selected (gcal) : 0;
- e_cal = gnome_calendar_get_task_pad_e_cal (gcal);
+ task_pad = gnome_calendar_get_task_pad (gcal);
+ model = e_calendar_table_get_model (task_pad);
+ e_cal = e_cal_model_get_default_client (model);
+
if (e_cal)
e_cal_is_read_only (e_cal, &read_only, NULL);
else