diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-14 11:40:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-14 19:12:52 +0800 |
commit | 1e663aa13266cad55e5019c03e768a38955166eb (patch) | |
tree | 6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /widgets/misc/e-search-bar.c | |
parent | 3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff) | |
download | gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz 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 'widgets/misc/e-search-bar.c')
-rw-r--r-- | widgets/misc/e-search-bar.c | 23 |
1 files changed, 15 insertions, 8 deletions
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 <gdk/gdkkeysyms.h> #include <gtkhtml/gtkhtml-search.h> -#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", |