added a GimpItemFactory to the GimpEditor struct. Added
2003-03-21 Michael Natterer <mitch@gimp.org> * app/widgets/gimpeditor.[ch]: added a GimpItemFactory to the GimpEditor struct. Added gimp_editor_create_menu(). * app/widgets/gimpcolormapeditor.[ch] * app/widgets/gimpcomponenteditor.[ch] * app/widgets/gimpcontainereditor.[ch] * app/widgets/gimpdataeditor.[ch] * app/widgets/gimpitemtreeview.[ch]: removed item_factory pointers and lots of inalizers which just unref'ed the item_factory. Use gimp_editor_create_menu() instead. * app/widgets/gimpchanneltreeview.c * app/widgets/gimpgradienteditor.c * app/widgets/gimppaletteeditor.c: changed accordingly.
This commit is contained in:
committed by
Michael Natterer
parent
952e142965
commit
7f613b4783
@ -710,7 +710,7 @@ preview_events (GtkWidget *widget,
|
||||
|
||||
case 3:
|
||||
if (GIMP_DATA_EDITOR (editor)->data_editable)
|
||||
gimp_item_factory_popup_with_data (GIMP_DATA_EDITOR (editor)->item_factory,
|
||||
gimp_item_factory_popup_with_data (GIMP_EDITOR (editor)->item_factory,
|
||||
editor, NULL);
|
||||
break;
|
||||
|
||||
@ -1145,12 +1145,8 @@ control_button_press (GimpGradientEditor *editor,
|
||||
|
||||
if (button == 3)
|
||||
{
|
||||
GimpItemFactory *factory;
|
||||
|
||||
factory = GIMP_DATA_EDITOR (editor)->item_factory;
|
||||
|
||||
gimp_item_factory_popup_with_data (factory, editor, NULL);
|
||||
|
||||
gimp_item_factory_popup_with_data (GIMP_EDITOR (editor)->item_factory,
|
||||
editor, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user