[eog/gnome-41] eog-window: use correct type for display_profile
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gnome-41] eog-window: use correct type for display_profile
- Date: Sat, 19 Mar 2022 20:10:47 +0000 (UTC)
commit c8c614e3f4b52c0868a39d7458119fe688da2c08
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
(cherry picked from commit 1ba18e3719f5273b08a910bcb72de1a3d2931aba)
See merge request !119
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 97c8aeec..df0cb08f 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -172,7 +172,7 @@ struct _EogWindowPrivate {
PeasExtensionSet *extensions;
#ifdef HAVE_LCMS
- cmsHPROFILE *display_profile;
+ cmsHPROFILE display_profile;
#endif
};
@@ -385,7 +385,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;
@@ -397,7 +397,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]