aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-button.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 /widgets/misc/e-attachment-button.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 'widgets/misc/e-attachment-button.c')
-rw-r--r--widgets/misc/e-attachment-button.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/misc/e-attachment-button.c b/widgets/misc/e-attachment-button.c
index 1cd517d3e2..a6af71e216 100644
--- a/widgets/misc/e-attachment-button.c
+++ b/widgets/misc/e-attachment-button.c
@@ -497,8 +497,8 @@ attachment_button_init (EAttachmentButton *button)
gtk_widget_show (widget);
e_mutual_binding_new (
- G_OBJECT (button), "expandable",
- G_OBJECT (widget), "sensitive");
+ button, "expandable",
+ widget, "sensitive");
widget = gtk_toggle_button_new ();
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
@@ -527,8 +527,8 @@ attachment_button_init (EAttachmentButton *button)
gtk_cell_layout_pack_start (cell_layout, renderer, FALSE);
e_mutual_binding_new (
- G_OBJECT (button), "expanded",
- G_OBJECT (renderer), "is-expanded");
+ button, "expanded",
+ renderer, "is-expanded");
renderer = gtk_cell_renderer_pixbuf_new ();
g_object_set (renderer, "stock-size", GTK_ICON_SIZE_BUTTON, NULL);
@@ -661,13 +661,13 @@ e_attachment_button_set_attachment (EAttachmentButton *button,
gulong handler_id;
binding = e_mutual_binding_new (
- G_OBJECT (attachment), "can-show",
- G_OBJECT (button), "expandable");
+ attachment, "can-show",
+ button, "expandable");
button->priv->can_show_binding = binding;
binding = e_mutual_binding_new (
- G_OBJECT (attachment), "shown",
- G_OBJECT (button), "expanded");
+ attachment, "shown",
+ button, "expanded");
button->priv->shown_binding = binding;
handler_id = g_signal_connect_swapped (