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).
This commit is contained in:
@ -30,29 +30,29 @@ G_BEGIN_DECLS
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
|
||||
GtkWidget * gimp_table_attach_aligned (GtkTable *table,
|
||||
gint column,
|
||||
gint row,
|
||||
const gchar *label_text,
|
||||
gfloat xalign,
|
||||
gfloat yalign,
|
||||
GtkWidget *widget,
|
||||
gint colspan,
|
||||
gboolean left_align);
|
||||
GtkWidget * gimp_table_attach_aligned (GtkTable *table,
|
||||
gint column,
|
||||
gint row,
|
||||
const gchar *label_text,
|
||||
gfloat xalign,
|
||||
gfloat yalign,
|
||||
GtkWidget *widget,
|
||||
gint colspan,
|
||||
gboolean left_align);
|
||||
|
||||
void gimp_label_set_attributes (GtkLabel *label,
|
||||
...);
|
||||
void gimp_label_set_attributes (GtkLabel *label,
|
||||
...);
|
||||
|
||||
gint gimp_widget_get_monitor (GtkWidget *widget);
|
||||
gint gimp_get_monitor_at_pointer (GdkScreen **screen);
|
||||
gint gimp_widget_get_monitor (GtkWidget *widget);
|
||||
gint gimp_get_monitor_at_pointer (GdkScreen **screen);
|
||||
|
||||
GimpColorProfile gimp_widget_get_color_profile (GtkWidget *widget);
|
||||
GimpColorProfile * gimp_widget_get_color_profile (GtkWidget *widget);
|
||||
|
||||
GimpColorTransform gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
GimpColorManaged *managed,
|
||||
GimpColorConfig *config,
|
||||
const Babl **src_format,
|
||||
const Babl **dest_format);
|
||||
GimpColorTransform gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
GimpColorManaged *managed,
|
||||
GimpColorConfig *config,
|
||||
const Babl **src_format,
|
||||
const Babl **dest_format);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user