From 2e87aa81fc94f5d9564421e036adae7b48e7380a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 10 Mar 2013 09:53:12 -0400 Subject: Remove EMailShellSettings. EShellSettings predates GSettings and is no longer necessary. GSettings allows binding GObject properties to GSettings keys, with optional mapping functions. That fulfills the purpose of EShellSettings. --- em-format/e-mail-formatter.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'em-format/e-mail-formatter.c') diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c index 2e89f698d5..ad62320eee 100644 --- a/em-format/e-mail-formatter.c +++ b/em-format/e-mail-formatter.c @@ -27,6 +27,8 @@ #include #include +#include "libemail-engine/e-mail-enumtypes.h" + #define d(x) /* internal formatter extensions */ @@ -165,7 +167,7 @@ e_mail_formatter_set_property (GObject *object, case PROP_IMAGE_LOADING_POLICY: e_mail_formatter_set_image_loading_policy ( E_MAIL_FORMATTER (object), - g_value_get_int (value)); + g_value_get_enum (value)); return; case PROP_MARK_CITATIONS: @@ -263,7 +265,7 @@ e_mail_formatter_get_property (GObject *object, return; case PROP_IMAGE_LOADING_POLICY: - g_value_set_int ( + g_value_set_enum ( value, e_mail_formatter_get_image_loading_policy ( E_MAIL_FORMATTER (object))); @@ -620,16 +622,14 @@ e_mail_formatter_class_init (EMailFormatterClass *class) GDK_TYPE_COLOR, G_PARAM_READWRITE)); - /* FIXME Make this a proper enum property. */ g_object_class_install_property ( object_class, PROP_IMAGE_LOADING_POLICY, - g_param_spec_int ( + g_param_spec_enum ( "image-loading-policy", "Image Loading Policy", NULL, - E_MAIL_IMAGE_LOADING_POLICY_NEVER, - E_MAIL_IMAGE_LOADING_POLICY_ALWAYS, + E_TYPE_MAIL_IMAGE_LOADING_POLICY, E_MAIL_IMAGE_LOADING_POLICY_NEVER, G_PARAM_READWRITE)); -- cgit v1.2.3