app: implement the "Convert to RGB Working Space" import dialog in the core

Add gimp_image_import_color_profile(), a GUI vtable entry
query_profile_policy() and a new dialog which returns the profile
policy and the profile to convert to. Get rid of the wrapper that
calls the lcms plug-in for that dialog, the plug-in is now completely
unused.

This commit doesn't add any new features, it's just the former lcms
plug-in dialog implemented in app/ (except the little fix that it is
now aware of linear vs. gamma images).
This commit is contained in:
Michael Natterer
2015-08-23 10:51:31 +02:00
parent dc51a89427
commit b51ee77ec0
13 changed files with 314 additions and 238 deletions

View File

@ -93,8 +93,16 @@ struct _GimpGui
const gchar *mime_type);
void (* recent_list_load) (Gimp *gimp);
GMountOperation * (* get_mount_operation) (Gimp *gimp,
GMountOperation
* (* get_mount_operation) (Gimp *gimp,
GimpProgress *progress);
GimpColorProfilePolicy
(* query_profile_policy) (Gimp *gimp,
GimpImage *image,
GimpContext *context,
GimpColorProfile **dest_profile,
gboolean *dont_ask);
};
@ -173,8 +181,16 @@ gboolean gimp_recent_list_add_file (Gimp *gimp,
const gchar *mime_type);
void gimp_recent_list_load (Gimp *gimp);
GMountOperation * gimp_get_mount_operation (Gimp *gimp,
GMountOperation
* gimp_get_mount_operation (Gimp *gimp,
GimpProgress *progress);
GimpColorProfilePolicy
gimp_query_profile_policy (Gimp *gimp,
GimpImage *image,
GimpContext *context,
GimpColorProfile **dest_profile,
gboolean *dont_ask);
#endif /* __GIMP_GUI_H__ */