app: fix setting a NULL image in gimp_menu_item_set_image()
hbox and label were attached to the wrong widget.
This commit is contained in:
parent
9aaea2c96f
commit
47cdb11c44
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue