aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggtoggletoolbutton.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-30 00:47:21 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-30 00:47:21 +0800
commitc46158a00cd6572504ded30c8a9d1ec1b468d07f (patch)
tree29aa716204dcd4db73bc2e4f9d433b9f00b8efa9 /lib/egg/eggtoggletoolbutton.c
parent48b245e9205fc5a9a4745e8e0a3146d32a21f816 (diff)
downloadgsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.tar
gsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.tar.gz
gsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.tar.bz2
gsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.tar.lz
gsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.tar.xz
gsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.tar.zst
gsoc2013-epiphany-c46158a00cd6572504ded30c8a9d1ec1b468d07f.zip
Update
2003-04-29 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/egg-editable-toolbar.c: * lib/egg/eggtoggletoolbutton.c: * lib/egg/eggtoolbar.c: * lib/egg/eggtoolbutton.c: * lib/egg/eggtoolbutton.h: Update
Diffstat (limited to 'lib/egg/eggtoggletoolbutton.c')
-rw-r--r--lib/egg/eggtoggletoolbutton.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/egg/eggtoggletoolbutton.c b/lib/egg/eggtoggletoolbutton.c
index 80372a8db..5f489bcec 100644
--- a/lib/egg/eggtoggletoolbutton.c
+++ b/lib/egg/eggtoggletoolbutton.c
@@ -124,9 +124,9 @@ static GtkWidget *
egg_toggle_tool_button_create_menu_proxy (EggToolItem *item)
{
EggToggleToolButton *button = EGG_TOGGLE_TOOL_BUTTON (item);
- const char *label;
+ gchar *label;
- label = gtk_label_get_text (GTK_LABEL (EGG_TOOL_BUTTON (button)->label));
+ label = _egg_tool_button_get_label_text (EGG_TOOL_BUTTON (item));
if (button->menu_item)
g_object_remove_weak_pointer (G_OBJECT (button->menu_item),
@@ -142,6 +142,8 @@ egg_toggle_tool_button_create_menu_proxy (EggToolItem *item)
g_object_add_weak_pointer (G_OBJECT (button->menu_item),
(gpointer *)&(button->menu_item));
+ g_free (label);
+
return button->menu_item;
}