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 /mail/e-mail-attachment-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 'mail/e-mail-attachment-bar.c')
-rw-r--r-- | mail/e-mail-attachment-bar.c | 49 |
1 files changed, 32 insertions, 17 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c index c5ce9cf7bf..0de674149b 100644 --- a/mail/e-mail-attachment-bar.c +++ b/mail/e-mail-attachment-bar.c @@ -23,7 +23,6 @@ #include <glib/gi18n.h> -#include "e-util/e-binding.h" #include "e-util/gconf-bridge.h" #include "e-attachment-store.h" @@ -266,37 +265,53 @@ mail_attachment_bar_constructed (GObject *object) /* Set up property-to-property bindings. */ - e_mutual_binding_new ( + g_object_bind_property ( object, "active-view", - priv->combo_box, "active"); + priv->combo_box, "active", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "dragging", - priv->icon_view, "dragging"); + priv->icon_view, "dragging", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "dragging", - priv->tree_view, "dragging"); + priv->tree_view, "dragging", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "editable", - priv->icon_view, "editable"); + priv->icon_view, "editable", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "editable", - priv->tree_view, "editable"); + priv->tree_view, "editable", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "expanded", - priv->expander, "expanded"); + priv->expander, "expanded", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "expanded", - priv->combo_box, "visible"); + priv->combo_box, "visible", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( object, "expanded", - priv->vbox, "visible"); + priv->vbox, "visible", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); /* Set up property-to-GConf bindings. */ |