Permalink
Browse files

Fix compatibility with evolution 3.5.1

  • Loading branch information...
1 parent c4aab46 commit 9f38716881cfced8796ad467e9d72af22c2e497b @epienbroek committed Aug 21, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 src/mn-evolution-folder-tree-server.gob
  2. +4 −0 src/mn-evolution-server.gob
@@ -88,7 +88,11 @@ class MN:Evolution:Folder:Tree:Server from G:Object
#if EDS_CHECK_VERSION(3,1,0)
EShell *shell = e_shell_get_default();
EShellBackend *shell_backend = e_shell_get_backend_by_name(shell, "mail");
+#if EDS_CHECK_VERSION(3,5,1)
+ GtkWidget *browser = e_mail_browser_new (E_MAIL_BACKEND(shell_backend), NULL, NULL, EM_FORMAT_WRITE_MODE_NORMAL);
+#else
GtkWidget *browser = e_mail_browser_new (E_MAIL_BACKEND(shell_backend));
+#endif
EAlertSink *alert_sink = e_mail_reader_get_alert_sink(E_MAIL_READER(browser));
#if EDS_CHECK_VERSION(3,4,0)
selfp->tree = em_folder_tree_new(e_mail_session_new(), alert_sink);
@@ -357,7 +357,11 @@ class MN:Evolution:Server from G:Object
shell = e_shell_get_default ();
shell_backend = e_shell_get_backend_by_name (shell, "mail");
+#if EDS_CHECK_VERSION(3,5,1)
+ browser = e_mail_browser_new (E_MAIL_BACKEND(shell_backend), NULL, NULL, EM_FORMAT_WRITE_MODE_NORMAL);
+#else
browser = e_mail_browser_new (E_MAIL_BACKEND(shell_backend));
+#endif
#if EDS_CHECK_VERSION(3,1,0)
e_mail_reader_set_folder (E_MAIL_READER (browser), folder);
#else

0 comments on commit 9f38716

Please sign in to comment.