diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2009-07-20 13:15:26 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@novell.com> | 2009-07-20 13:20:04 +0800 |
commit | e77740c19c8c96e767e8c77922e2d28179648199 (patch) | |
tree | ae16341d867f05953167c2f6edb3ddbbb0692c6f /widgets/misc | |
parent | 1294dde93c4bd3936a89d622bbf93fd53a768217 (diff) | |
download | gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.tar gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.tar.gz gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.tar.bz2 gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.tar.lz gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.tar.xz gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.tar.zst gsoc2013-evolution-e77740c19c8c96e767e8c77922e2d28179648199.zip |
Add API for getting task count.
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-task-bar.c | 5 | ||||
-rw-r--r-- | 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 e0bdc762a3..e7fc15fe00 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 d88c0697dd..19ed37a2e8 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_ */ |