aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-label-action.c
diff options
context:
space:
mode:
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 *