diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-06-02 05:41:12 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-06-02 05:41:12 +0800 |
commit | 068e5e40b09717f630f6bb12bc199d6a739db4e3 (patch) | |
tree | 96544d47d49b252f40fd3aaa18caf09806ee0e15 /mail/em-folder-view.c | |
parent | 4823916613b56d2cf046469b466ef5c6754b8d27 (diff) | |
download | gsoc2013-evolution-068e5e40b09717f630f6bb12bc199d6a739db4e3.tar.gz gsoc2013-evolution-068e5e40b09717f630f6bb12bc199d6a739db4e3.tar.zst gsoc2013-evolution-068e5e40b09717f630f6bb12bc199d6a739db4e3.zip |
** Adds support for Contact Image in the preview pane
svn path=/trunk/; revision=33613
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 9dd72f8522..fa162af44d 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -2364,7 +2364,7 @@ emfv_message_selected_timeout(void *data) g_object_ref (emfv); /* TODO: we should manage our own thread stuff, would make cancelling outstanding stuff easier */ e_profile_event_emit("goto.load", emfv->displayed_uid, 0); - hstream = gtk_html_begin(((EMFormatHTML *)emfv->preview)->html); +/* hstream = gtk_html_begin(((EMFormatHTML *)emfv->preview)->html); g_signal_connect(((EMFormatHTML *)emfv->preview)->html, "object_requested", G_CALLBACK(emfv_spin), NULL); @@ -2372,7 +2372,7 @@ emfv_message_selected_timeout(void *data) _("Retrieving Message"), emfv->displayed_uid); gtk_html_stream_close(hstream, GTK_HTML_STREAM_OK); - +*/ mail_get_messagex(emfv->folder, emfv->displayed_uid, emfv_list_done_message_selected, emfv, mail_thread_queued); } else { e_profile_event_emit("goto.empty", "", 0); @@ -2661,6 +2661,8 @@ enum { EMFV_SHOW_DELETED, EMFV_THREAD_LIST, EMFV_PANED_SIZE, + EMFV_SENDER_PHOTO, + EMFV_PHOTO_LOCAL, EMFV_SETTINGS /* last, for loop count */ }; @@ -2680,6 +2682,8 @@ static const char * const emfv_display_keys[] = { "show_deleted", "thread_list", "paned_size", + "sender_photo", + "photo_local", }; static GHashTable *emfv_setting_key; @@ -2770,6 +2774,20 @@ emfv_setting_notify(GConfClient *gconf, guint cnxn_id, GConfEntry *entry, EMFold if (emf->message) em_format_redraw(emf); break; } + case EMFV_SENDER_PHOTO: { + EMFormat *emf = (EMFormat *)emfv->preview; + + emf->show_photo = gconf_value_get_bool (value); + if (emf->message) + em_format_redraw(emf); + + break; } + case EMFV_PHOTO_LOCAL: { + EMFormat *emf = (EMFormat *)emfv->preview; + + emf->photo_local = gconf_value_get_bool (value); + + break; } case EMFV_SHOW_PREVIEW: { gboolean state_gconf, state_camel; char *ret; |