aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-actions.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-actions.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-actions.c')
-rw-r--r--shell/e-shell-window-actions.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 4fc8448518..54cd47ffa2 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -1875,28 +1875,28 @@ e_shell_window_actions_init (EShellWindow *shell_window)
g_object_set (ACTION (SEND_RECEIVE), "is-important", TRUE, NULL);
e_binding_new (
- G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
- G_OBJECT (ACTION (SHOW_SWITCHER)), "sensitive");
+ ACTION (SHOW_SIDEBAR), "active",
+ ACTION (SHOW_SWITCHER), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
- G_OBJECT (ACTION (SWITCHER_STYLE_BOTH)), "sensitive");
+ ACTION (SHOW_SIDEBAR), "active",
+ ACTION (SWITCHER_STYLE_BOTH), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
- G_OBJECT (ACTION (SWITCHER_STYLE_ICONS)), "sensitive");
+ ACTION (SHOW_SIDEBAR), "active",
+ ACTION (SWITCHER_STYLE_ICONS), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
- G_OBJECT (ACTION (SWITCHER_STYLE_TEXT)), "sensitive");
+ ACTION (SHOW_SIDEBAR), "active",
+ ACTION (SWITCHER_STYLE_TEXT), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
- G_OBJECT (ACTION (SWITCHER_STYLE_USER)), "sensitive");
+ ACTION (SHOW_SIDEBAR), "active",
+ ACTION (SWITCHER_STYLE_USER), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
- G_OBJECT (ACTION (SWITCHER_MENU)), "sensitive");
+ ACTION (SHOW_SIDEBAR), "active",
+ ACTION (SWITCHER_MENU), "sensitive");
}
GtkWidget *