diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-05-30 09:11:00 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-05-30 09:11:00 +0800 |
commit | cc5c75e9f1153fa90e6d4cf566dd80bb26af9ee9 (patch) | |
tree | 63f6763e6fb465fa18d7f82803902600b2177d63 /calendar/gui/e-tasks.c | |
parent | 5fe6cec0feabee50cb809d39569ad1d5450036c5 (diff) | |
download | gsoc2013-evolution-cc5c75e9f1153fa90e6d4cf566dd80bb26af9ee9.tar.gz gsoc2013-evolution-cc5c75e9f1153fa90e6d4cf566dd80bb26af9ee9.tar.zst gsoc2013-evolution-cc5c75e9f1153fa90e6d4cf566dd80bb26af9ee9.zip |
New function.
2001-05-29 Federico Mena Quintero <federico@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 21 |
1 files changed, 20 insertions, 1 deletions
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. */ |