aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-taskbar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-12-02 06:13:17 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-12-02 06:15:23 +0800
commit9379111ae48dd0e9eaea3fcdd14593414a60c115 (patch)
treecac3c012b39e0dbcb9e8893638048ac6d783be21 /shell/e-shell-taskbar.c
parente5883102e426d982875c8840347bdbb72db2f258 (diff)
downloadgsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.tar
gsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.tar.gz
gsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.tar.bz2
gsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.tar.lz
gsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.tar.xz
gsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.tar.zst
gsoc2013-evolution-9379111ae48dd0e9eaea3fcdd14593414a60c115.zip
Add e_shell_taskbar_get_activity_count().
For Anjal. This really belongs in EShellBackend but the infrastructure is not there yet.
Diffstat (limited to 'shell/e-shell-taskbar.c')
-rw-r--r--shell/e-shell-taskbar.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/e-shell-taskbar.c b/shell/e-shell-taskbar.c
index c3d89d7023..9413394307 100644
--- a/shell/e-shell-taskbar.c
+++ b/shell/e-shell-taskbar.c
@@ -435,3 +435,19 @@ e_shell_taskbar_unset_message (EShellTaskbar *shell_taskbar)
e_shell_taskbar_set_message (shell_taskbar, NULL);
}
+
+/**
+ * e_shell_taskbar_get_activity_count:
+ * @shell_taskbar: an #EShellTaskbar
+ *
+ * Returns the number of active #EActivity instances being tracked.
+ *
+ * Returns: the number of #EActivity instances
+ **/
+guint
+e_shell_taskbar_get_activity_count (EShellTaskbar *shell_taskbar)
+{
+ g_return_val_if_fail (E_IS_SHELL_TASKBAR (shell_taskbar), 0);
+
+ return g_hash_table_size (shell_taskbar->priv->proxy_table);
+}