[eog/zbrown/lcms-fix] eog-window: use correct type for display_profile
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/zbrown/lcms-fix] eog-window: use correct type for display_profile
- Date: Mon, 10 Jan 2022 01:00:10 +0000 (UTC)
commit 1ba18e3719f5273b08a910bcb72de1a3d2931aba
Author: Zander Brown <zbrown gnome org>
Date: Mon Jan 10 00:55:21 2022 +0000
eog-window: use correct type for display_profile
cmsOpenProfileFromMem returns a cmsHPROFILE, EogImage expects a cmsHPROFILE
Except we were storing it a `cmsHPROFILE *`
Complete fluke I noticed this, and thought it was odd that we had a
pointer to a handle.
Looks like this has been around since LCMS was introduced:
https://gitlab.gnome.org/GNOME/eog/-/commit/d66242aa15be3d70a0936f0a07e8c7f1402bd19c
src/eog-window.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 8536fc63..aec3ffd7 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -173,7 +173,7 @@ struct _EogWindowPrivate {
PeasExtensionSet *extensions;
#ifdef HAVE_LCMS
- cmsHPROFILE *display_profile;
+ cmsHPROFILE display_profile;
#endif
};
@@ -386,7 +386,7 @@ eog_window_can_save_changed_cb (GSettings *settings,
}
#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)
-static cmsHPROFILE *
+static cmsHPROFILE
eog_window_get_display_profile (GtkWidget *window)
{
GdkScreen *screen;
@@ -398,7 +398,7 @@ eog_window_get_display_profile (GtkWidget *window)
gulong length;
guchar *str;
int result;
- cmsHPROFILE *profile = NULL;
+ cmsHPROFILE profile = NULL;
char *atom_name;
screen = gtk_widget_get_screen (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]