From c3e652f5ff7e7e949a9f3964086eed39ffa7c943 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Sat, 19 Oct 2019 16:59:33 +0200 Subject: [PATCH] Defer setting the window icon until there is a window. --- docs/CHANGES.txt | 2 ++ src/tuxpaint.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index bb91ac354..5ceb901cf 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -43,6 +43,8 @@ $Id$ * Made sure "New" dialog created correct thumbnail subdirectories for personal Starters & Templates (e.g., ~/.tuxpaint/starters/thumbs/) + * Moved the setting of the window icon after window creation. + * Other Improvements ------------------ * Added ability to move color palette options to the end of diff --git a/src/tuxpaint.c b/src/tuxpaint.c index d6bda7cdf..760a78151 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -24031,14 +24031,6 @@ static void setup(void) #endif setup_colors(); - /* Set window icon and caption: */ - -#ifndef __APPLE__ - seticon(); -#endif - if (hide_cursor) - SDL_ShowCursor(SDL_DISABLE); - /* Deal with orientation rotation option */ @@ -24241,6 +24233,14 @@ static void setup(void) setup_screen_layout(); + /* Set window icon and caption: */ + +#ifndef __APPLE__ + seticon(); +#endif + if (hide_cursor) + SDL_ShowCursor(SDL_DISABLE); + /* quickly: title image, version, progress bar, and watch cursor */