aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 11:40:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 19:12:52 +0800
commit1e663aa13266cad55e5019c03e768a38955166eb (patch)
tree6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /composer
parent3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff)
downloadgsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.bz2
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.lz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.xz
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 'composer')
-rw-r--r--composer/e-composer-header-table.c21
-rw-r--r--composer/e-composer-private.c12
-rw-r--r--composer/e-composer-private.h1
3 files changed, 20 insertions, 14 deletions
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index d94201d129..1e78111da4 100644
--- a/composer/e-composer-header-table.c
+++ b/composer/e-composer-header-table.c
@@ -22,7 +22,6 @@
#include <libedataserverui/e-name-selector.h>
#include <shell/e-shell.h>
-#include <e-util/e-binding.h>
#include <e-util/gconf-bridge.h>
#include <misc/e-signature-combo-box.h>
@@ -572,13 +571,15 @@ composer_header_table_constructor (GType type,
priv->headers[ii]->input_widget,
"right-attach", 2, NULL);
- e_binding_new (
+ g_object_bind_property (
priv->headers[ii]->input_widget, "visible",
- priv->signature_label, "visible");
+ priv->signature_label, "visible",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
priv->headers[ii]->input_widget, "visible",
- priv->signature_combo_box, "visible");
+ priv->signature_combo_box, "visible",
+ G_BINDING_SYNC_CREATE);
/* Now add the signature stuff. */
if (!small_screen_mode) {
@@ -1052,12 +1053,14 @@ e_composer_header_table_init (EComposerHeaderTable *table)
* make the title_widget and input_widget members private. */
for (ii = 0; ii < E_COMPOSER_NUM_HEADERS; ii++) {
header = table->priv->headers[ii];
- e_binding_new (
+ g_object_bind_property (
header, "visible",
- header->title_widget, "visible");
- e_binding_new (
+ header->title_widget, "visible",
+ G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
header, "visible",
- header->input_widget, "visible");
+ header->input_widget, "visible",
+ G_BINDING_SYNC_CREATE);
}
}
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index d96832d887..99e83ae138 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -391,13 +391,17 @@ e_composer_private_constructed (EMsgComposer *composer)
continue;
}
- e_mutual_binding_new (
+ g_object_bind_property (
header, "sensitive",
- action, "sensitive");
+ action, "sensitive",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
- e_mutual_binding_new (
+ g_object_bind_property (
header, "visible",
- action, "active");
+ action, "active",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
}
/* Install a handler for inline images. */
diff --git a/composer/e-composer-private.h b/composer/e-composer-private.h
index 1e9130b196..b4818d4c57 100644
--- a/composer/e-composer-private.h
+++ b/composer/e-composer-private.h
@@ -37,7 +37,6 @@
#include "e-composer-activity.h"
#include "e-composer-header-table.h"
#include "e-util/e-alert-sink.h"
-#include "e-util/e-binding.h"
#include "e-util/e-charset.h"
#include "e-util/e-extensible.h"
#include "e-util/e-marshal.h"