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. --- widgets/misc/e-search-bar.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'widgets/misc/e-search-bar.c') diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c index 9846576a5e..ede2e2fb37 100644 --- a/widgets/misc/e-search-bar.c +++ b/widgets/misc/e-search-bar.c @@ -25,8 +25,6 @@ #include #include -#include "e-util/e-binding.h" - /* backward-compatibility cruft */ #include "e-util/gtk-compat.h" @@ -380,9 +378,11 @@ search_bar_constructed (GObject *object) priv = E_SEARCH_BAR_GET_PRIVATE (object); - e_mutual_binding_new ( + g_object_bind_property ( object, "case-sensitive", - priv->case_sensitive_button, "active"); + priv->case_sensitive_button, "active", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); } static void @@ -584,9 +584,10 @@ e_search_bar_init (ESearchBar *search_bar) search_bar->priv->entry = g_object_ref (widget); gtk_widget_show (widget); - e_binding_new ( + g_object_bind_property ( search_bar, "active-search", - widget, "secondary-icon-sensitive"); + widget, "secondary-icon-sensitive", + G_BINDING_SYNC_CREATE); g_signal_connect_swapped ( widget, "activate", @@ -610,7 +611,10 @@ e_search_bar_init (ESearchBar *search_bar) gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0); gtk_widget_show (widget); - e_binding_new (search_bar, "active-search", widget, "sensitive"); + g_object_bind_property ( + search_bar, "active-search", + widget, "sensitive", + G_BINDING_SYNC_CREATE); g_signal_connect_swapped ( widget, "clicked", @@ -626,7 +630,10 @@ e_search_bar_init (ESearchBar *search_bar) gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0); gtk_widget_show (widget); - e_binding_new (search_bar, "active-search", widget, "sensitive"); + g_object_bind_property ( + search_bar, "active-search", + widget, "sensitive", + G_BINDING_SYNC_CREATE); g_signal_connect_swapped ( widget, "clicked", -- cgit v1.2.3