summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]m>2021-10-25 12:36:17 +0200
committerLuke from DC <[email protected]>2022-09-11 17:43:51 +0000
commit2bb9b36879f6ad480bd81bc0aea3d10b7d48269e (patch)
tree6bf621e9eb3d5b3e2bf665c43a33fadbc2c86a35
parentd602542d4cbbfbb9c2c568a22bf4c0370278df88 (diff)
downloadeom-2bb9b36879f6ad480bd81bc0aea3d10b7d48269e.tar.bz2
eom-2bb9b36879f6ad480bd81bc0aea3d10b7d48269e.tar.xz
Variable 'screen' is assigned a value that is never used
-rw-r--r--src/eom-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index 0d008dd..a9dcd05 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -4685,7 +4685,9 @@ static void
eom_window_init (EomWindow *window)
{
GdkGeometry hints;
+#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)
GdkScreen *screen;
+#endif
EomWindowPrivate *priv;
eom_debug (DEBUG_WINDOW);
@@ -4698,8 +4700,6 @@ eom_window_init (EomWindow *window)
hints.min_width = EOM_WINDOW_MIN_WIDTH;
hints.min_height = EOM_WINDOW_MIN_HEIGHT;
- screen = gtk_widget_get_screen (GTK_WIDGET (window));
-
priv = window->priv = eom_window_get_instance_private (window);
priv->view_settings = g_settings_new (EOM_CONF_VIEW);
@@ -4737,6 +4737,7 @@ eom_window_init (EomWindow *window)
window->priv->status = EOM_WINDOW_STATUS_UNKNOWN;
#if defined(HAVE_LCMS) && defined(GDK_WINDOWING_X11)
+ screen = gtk_widget_get_screen (GTK_WIDGET (window));
window->priv->display_profile =
eom_window_get_display_profile (screen);
#endif