diff --git a/app/widgets/gimpwidgets-utils.c b/app/widgets/gimpwidgets-utils.c index 0d4797d3b3..48433d93e4 100644 --- a/app/widgets/gimpwidgets-utils.c +++ b/app/widgets/gimpwidgets-utils.c @@ -84,10 +84,10 @@ gimp_menu_item_set_image (GtkMenuItem *item, return; hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); - g_object_set_data (G_OBJECT (hbox), "gimp-menu-item-hbox", hbox); + g_object_set_data (G_OBJECT (item), "gimp-menu-item-hbox", hbox); label = gtk_bin_get_child (GTK_BIN (item)); - g_object_set_data (G_OBJECT (hbox), "gimp-menu-item-label", label); + g_object_set_data (G_OBJECT (item), "gimp-menu-item-label", label); g_object_ref (label); gtk_container_remove (GTK_CONTAINER (item), label);