From 1e663aa13266cad55e5019c03e768a38955166eb Mon Sep 17 00:00:00 2001 From: Matthew Barnes 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/mailto-handler/evolution-mailto-handler.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/mailto-handler/evolution-mailto-handler.c') diff --git a/modules/mailto-handler/evolution-mailto-handler.c b/modules/mailto-handler/evolution-mailto-handler.c index 50212e11f0..367d9166d8 100644 --- a/modules/mailto-handler/evolution-mailto-handler.c +++ b/modules/mailto-handler/evolution-mailto-handler.c @@ -20,7 +20,6 @@ #include #include -#include #include /* Standard GObject macros */ @@ -150,9 +149,12 @@ mailto_handler_prompt (EMailtoHandler *extension) gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 12); gtk_widget_show (widget); - e_mutual_binding_new_with_negation ( + g_object_bind_property ( shell_settings, "mailto-handler-check", - widget, "active"); + widget, "active", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE | + G_BINDING_INVERT_BOOLEAN); /* Direct input focus away from the checkbox. */ widget = gtk_dialog_get_widget_for_response ( -- cgit v1.2.3