aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-22 10:15:40 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-22 10:15:40 +0800
commit0f614b2e971aa0f7168b63f335e1c738bf4f9379 (patch)
treef11955384408c35730103a9fb825891fa615e82e /e-util
parentcbaa9eb7432b11d9bd6cb38fe5ef027612720623 (diff)
downloadgsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.tar
gsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.tar.gz
gsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.tar.bz2
gsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.tar.lz
gsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.tar.xz
gsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.tar.zst
gsoc2013-evolution-0f614b2e971aa0f7168b63f335e1c738bf4f9379.zip
Fix what I assume are some merge errors.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-util.c21
-rw-r--r--e-util/e-util.h2
2 files changed, 23 insertions, 0 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 576f46e54b..e4658c1bd7 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -1511,6 +1511,27 @@ e_util_read_file (const char *filename, gboolean filename_is_uri, char **buffer,
return res;
}
+GSList *
+e_util_get_category_filter_options (void)
+{
+ GSList *res = NULL;
+ GList *clist, *l;
+
+ clist = e_categories_get_list ();
+ for (l = clist; l; l = l->next) {
+ const gchar *cname = l->data;
+ struct _filter_option *fo = g_new0 (struct _filter_option, 1);
+
+ fo->title = g_strdup (cname);
+ fo->value = g_strdup (cname);
+ res = g_slist_prepend (res, fo);
+ }
+
+ g_list_free (clist);
+
+ return g_slist_reverse (res);
+}
+
static gpointer
e_camel_object_copy (gpointer camel_object)
{
diff --git a/e-util/e-util.h b/e-util/e-util.h
index c748aaed8e..458bef77a7 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -140,6 +140,8 @@ gboolean e_util_read_file (const gchar *filename,
gchar **buffer,
gsize *read,
GError **error);
+GSList * e_util_get_category_filter_options
+ (void);
/* Camel uses its own object system, so we have to box
* CamelObjects to safely use them as GObject properties. */