From 1e663aa13266cad55e5019c03e768a38955166eb Mon Sep 17 00:00:00 2001 From: Matthew Barnes <mbarnes@redhat.com> Date: Wed, 13 Oct 2010 23:40:16 -0400 Subject: Replace EBinding with GBinding. GObject now does property bindings itself. Requires GLib >= 2.26. --- modules/mail/e-mail-config-format-html.c | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'modules/mail/e-mail-config-format-html.c') diff --git a/modules/mail/e-mail-config-format-html.c b/modules/mail/e-mail-config-format-html.c index a92a943976..26071c0614 100644 --- a/modules/mail/e-mail-config-format-html.c +++ b/modules/mail/e-mail-config-format-html.c @@ -19,7 +19,7 @@ #include "e-mail-config-format-html.h" #include <shell/e-shell.h> -#include <e-util/e-binding.h> +#include <e-util/e-util.h> #include <e-util/e-extension.h> #include <mail/em-format-html.h> @@ -37,27 +37,32 @@ mail_config_format_html_constructed (GObject *object) shell = e_shell_get_default (); shell_settings = e_shell_get_shell_settings (shell); - e_binding_new_full ( + g_object_bind_property_full ( shell_settings, "mail-citation-color", extensible, "citation-color", + G_BINDING_SYNC_CREATE, e_binding_transform_string_to_color, - NULL, NULL); + NULL, NULL, (GDestroyNotify) NULL); - e_binding_new ( + g_object_bind_property ( shell_settings, "mail-image-loading-policy", - extensible, "image-loading-policy"); + extensible, "image-loading-policy", + G_BINDING_SYNC_CREATE); - e_binding_new ( + g_object_bind_property ( shell_settings, "mail-only-local-photos", - extensible, "only-local-photos"); + extensible, "only-local-photos", + G_BINDING_SYNC_CREATE); - e_binding_new ( + g_object_bind_property ( shell_settings, "mail-show-sender-photo", - extensible, "show-sender-photo"); + extensible, "show-sender-photo", + G_BINDING_SYNC_CREATE); - e_binding_new ( + g_object_bind_property ( shell_settings, "mail-show-real-date", - extensible, "show-real-date"); + extensible, "show-real-date", + G_BINDING_SYNC_CREATE); } static void -- cgit v1.2.3