aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-25 23:43:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-25 23:50:10 +0800
commit3e55a228cc021072c02a3be62bea162dddf2c3bd (patch)
treee47551ee071108374c1bc8c54b70b864a90f010b /modules
parentac698896d0da608ba68d8356954dd996eea01a2a (diff)
downloadgsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.tar
gsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.tar.gz
gsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.tar.bz2
gsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.tar.lz
gsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.tar.xz
gsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.tar.zst
gsoc2013-evolution-3e55a228cc021072c02a3be62bea162dddf2c3bd.zip
ETaskShellSidebar: Show a unique display name while connecting.
Use e_source_registry_dup_unique_display_name() in the status message.
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-task-shell-sidebar.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/calendar/e-task-shell-sidebar.c b/modules/calendar/e-task-shell-sidebar.c
index 43f12267e7..9555860077 100644
--- a/modules/calendar/e-task-shell-sidebar.c
+++ b/modules/calendar/e-task-shell-sidebar.c
@@ -740,22 +740,28 @@ void
e_task_shell_sidebar_add_source (ETaskShellSidebar *task_shell_sidebar,
ESource *source)
{
+ ESourceRegistry *registry;
ESourceSelector *selector;
- const gchar *display_name;
+ gchar *display_name;
gchar *message;
g_return_if_fail (E_IS_TASK_SHELL_SIDEBAR (task_shell_sidebar));
g_return_if_fail (E_IS_SOURCE (source));
selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);
+ registry = e_source_selector_get_registry (selector);
e_source_selector_select_source (selector, source);
- display_name = e_source_get_display_name (source);
+ display_name = e_source_registry_dup_unique_display_name (
+ registry, source, E_SOURCE_EXTENSION_TASK_LIST);
+
message = g_strdup_printf (_("Opening task list '%s'"), display_name);
task_shell_sidebar_emit_status_message (task_shell_sidebar, message);
g_free (message);
+ g_free (display_name);
+
e_client_selector_get_client (
E_CLIENT_SELECTOR (selector), source,
task_shell_sidebar->priv->loading_clients,