[evolution] Add API for getting task count.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution] Add API for getting task count.
- Date: Mon, 20 Jul 2009 05:53:25 +0000 (UTC)
commit e77740c19c8c96e767e8c77922e2d28179648199
Author: Srinivasa Ragavan <sragavan novell com>
Date: Mon Jul 20 10:45:26 2009 +0530
Add API for getting task count.
widgets/misc/e-task-bar.c | 5 +++++
widgets/misc/e-task-bar.h | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/widgets/misc/e-task-bar.c b/widgets/misc/e-task-bar.c
index e0bdc76..e7fc15f 100644
--- a/widgets/misc/e-task-bar.c
+++ b/widgets/misc/e-task-bar.c
@@ -300,3 +300,8 @@ e_task_bar_get_task_widget (ETaskBar *task_bar,
return E_TASK_WIDGET (child_info->widget);
}
+gint
+e_task_bar_get_num_children (ETaskBar *task_bar)
+{
+ return g_list_length (GTK_BOX (task_bar->priv->hbox)->children);
+}
diff --git a/widgets/misc/e-task-bar.h b/widgets/misc/e-task-bar.h
index d88c069..19ed37a 100644
--- a/widgets/misc/e-task-bar.h
+++ b/widgets/misc/e-task-bar.h
@@ -70,7 +70,7 @@ void e_task_bar_remove_task_from_id (ETaskBar *task_bar,
guint id);
ETaskWidget *e_task_bar_get_task_widget (ETaskBar *task_bar,
gint n);
-
+gint e_task_bar_get_num_children (ETaskBar *task_bar);
G_END_DECLS
#endif /* _E_TASK_BAR_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]