aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-content.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-content.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-content.c')
-rw-r--r--shell/e-shell-content.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c
index 4e32765e35..15c1a93fa9 100644
--- a/shell/e-shell-content.c
+++ b/shell/e-shell-content.c
@@ -567,14 +567,14 @@ shell_content_constructed (GObject *object)
action = E_SHELL_WINDOW_ACTION_SEARCH_CLEAR (shell_window);
e_binding_new (
- G_OBJECT (action), "sensitive",
- G_OBJECT (widget), "secondary-icon-sensitive");
+ action, "sensitive",
+ widget, "secondary-icon-sensitive");
e_binding_new (
- G_OBJECT (action), "stock-id",
- G_OBJECT (widget), "secondary-icon-stock");
+ action, "stock-id",
+ widget, "secondary-icon-stock");
e_binding_new (
- G_OBJECT (action), "tooltip",
- G_OBJECT (widget), "secondary-icon-tooltip-text");
+ action, "tooltip",
+ widget, "secondary-icon-tooltip-text");
action = E_SHELL_WINDOW_ACTION_SEARCH_EXECUTE (shell_window);
g_signal_connect (
@@ -583,14 +583,14 @@ shell_content_constructed (GObject *object)
action = E_SHELL_WINDOW_ACTION_SEARCH_OPTIONS (shell_window);
e_binding_new (
- G_OBJECT (action), "sensitive",
- G_OBJECT (widget), "primary-icon-sensitive");
+ action, "sensitive",
+ widget, "primary-icon-sensitive");
e_binding_new (
- G_OBJECT (action), "stock-id",
- G_OBJECT (widget), "primary-icon-stock");
+ action, "stock-id",
+ widget, "primary-icon-stock");
e_binding_new (
- G_OBJECT (action), "tooltip",
- G_OBJECT (widget), "primary-icon-tooltip-text");
+ action, "tooltip",
+ widget, "primary-icon-tooltip-text");
widget = shell_content->priv->search_bar;
gtk_size_group_add_widget (size_group, widget);