aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-config-format-html.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 11:40:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 19:12:52 +0800
commit1e663aa13266cad55e5019c03e768a38955166eb (patch)
tree6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /modules/mail/e-mail-config-format-html.c
parent3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff)
downloadgsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.bz2
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.lz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.xz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.zst
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.zip
Replace EBinding with GBinding.
GObject now does property bindings itself. Requires GLib >= 2.26.
Diffstat (limited to 'modules/mail/e-mail-config-format-html.c')
-rw-r--r--modules/mail/e-mail-config-format-html.c27
1 files changed, 16 insertions, 11 deletions
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