diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-03 20:29:15 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-03 20:29:52 +0800 |
commit | d0841e7c2490436c664cfec87099b86d54d4127d (patch) | |
tree | e9ac7fa767b6099e46c1adbd0cd004567191f60e /modules/calendar/e-memo-shell-view-private.c | |
parent | 847475a598fd21dff81ccb064603bafb97bd4cd6 (diff) | |
download | gsoc2013-evolution-d0841e7c2490436c664cfec87099b86d54d4127d.tar.gz gsoc2013-evolution-d0841e7c2490436c664cfec87099b86d54d4127d.tar.zst gsoc2013-evolution-d0841e7c2490436c664cfec87099b86d54d4127d.zip |
Bug 593881 - Category icons do not appear in preview pane
Diffstat (limited to 'modules/calendar/e-memo-shell-view-private.c')
-rw-r--r-- | modules/calendar/e-memo-shell-view-private.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-view-private.c b/modules/calendar/e-memo-shell-view-private.c index f1d331fab3..0a96d29664 100644 --- a/modules/calendar/e-memo-shell-view-private.c +++ b/modules/calendar/e-memo-shell-view-private.c @@ -24,6 +24,24 @@ #include "widgets/menus/gal-view-factory-etable.h" static void +memo_shell_view_preview_on_url_cb (EShellView *shell_view, + const gchar *url) +{ + EShellTaskbar *shell_taskbar; + gchar *message; + + shell_taskbar = e_shell_view_get_shell_taskbar (shell_view); + + if (url == NULL || *url == '\0') + e_shell_taskbar_set_message (shell_taskbar, NULL); + else { + message = g_strdup_printf (_("Click to open %s"), url); + e_shell_taskbar_set_message (shell_taskbar, message); + g_free (message); + } +} + +static void memo_shell_view_table_popup_event_cb (EShellView *shell_view, GdkEventButton *event) { @@ -171,6 +189,7 @@ e_memo_shell_view_private_constructed (EMemoShellView *memo_shell_view) EShellContent *shell_content; EShellSidebar *shell_sidebar; EShellWindow *shell_window; + ECalComponentPreview *memo_preview; EMemoTable *memo_table; ECalModel *model; ETable *table; @@ -191,6 +210,7 @@ e_memo_shell_view_private_constructed (EMemoShellView *memo_shell_view) priv->memo_shell_sidebar = g_object_ref (shell_sidebar); memo_shell_content = E_MEMO_SHELL_CONTENT (shell_content); + memo_preview = e_memo_shell_content_get_memo_preview (memo_shell_content); memo_table = e_memo_shell_content_get_memo_table (memo_shell_content); model = e_memo_table_get_model (memo_table); table = e_memo_table_get_table (memo_table); @@ -204,6 +224,11 @@ e_memo_shell_view_private_constructed (EMemoShellView *memo_shell_view) memo_shell_view); g_signal_connect_swapped ( + memo_preview, "on-url", + G_CALLBACK (memo_shell_view_preview_on_url_cb), + memo_shell_view); + + g_signal_connect_swapped ( memo_table, "open-component", G_CALLBACK (e_memo_shell_view_open_memo), memo_shell_view); |