From b70a7a984b14a645f4d48816755dcf2fa64752b9 Mon Sep 17 00:00:00 2001 From: Dmitry Butskoy Date: Feb 01 2010 17:58:17 +0000 Subject: update evolution patch --- diff --git a/mail-notification-5.4-evolution.patch b/mail-notification-5.4-evolution.patch index d9eccd8..073818a 100644 --- a/mail-notification-5.4-evolution.patch +++ b/mail-notification-5.4-evolution.patch @@ -21,3 +21,82 @@ if ((camel_message_info_flags(info) & CAMEL_MESSAGE_SEEN) == 0) g_ptr_array_add(*ret, self_camel_message_info_to_dbus_struct(info)); +--- build/src/mn-evolution-folder-tree-server.c.evolution 2010-02-01 10:00:12.128683776 -0500 ++++ build/src/mn-evolution-folder-tree-server.c 2010-02-01 10:02:32.809697243 -0500 +@@ -26,5 +26,8 @@ + #include ++#include ++#if !EDS_CHECK_VERSION(2,29,0) + #include ++#endif + #include + #include "mn-evolution-plugin.h" + #include "mn-evolution.h" +@@ -396,7 +399,11 @@ mn_evolution_folder_tree_server_construc + ++#if EDS_CHECK_VERSION(2,29,0) ++ selfp->tree = em_folder_tree_new(); ++#else + EMFolderTreeModel *model; + + model = mail_component_peek_tree_model(mail_component_peek()); + selfp->tree = em_folder_tree_new_with_model(model); ++#endif + + selfp->plug = gtk_plug_new((GdkNativeWindow) selfp->id); +--- build/src/mn-evolution-server.c.evolution 2010-02-01 10:06:36.484698060 -0500 ++++ build/src/mn-evolution-server.c 2010-02-01 10:09:01.946682081 -0500 +@@ -28,9 +28,14 @@ + #include + #include + #include ++#if EDS_CHECK_VERSION(2,29,0) ++#include ++#include ++#else + #include + #include + #include ++#endif + #include + #include + #include +@@ -568,6 +573,19 @@ mn_evolution_server_open_message (MNEvol + folder = self_lookup_folder(folder_uri, err); + if (folder) + { ++#if EDS_CHECK_VERSION(2,29,0) ++ EShell *shell; ++ EShellBackend *shell_backend; ++ GtkWidget *browser; ++ ++ shell = e_shell_get_default (); ++ shell_backend = e_shell_get_backend_by_name (shell, "mail"); ++ ++ browser = e_mail_browser_new (shell_backend); ++ e_mail_reader_set_folder (E_MAIL_READER (browser), folder, folder_uri); ++ e_mail_reader_set_message (E_MAIL_READER (browser), message_uid); ++ gtk_widget_show (browser); ++#else + GtkWidget *browser; + + /* modelled after Evolution's handleuri_got_folder() */ +@@ -578,6 +596,7 @@ mn_evolution_server_open_message (MNEvol + em_folder_view_set_folder((EMFolderView *) browser, folder, folder_uri); + em_folder_view_set_message((EMFolderView *) browser, message_uid, FALSE); + gtk_widget_show(((EMMessageBrowser *) browser)->window); ++#endif + + camel_object_unref(folder); + } +--- src/mn-evolution-plugin.c.evolution 2008-05-22 11:45:35.000000000 -0400 ++++ src/mn-evolution-plugin.c 2010-02-01 11:52:06.141664757 -0500 +@@ -204,7 +204,7 @@ connect_to_session_bus (void) + } + + int +-e_plugin_lib_enable (EPluginLib *ep, int enable) ++e_plugin_lib_enable (EPlugin *ep, int enable) + { + static gboolean enabled = FALSE; + GError *err = NULL; diff --git a/mail-notification.spec b/mail-notification.spec index 2712a7f..7916b86 100644 --- a/mail-notification.spec +++ b/mail-notification.spec @@ -1,6 +1,6 @@ Name: mail-notification Version: 5.4 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Status icon that informs you if you have new mail Group: Applications/Internet @@ -185,6 +185,9 @@ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` %changelog +* Mon Feb 1 2010 Dmitry Butskoy - 5.4-17 +- update evolution patch (#538956, by Matthew Barnes ) + * Sat Aug 22 2009 Tomas Mraz - 5.4-16 - rebuilt with new openssl