diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-06 09:47:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-08 06:32:16 +0800 |
commit | 8ad0c51edff9677ca22c46257f4a596dc23d2055 (patch) | |
tree | 44a10f1bb10506aba1c373aeae55deea6f3bef15 /e-util/e-util.c | |
parent | 27eb820ea13c49af3d4f67c4c483aa0d3bbc1a94 (diff) | |
download | gsoc2013-evolution-8ad0c51edff9677ca22c46257f4a596dc23d2055.tar.gz gsoc2013-evolution-8ad0c51edff9677ca22c46257f4a596dc23d2055.tar.zst gsoc2013-evolution-8ad0c51edff9677ca22c46257f4a596dc23d2055.zip |
Adapt to Camel API changes.
This also removes the boxed CamelObject GType, since CamelObject is an
honest-to-goodness GObject now.
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r-- | e-util/e-util.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index e55edfb883..3728489fa4 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -48,6 +48,7 @@ #include <windows.h> #endif +#include <camel/camel.h> #include <libedataserver/e-data-server-util.h> #include <libedataserver/e-categories.h> #include <libedataserver/e-source-list.h> @@ -1484,32 +1485,3 @@ e_util_set_source_combo_box_list (GtkWidget *source_combo_box, g_object_unref (gconf_client); } -static gpointer -e_camel_object_copy (gpointer camel_object) -{ - if (CAMEL_IS_OBJECT (camel_object)) - g_object_ref (camel_object); - - return camel_object; -} - -static void -e_camel_object_free (gpointer camel_object) -{ - if (CAMEL_IS_OBJECT (camel_object)) - g_object_unref (camel_object); -} - -GType -e_camel_object_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - type = g_boxed_type_register_static ( - "ECamelObject", - (GBoxedCopyFunc) e_camel_object_copy, - (GBoxedFreeFunc) e_camel_object_free); - - return type; -} |