[gimp] app: fix setting a NULL image in gimp_menu_item_set_image()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix setting a NULL image in gimp_menu_item_set_image()
- Date: Wed, 23 May 2018 20:24:28 +0000 (UTC)
commit 47cdb11c447bda53d31d5bd79bb2cbe4e729fa59
Author: Michael Natterer <mitch gimp org>
Date: Wed May 23 22:21:52 2018 +0200
app: fix setting a NULL image in gimp_menu_item_set_image()
hbox and label were attached to the wrong widget.
app/widgets/gimpwidgets-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpwidgets-utils.c b/app/widgets/gimpwidgets-utils.c
index 0d4797d..48433d9 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]