aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
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 /shell/e-shell-window-private.c
parent3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff)
downloadgsoc2013-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 'shell/e-shell-window-private.c')
-rw-r--r--shell/e-shell-window-private.c44
1 files changed, 28 insertions, 16 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 200a56dbe6..5c4e1217ca 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -365,50 +365,62 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
action_group = ACTION_GROUP (LOCKDOWN_PRINTING);
- e_binding_new_with_negation (
+ g_object_bind_property (
shell_settings, "disable-printing",
- action_group, "visible");
+ action_group, "visible",
+ G_BINDING_SYNC_CREATE |
+ G_BINDING_INVERT_BOOLEAN);
action_group = ACTION_GROUP (LOCKDOWN_PRINT_SETUP);
- e_binding_new_with_negation (
+ g_object_bind_property (
shell_settings, "disable-print-setup",
- action_group, "visible");
+ action_group, "visible",
+ G_BINDING_SYNC_CREATE |
+ G_BINDING_INVERT_BOOLEAN);
action_group = ACTION_GROUP (LOCKDOWN_SAVE_TO_DISK);
- e_binding_new_with_negation (
+ g_object_bind_property (
shell_settings, "disable-save-to-disk",
- action_group, "visible");
+ action_group, "visible",
+ G_BINDING_SYNC_CREATE |
+ G_BINDING_INVERT_BOOLEAN);
#endif
/* Bind GObject properties to GObject properties. */
action = ACTION (SEND_RECEIVE);
- e_binding_new (
+ g_object_bind_property (
shell, "online",
- action, "sensitive");
+ action, "sensitive",
+ G_BINDING_SYNC_CREATE);
action = ACTION (WORK_OFFLINE);
- e_binding_new (
+ g_object_bind_property (
shell, "online",
- action, "visible");
+ action, "visible",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
shell, "network-available",
- action, "sensitive");
+ action, "sensitive",
+ G_BINDING_SYNC_CREATE);
action = ACTION (WORK_ONLINE);
- e_binding_new_with_negation (
+ g_object_bind_property (
shell, "online",
- action, "visible");
+ action, "visible",
+ G_BINDING_SYNC_CREATE |
+ G_BINDING_INVERT_BOOLEAN);
- e_binding_new (
+ g_object_bind_property (
shell, "network-available",
- action, "sensitive");
+ action, "sensitive",
+ G_BINDING_SYNC_CREATE);
/* Bind GObject properties to GConf keys. */