aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
diff options
context:
space:
mode:
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. */