diff options
author | rbuj <[email protected]> | 2021-10-25 12:36:17 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-09-11 17:43:51 +0000 |
commit | 2bb9b36879f6ad480bd81bc0aea3d10b7d48269e (patch) | |
tree | 6bf621e9eb3d5b3e2bf665c43a33fadbc2c86a35 /src | |
parent | d602542d4cbbfbb9c2c568a22bf4c0370278df88 (diff) | |
download | eom-2bb9b36879f6ad480bd81bc0aea3d10b7d48269e.tar.bz2 eom-2bb9b36879f6ad480bd81bc0aea3d10b7d48269e.tar.xz |
Variable 'screen' is assigned a value that is never used
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-window.c | 5 |
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 |