From cc5c75e9f1153fa90e6d4cf566dd80bb26af9ee9 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 30 May 2001 01:11:00 +0000 Subject: New function. 2001-05-29 Federico Mena Quintero * gui/e-tasks.c (e_tasks_get_calendar_table): New function. * gui/tasks-control.c (tasks_control_activate): Connect to the "selection_changed" signal of the tasks widget here, not in tasks_control_new(). Also, update the sensitivity of the commands here for the first time. (tasks_control_deactivate): Disconnect from the signal here since it only makes sense to monitor selection changes while the control is active. (selection_changed_cb): Removed hack that tested the presence of the remote UI container. (sensitize_commands): New function. svn path=/trunk/; revision=10049 --- calendar/gui/e-tasks.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'calendar/gui/e-tasks.c') diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 1686ac793a..609e2551c1 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -32,7 +32,6 @@ #include "widgets/menus/gal-view-menus.h" #include "dialogs/task-editor.h" #include "calendar-config.h" -#include "e-calendar-table.h" #include "calendar-config.h" #include "component-factory.h" @@ -635,6 +634,26 @@ e_tasks_setup_menus (ETasks *tasks, gtk_object_sink (GTK_OBJECT (collection)); } +/** + * e_tasks_get_calendar_table: + * @tasks: A tasks widget. + * + * Queries the #ECalendarTable contained in a tasks widget. + * + * Return value: The #ECalendarTable that the tasks widget uses to display its + * information. + **/ +ECalendarTable * +e_tasks_get_calendar_table (ETasks *tasks) +{ + ETasksPrivate *priv; + + g_return_val_if_fail (tasks != NULL, NULL); + g_return_val_if_fail (E_IS_TASKS (tasks), NULL); + + priv = tasks->priv; + return E_CALENDAR_TABLE (priv->tasks_view); +} /* This updates all the preference settings for all the ETasks widgets in use. */ -- cgit