Michael Natterer
10e4a261a7
libgimpwidgets: simplify GimpColorProfileChooserDialog's preview widget
...
There is no need for a frame around a scrolled window, the scrolled
window has the same shadow type API.
2015-08-22 11:20:00 +02:00
Michael Natterer
c102dde92b
libgimpcolor, *: change GimpColorProfile to be a GObject
...
it used to be a typedef to gpointer and actually was a cmsHPROFILE.
Change its API to be more "standard", remove the public close()
function. The object caches both the cmsHPROFILE and the data/length
ICC blob, so conversions between the two become obsolete (simply call
get_lcms_profile() or get_icc_profile()).
Adapt everything to the new API, but port it in a naive way for now,
the code doesn't take advantage of the new possibilities yet (like
refcounting).
2015-07-10 22:53:59 +02:00
Michael Natterer
4910c28957
libgimpcolor: rename the gimp_lcms_*() functions to gimp_color_profile_*()
...
because it doesn't make sense to call the typedef GimpColorProfile
but the function namespace gimp_lcms_*().
2015-06-03 09:41:23 +02:00
Michael Natterer
4c55f45552
libgimpwidgets: don't try to open non-regular files as ICC profiles
...
Instead, show proper messages in the profile chooser's preview pane.
2015-05-19 13:12:34 +02:00
Michael Natterer
6c800db1cc
Use the newly added profile utility functions all over the place
2015-05-06 16:38:57 +02:00
Michael Natterer
b7863269f0
libgimpcolor: change gimp_lcms_profile_open_from_file() from filename to GFile
...
and change most of the lcms plug-in to using GFile too.
2014-07-04 23:57:27 +02:00
A Kelday
c808789e1d
Bug 728911 - Fixes to libgimpwidgets for c++ plugins using gimpui
...
Add missing G_END_DECLS to libgimpwidgets headers.
Avoid use of c++ "private" keyword.
2014-04-25 00:33:29 +02:00
Michael Natterer
614c61a3dd
Don't #include <glib.h> before <lcms.h>
...
The include claimed to be because of "inline" in the lcms header, but
that was probably lcms1, since there is no trace of inline in the
lcms2 header.
2014-04-10 20:48:22 +02:00
Michael Natterer
32e47cf70d
libgimpcolor: add gimp_lcms_profile_is_equal()
...
and remove all of our own MD5 digest code and API. is_equal() uses
lcms' own MD5 API which I missed before. Thanks Elle for pointing that
out :)
2014-03-29 10:40:47 +01:00
Michael Natterer
dc8a3e8de5
libgimpwidgets: remove gimp_color_profile_chooser_dialog_get_desc()
...
and port its only user (the prefs dialog) to the code all other users
of GimpColorProfileChooserDialog use.
2014-03-23 23:50:54 +01:00
Michael Natterer
c6ac6913af
libgimpwidgets: use a GimpColorProfileView in GimpColorProfileChooserDialog
2014-03-16 18:36:12 +01:00
Michael Natterer
abb3f27cdb
libgimpwidgets: use gimp_lcms_profile_open_from_file() in the profile chooser
2014-03-16 15:57:14 +01:00
Michael Natterer
3ac04f9fe1
libgimpwidgets: more spacing around the profile chooser's preview textview
2014-03-15 00:09:35 +01:00
Michael Natterer
9c7cd2508f
app, libgimpwidgets: move GimpProfileChooserDialog to libgimpwidgets
...
and call it GimpColorProfileChooserDialog. Make libgimpwidgets
depend on lcms and make it query the profile directly.
2014-03-14 22:03:08 +01:00