aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
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"