aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-02 09:12:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-02 09:12:44 +0800
commit8962868ff902e58456c545478e62796029d1fe5c (patch)
treed43efa77beba51f716a259a3538dd55a38711923 /shell/e-shell-window-private.c
parent6b2a55be48922c9fe5c94d654a4d463f23a428f2 (diff)
downloadgsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.gz
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.zst
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.zip
Relax the EBinding API to reduce GObject casting.
Also make it more fault-tolerant by warning about non-existent property names instead of just crashing.
Diffstat (limited to 'shell/e-shell-window-private.c')
-rw-r--r--shell/e-shell-window-private.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 6ee997ddef..2cf24ba061 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -359,56 +359,56 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
action_group = ACTION_GROUP (LOCKDOWN_PRINTING);
e_binding_new_with_negation (
- G_OBJECT (shell_settings), "disable-printing",
- G_OBJECT (action_group), "sensitive");
+ shell_settings, "disable-printing",
+ action_group, "sensitive");
action_group = ACTION_GROUP (LOCKDOWN_PRINT_SETUP);
e_binding_new_with_negation (
- G_OBJECT (shell_settings), "disable-print-setup",
- G_OBJECT (action_group), "sensitive");
+ shell_settings, "disable-print-setup",
+ action_group, "sensitive");
action_group = ACTION_GROUP (LOCKDOWN_SAVE_TO_DISK);
e_binding_new_with_negation (
- G_OBJECT (shell_settings), "disable-save-to-disk",
- G_OBJECT (action_group), "sensitive");
+ shell_settings, "disable-save-to-disk",
+ action_group, "sensitive");
/* Bind GObject properties to GObject properties. */
action = ACTION (SEND_RECEIVE);
e_binding_new (
- G_OBJECT (shell), "online",
- G_OBJECT (action), "sensitive");
+ shell, "online",
+ action, "sensitive");
action = ACTION (WORK_OFFLINE);
e_binding_new (
- G_OBJECT (shell), "online",
- G_OBJECT (action), "visible");
+ shell, "online",
+ action, "visible");
e_binding_new (
- G_OBJECT (shell), "network-available",
- G_OBJECT (action), "sensitive");
+ shell, "network-available",
+ action, "sensitive");
action = ACTION (WORK_ONLINE);
e_binding_new_with_negation (
- G_OBJECT (shell), "online",
- G_OBJECT (action), "visible");
+ shell, "online",
+ action, "visible");
e_binding_new (
- G_OBJECT (shell), "network-available",
- G_OBJECT (action), "sensitive");
+ shell, "network-available",
+ action, "sensitive");
e_binding_new (
- G_OBJECT (shell), "online",
- G_OBJECT (priv->online_button), "online");
+ shell, "online",
+ priv->online_button, "online");
e_binding_new (
- G_OBJECT (shell), "network-available",
- G_OBJECT (priv->online_button), "sensitive");
+ shell, "network-available",
+ priv->online_button, "sensitive");
/* Bind GObject properties to GConf keys. */