aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index b9443a2875..d98bdfea9c 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -125,8 +125,6 @@ e_tasks_init (ETasks *tasks)
priv->query = NULL;
priv->view_instance = NULL;
priv->view_menus = NULL;
-
- setup_widgets (tasks);
}
/* Callback used when the selection changes in the table. */
@@ -244,6 +242,8 @@ e_tasks_construct (ETasks *tasks)
priv = tasks->priv;
+ setup_widgets (tasks);
+
priv->client = cal_client_new ();
if (!priv->client)
return NULL;
@@ -281,6 +281,17 @@ e_tasks_new (void)
}
+void
+e_tasks_set_ui_component (ETasks *tasks,
+ BonoboUIComponent *ui_component)
+{
+ g_return_if_fail (E_IS_TASKS (tasks));
+ g_return_if_fail (ui_component == NULL || BONOBO_IS_UI_COMPONENT (ui_component));
+
+ e_search_bar_set_ui_component (E_SEARCH_BAR (tasks->priv->search_bar), ui_component);
+}
+
+
static void
e_tasks_destroy (GtkObject *object)
{