aboutsummaryrefslogtreecommitdiff
path: root/mail/evolution/files
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-09-04 18:53:13 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-09-04 18:53:13 +0000
commit3ef1afa8d7bf0abcf2adcd3e21cc50f733ae7025 (patch)
tree072c1ce305b22310d3f50db4a6605f079770bca4 /mail/evolution/files
parent357cf619c52b9484fe698d02d15a063a77ca4009 (diff)
downloadports-3ef1afa8d7bf0abcf2adcd3e21cc50f733ae7025.tar.gz
ports-3ef1afa8d7bf0abcf2adcd3e21cc50f733ae7025.zip
Notes
Diffstat (limited to 'mail/evolution/files')
-rw-r--r--mail/evolution/files/patch-aa44
-rw-r--r--mail/evolution/files/patch-camel::camel-mime-filter-charset.c14
-rw-r--r--mail/evolution/files/patch-camel::camel-mime-utils.c14
-rw-r--r--mail/evolution/files/patch-camel::camel-sasl-digest-md5.c14
-rw-r--r--mail/evolution/files/patch-camel::camel-store.h13
-rw-r--r--mail/evolution/files/patch-filter::filter-input.c13
-rw-r--r--mail/evolution/files/patch-mail::openpgp-utils.c14
-rw-r--r--mail/evolution/files/patch-shell::e-shortcuts-view-model.c140
-rw-r--r--mail/evolution/files/patch-shell::e-shortcuts-view.c63
9 files changed, 266 insertions, 63 deletions
diff --git a/mail/evolution/files/patch-aa b/mail/evolution/files/patch-aa
index 033cdbb90dd9..74028d1fe442 100644
--- a/mail/evolution/files/patch-aa
+++ b/mail/evolution/files/patch-aa
@@ -1,6 +1,36 @@
---- configure.orig Wed Sep 13 09:43:40 2000
-+++ configure Wed Sep 13 13:19:42 2000
-@@ -5709,8 +5709,8 @@
+
+$FreeBSD$
+
+--- configure.orig Tue Sep 4 17:59:26 2001
++++ configure Tue Sep 4 18:11:25 2001
+@@ -5667,7 +5667,7 @@
+
+ CPPFLAGS_save="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $DB3_CFLAGS"
+-for ac_hdr in db.h db3/db.h
++for ac_hdr in db3/db.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+@@ -5741,7 +5741,7 @@
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+- { echo "configure: error: Found db.h is not version $evolution_db_version" 1>&2; exit 1; }
++# { echo "configure: error: Found db.h is not version $evolution_db_version" 1>&2; exit 1; }
+ fi
+ rm -f conftest*
+
+@@ -5852,7 +5852,7 @@
+
+ echo "$ac_t""$ac_cv_db3_lib_version_match" 1>&6
+ if test "$ac_cv_db3_lib_version_match" = no; then
+- { echo "configure: error: db3 headers and library do not match... multiple copies installed?" 1>&2; exit 1; }
++# { echo "configure: error: db3 headers and library do not match... multiple copies installed?" 1>&2; exit 1; }
+ fi
+
+ CPPFLAGS="$CPPFLAGS_save"
+@@ -6333,8 +6333,8 @@
fi
@@ -11,9 +41,9 @@
-@@ -5837,8 +5837,8 @@
- { echo "configure: error: Did not find gdkpixbuf installed" 1>&2; exit 1; }
- fi
+@@ -6894,8 +6894,8 @@
+ fi
+
-GLIB_CFLAGS="`glib-config --cflags`"
-GLIB_LIBS="`glib-config --libs`"
@@ -22,7 +52,7 @@
-@@ -7915,10 +7915,10 @@
+@@ -9415,10 +9415,10 @@
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
diff --git a/mail/evolution/files/patch-camel::camel-mime-filter-charset.c b/mail/evolution/files/patch-camel::camel-mime-filter-charset.c
deleted file mode 100644
index e000e6e0fe45..000000000000
--- a/mail/evolution/files/patch-camel::camel-mime-filter-charset.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- camel/camel-mime-filter-charset.c 2001/03/16 19:41:33 1.1
-+++ camel/camel-mime-filter-charset.c 2001/03/16 19:41:44
-@@ -19,7 +19,7 @@
- */
-
-
--#include <iconv.h>
-+#include <giconv.h>
-
- #include <string.h>
- #include <errno.h>
diff --git a/mail/evolution/files/patch-camel::camel-mime-utils.c b/mail/evolution/files/patch-camel::camel-mime-utils.c
deleted file mode 100644
index b62a49522d14..000000000000
--- a/mail/evolution/files/patch-camel::camel-mime-utils.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- camel/camel-mime-utils.c 2001/03/16 19:44:50 1.1
-+++ camel/camel-mime-utils.c 2001/03/16 19:45:05
-@@ -33,7 +33,7 @@
- #include <unistd.h>
-
- #include <unicode.h>
--#include <iconv.h>
-+#include <giconv.h>
-
- #include <glib.h>
- #include <time.h>
diff --git a/mail/evolution/files/patch-camel::camel-sasl-digest-md5.c b/mail/evolution/files/patch-camel::camel-sasl-digest-md5.c
deleted file mode 100644
index 1158bf03aeab..000000000000
--- a/mail/evolution/files/patch-camel::camel-sasl-digest-md5.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- camel/camel-sasl-digest-md5.c 2001/05/16 07:38:17 1.1
-+++ camel/camel-sasl-digest-md5.c 2001/05/16 07:38:45
-@@ -29,7 +29,7 @@
- #include <ctype.h>
- #include <unistd.h>
-
--#include <iconv.h>
-+#include <giconv.h>
-
- #define d(x)
-
diff --git a/mail/evolution/files/patch-camel::camel-store.h b/mail/evolution/files/patch-camel::camel-store.h
new file mode 100644
index 000000000000..ee23828d6428
--- /dev/null
+++ b/mail/evolution/files/patch-camel::camel-store.h
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- camel/camel-store.h 2001/09/04 16:45:47 1.1
++++ camel/camel-store.h 2001/09/04 16:46:32
+@@ -33,6 +33,7 @@
+ #pragma }
+ #endif /* __cplusplus }*/
+
++#include <sys/types.h>
+ #include <camel/camel-object.h>
+ #include <camel/camel-service.h>
+
diff --git a/mail/evolution/files/patch-filter::filter-input.c b/mail/evolution/files/patch-filter::filter-input.c
new file mode 100644
index 000000000000..c25fab446a11
--- /dev/null
+++ b/mail/evolution/files/patch-filter::filter-input.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- filter/filter-input.c 2001/09/04 16:51:06 1.1
++++ filter/filter-input.c 2001/09/04 16:51:29
+@@ -23,6 +23,7 @@
+ #endif
+
+ #include <string.h>
++#include <sys/types.h>
+ #include <regex.h>
+ #include <gtk/gtkobject.h>
+ #include <gtk/gtkwidget.h>
diff --git a/mail/evolution/files/patch-mail::openpgp-utils.c b/mail/evolution/files/patch-mail::openpgp-utils.c
deleted file mode 100644
index cfc909ff21f4..000000000000
--- a/mail/evolution/files/patch-mail::openpgp-utils.c
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- mail/openpgp-utils.c 2001/05/16 07:47:09 1.1
-+++ mail/openpgp-utils.c 2001/05/16 07:47:21
-@@ -45,7 +45,7 @@
- #include <unistd.h>
- #include <signal.h>
-
--#include <iconv.h>
-+#include <giconv.h>
-
- #include <glib.h>
- #include <libgnome/gnome-defs.h>
diff --git a/mail/evolution/files/patch-shell::e-shortcuts-view-model.c b/mail/evolution/files/patch-shell::e-shortcuts-view-model.c
new file mode 100644
index 000000000000..f32c70d82e3d
--- /dev/null
+++ b/mail/evolution/files/patch-shell::e-shortcuts-view-model.c
@@ -0,0 +1,140 @@
+
+$FreeBSD$
+
+--- shell/e-shortcuts-view-model.c 2001/09/04 16:22:15 1.1
++++ shell/e-shortcuts-view-model.c 2001/09/04 16:30:50
+@@ -45,31 +45,71 @@
+ };
+
+
++/* Utility functions. */
++
++static GdkPixbuf *
++get_icon_for_item (EShortcutsViewModel *shortcuts_view_model,
++ const EShortcutItem *item,
++ gboolean want_mini)
++{
++ EShortcutsViewModelPrivate *priv;
++
++ priv = shortcuts_view_model->priv;
++
++ if (item->type != NULL) {
++ EStorageSet *storage_set;
++ EFolderTypeRegistry *folder_type_registry;
++
++ storage_set = e_shortcuts_get_storage_set (priv->shortcuts);
++ folder_type_registry = e_storage_set_get_folder_type_registry (storage_set);
++
++ return e_folder_type_registry_get_icon_for_type (folder_type_registry,
++ item->type,
++ want_mini);
++ }
++
++ g_print ("(%s is not a folder!)\n", item->name);
++
++ return NULL;
++}
++
++
+ /* View initialization. */
+
++static char *
++get_name_with_unread (const EShortcutItem *item)
++{
++ return g_strdup (item->name);
++}
++
+ static void
+ load_group_into_model (EShortcutsViewModel *shortcuts_view_model,
+ int group_num)
+ {
+ EShortcutsViewModelPrivate *priv;
+- EStorageSet *storage_set;
+ const GSList *shortcut_list;
+ const GSList *p;
+
+ priv = shortcuts_view_model->priv;
+
+- storage_set = e_shortcuts_get_storage_set (priv->shortcuts);
+- g_assert (storage_set != NULL);
+-
+ shortcut_list = e_shortcuts_get_shortcuts_in_group (priv->shortcuts, group_num);
+ if (shortcut_list == NULL)
+ return;
+
+ for (p = shortcut_list; p != NULL; p = p->next) {
+ const EShortcutItem *item;
++ char *name_with_unread;
+
+ item = (const EShortcutItem *) p->data;
+- e_shortcut_model_add_item (E_SHORTCUT_MODEL (shortcuts_view_model), group_num, -1, item->uri, item->name);
++ name_with_unread = get_name_with_unread (item);
++
++ e_shortcut_model_add_item (E_SHORTCUT_MODEL (shortcuts_view_model),
++ group_num, -1,
++ item->uri,
++ name_with_unread,
++ get_icon_for_item (shortcuts_view_model, item, FALSE));
++
++ g_free (name_with_unread);
+ }
+ }
+
+@@ -153,6 +193,7 @@
+ EShortcutsViewModel *shortcuts_view_model;
+ EShortcutsViewModelPrivate *priv;
+ const EShortcutItem *shortcut_item;
++ char *name_with_unread;
+
+ shortcuts_view_model = E_SHORTCUTS_VIEW_MODEL (data);
+ priv = shortcuts_view_model->priv;
+@@ -160,10 +201,14 @@
+ shortcut_item = e_shortcuts_get_shortcut (priv->shortcuts, group_num, item_num);
+ g_assert (shortcut_item != NULL);
+
++ name_with_unread = get_name_with_unread (shortcut_item);
+ e_shortcut_model_add_item (E_SHORTCUT_MODEL (shortcuts_view_model),
+ group_num, item_num,
+ shortcut_item->uri,
+- shortcut_item->name);
++ name_with_unread,
++ get_icon_for_item (shortcuts_view_model, shortcut_item, FALSE));
++
++ g_free (name_with_unread);
+ }
+
+ static void
+@@ -187,6 +232,7 @@
+ EShortcutsViewModel *shortcuts_view_model;
+ EShortcutsViewModelPrivate *priv;
+ const EShortcutItem *shortcut_item;
++ char *name_with_unread;
+
+ shortcuts_view_model = E_SHORTCUTS_VIEW_MODEL (data);
+ priv = shortcuts_view_model->priv;
+@@ -194,10 +240,14 @@
+ shortcut_item = e_shortcuts_get_shortcut (priv->shortcuts, group_num, item_num);
+ g_assert (shortcut_item != NULL);
+
++ name_with_unread = get_name_with_unread (shortcut_item);
+ e_shortcut_model_update_item (E_SHORTCUT_MODEL (shortcuts_view_model),
+ group_num, item_num,
+ shortcut_item->uri,
+- shortcut_item->name);
++ name_with_unread,
++ get_icon_for_item (shortcuts_view_model, shortcut_item, FALSE));
++
++ g_free (name_with_unread);
+ }
+
+
+@@ -213,6 +263,9 @@
+ priv = view_model->priv;
+
+ g_free (priv);
++
++ if (GTK_OBJECT_CLASS (parent_class)->destroy)
++ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+ }
+
+
diff --git a/mail/evolution/files/patch-shell::e-shortcuts-view.c b/mail/evolution/files/patch-shell::e-shortcuts-view.c
new file mode 100644
index 000000000000..2ff7af4ec1b9
--- /dev/null
+++ b/mail/evolution/files/patch-shell::e-shortcuts-view.c
@@ -0,0 +1,63 @@
+
+$FreeBSD$
+
+--- shell/e-shortcuts-view.c 2001/09/04 16:40:47 1.1
++++ shell/e-shortcuts-view.c 2001/09/04 16:44:17
+@@ -86,47 +86,6 @@
+ return colon + 1;
+ }
+
+-/* Icon callback for the shortcut bar. */
+-static GdkPixbuf *
+-icon_callback (EShortcutBar *shortcut_bar,
+- const char *uri,
+- gpointer data)
+-{
+- EFolderTypeRegistry *folder_type_registry;
+- EShortcuts *shortcuts;
+- EStorageSet *storage_set;
+- EFolder *folder;
+- GdkPixbuf *pixbuf;
+- const char *type;
+-
+- shortcuts = E_SHORTCUTS (data);
+-
+- storage_set = e_shortcuts_get_storage_set (shortcuts);
+- folder_type_registry = e_storage_set_get_folder_type_registry (storage_set);
+-
+- if (strcmp ("evolution:/My Evolution", uri) == 0) {
+- type = "My Evolution";
+- } else {
+- folder = e_storage_set_get_folder (storage_set,
+- get_storage_set_path_from_uri (uri));
+-
+- if (folder == NULL)
+- return NULL;
+-
+- type = e_folder_get_type_string (folder);
+- if (type == NULL)
+- return NULL;
+- }
+-
+- /* FIXME mini icons? */
+- pixbuf = e_folder_type_registry_get_icon_for_type (folder_type_registry, type, FALSE);
+-
+- if (pixbuf != NULL)
+- gdk_pixbuf_ref (pixbuf);
+-
+- return pixbuf;
+-}
+-
+
+ static void
+ show_new_group_dialog (EShortcutsView *view)
+@@ -659,9 +618,6 @@
+
+ priv->shortcuts = shortcuts;
+ gtk_object_ref (GTK_OBJECT (priv->shortcuts));
+-
+- e_shortcut_bar_set_icon_callback (E_SHORTCUT_BAR (shortcuts_view), icon_callback,
+- shortcuts);
+
+ e_shortcut_bar_set_model (E_SHORTCUT_BAR (shortcuts_view),
+ E_SHORTCUT_MODEL (e_shortcuts_view_model_new (shortcuts)));