diff --git a/evolution-2.11.90-enable-folder-tree.patch b/evolution-2.11.90-enable-folder-tree.patch new file mode 100644 index 0000000..05c6dfe --- /dev/null +++ b/evolution-2.11.90-enable-folder-tree.patch @@ -0,0 +1,48 @@ +--- evolution-2.11.90/mail/mail-component.c.enable-folder-tree 2007-08-18 02:21:45.000000000 -0400 ++++ evolution-2.11.90/mail/mail-component.c 2007-08-18 02:23:54.000000000 -0400 +@@ -652,30 +652,33 @@ enable_folder_tree (GtkWidget *emfb, Gtk + { + char *uri; + CamelURL *selected_curl, *current_curl; +- CamelFolder *folder; +- CamelException ex; + EMFolderView *emfv = (EMFolderView *)emfb; + + /* Currently displayed folder */ +- MessageList *ml = emfv->list; +- folder = ml->folder; +- uri = mail_tools_folder_to_url (folder); +- current_curl = camel_url_new (uri, NULL); ++ uri = mail_tools_folder_to_url (emfv->list->folder); ++ current_curl = uri ? camel_url_new (uri, NULL) : NULL; ++ g_free (uri); + +- /* Selected folder in emft*/ ++ /* Selected folder in emft */ + uri = em_folder_tree_get_selected_uri ((EMFolderTree *) emft); +- folder = mail_tool_uri_to_folder (uri, 0, &ex); +- selected_curl = camel_url_new (uri, NULL); ++ selected_curl = uri ? camel_url_new (uri, NULL) : NULL; + +- if (!camel_url_equal (selected_curl, current_curl)) +- g_signal_emit_by_name (emft, "folder-selected", emft, uri, folder->full_name, uri, folder->folder_flags); ++ if (current_curl && selected_curl && !camel_url_equal (selected_curl, current_curl)) { ++ CamelFolder *folder; ++ CamelException ex; ++ ++ camel_exception_init (&ex); ++ folder = mail_tool_uri_to_folder (uri, 0, &ex); ++ g_signal_emit_by_name ( ++ emft, "folder-selected", emft, uri, ++ folder->full_name, uri, folder->folder_flags); ++ } + + gtk_widget_set_sensitive (emft, TRUE); + + camel_url_free (current_curl); + camel_url_free (selected_curl); + g_free (uri); +- + } + + /* Evolution::Component CORBA methods. */ diff --git a/evolution.spec b/evolution.spec index adb0fe0..babc445 100644 --- a/evolution.spec +++ b/evolution.spec @@ -45,7 +45,7 @@ Name: evolution Version: 2.11.90 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 and GFDL+ Group: Applications/Productivity Summary: GNOME's next-generation groupware suite @@ -131,6 +131,9 @@ Patch33: evolution-2.10.0-e-passwords.patch # GNOME bug #417999 Patch34: evolution-2.10.0-e-source-combo-box.patch +# RH bug #253348 / GNOME bug #467883 +Patch35: evolution-2.11.90-enable-folder-tree.patch + ## Dependencies ### Requires(post): GConf2 @@ -269,6 +272,7 @@ Development files needed for building things which link against evolution. %patch32 -p1 -b .view-message-source %patch33 -p1 -b .e-passwords %patch34 -p1 -b .e-source-combo-box +%patch35 -p1 -b .enable-folder-tree mkdir -p krb5-fakeprefix/include mkdir -p krb5-fakeprefix/lib @@ -711,6 +715,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/evolution/%{evo_major}/libmenus.so %changelog +* Sat Aug 18 2007 Matthew Barnes - 2.11.90-2.fc8 +- Add patch for RH bug #253348 (crash on startup). + * Wed Aug 15 2007 Matthew Barnes - 2.11.90-1.fc8 - Update to 2.11.90