app: get rid of including menus/ stuff from widgets/ and other places

Add GimpMenuFactory can always be found in a GimpDialogManager, use
gimp_dialog_factory_get_menu_factory() where we have a dialog factory
instead of accessing "global_menu_factory" or redundantly passing a
menu factory around where we already pass around a dialog factory.
This commit is contained in:
Michael Natterer
2016-11-23 19:16:36 +01:00
parent b795ae2296
commit a3c65e6d17
11 changed files with 60 additions and 71 deletions

View File

@ -53,7 +53,6 @@ GimpDisplay * gimp_display_new (Gimp *gimp,
GimpImage *image,
GimpUnit unit,
gdouble scale,
GimpMenuFactory *menu_factory,
GimpUIManager *popup_manager,
GimpDialogFactory *dialog_factory,
GdkScreen *screen,