From 8962868ff902e58456c545478e62796029d1fe5c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 1 Sep 2009 21:12:44 -0400 Subject: Relax the EBinding API to reduce GObject casting. Also make it more fault-tolerant by warning about non-existent property names instead of just crashing. --- mail/e-mail-reader.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'mail/e-mail-reader.c') diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 793763162d..96ed8cf379 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -2061,33 +2061,33 @@ e_mail_reader_init (EMailReader *reader) /* Bind properties. */ e_binding_new_full ( - G_OBJECT (shell_settings), "mail-citation-color", - G_OBJECT (html_display), "citation-color", + shell_settings, "mail-citation-color", + html_display, "citation-color", e_binding_transform_string_to_color, NULL, NULL); e_binding_new ( - G_OBJECT (shell_settings), "mail-image-loading-policy", - G_OBJECT (html_display), "image-loading-policy"); + shell_settings, "mail-image-loading-policy", + html_display, "image-loading-policy"); e_binding_new ( - G_OBJECT (shell_settings), "mail-only-local-photos", - G_OBJECT (html_display), "only-local-photos"); + shell_settings, "mail-only-local-photos", + html_display, "only-local-photos"); e_binding_new ( - G_OBJECT (shell_settings), "mail-show-animated-images", - G_OBJECT (display), "animate"); + shell_settings, "mail-show-animated-images", + display, "animate"); e_binding_new ( - G_OBJECT (shell_settings), "mail-show-sender-photo", - G_OBJECT (html_display), "show-sender-photo"); + shell_settings, "mail-show-sender-photo", + html_display, "show-sender-photo"); action_name = "mail-caret-mode"; action = e_mail_reader_get_action (reader, action_name); e_mutual_binding_new ( - G_OBJECT (action), "active", - G_OBJECT (display), "caret-mode"); + action, "active", + display, "caret-mode"); /* Connect signals. */ -- cgit