aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-label-action.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 11:40:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 19:12:52 +0800
commit1e663aa13266cad55e5019c03e768a38955166eb (patch)
tree6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /mail/e-mail-label-action.c
parent3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff)
downloadgsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.zst
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.zip
Replace EBinding with GBinding.
GObject now does property bindings itself. Requires GLib >= 2.26.
Diffstat (limited to 'mail/e-mail-label-action.c')
-rw-r--r--mail/e-mail-label-action.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/e-mail-label-action.c b/mail/e-mail-label-action.c
index 315ee10e26..b7487fc047 100644
--- a/mail/e-mail-label-action.c
+++ b/mail/e-mail-label-action.c
@@ -21,8 +21,6 @@
#include "e-mail-label-action.h"
-#include "e-util/e-binding.h"
-
#define E_MAIL_LABEL_ACTION_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), E_TYPE_MAIL_LABEL_ACTION, EMailLabelActionPrivate))
@@ -62,22 +60,21 @@ mail_label_action_menu_item_realize_cb (GtkWidget *menu_item)
container = widget;
- /*stock_id = gtk_action_get_stock_id (action);
- widget = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_MENU);*/
widget = gtk_action_create_icon (action, GTK_ICON_SIZE_MENU);
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
- /* XXX GtkImage calls it "stock", not "stock-id". */
- /*e_mutual_binding_new (action, "stock-id", widget, "stock");*/
-
widget = gtk_label_new (NULL);
gtk_label_set_use_underline (GTK_LABEL (widget), TRUE);
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (container), widget, TRUE, TRUE, 0);
gtk_widget_show (widget);
- e_mutual_binding_new (action, "label", widget, "label");
+ g_object_bind_property (
+ action, "label",
+ widget, "label",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
}
static GtkWidget *