git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: [PATCH] Provide a window icon on Windows platforms

From
KKirill <kirillathome@gmail.com>
Date
Dec 31, 2009, 22:42 UTC
Message-ID
<000701ca8a6a$7c002070$74006150$@com>
In-Reply-To
<a5b261830912311312if3d71aax5bb693a907dc5c0f@mail.gmail.com>
Unfortunately, I have to insist on my patch :)
> -----Original Message-----
> From: Pat Thoyts [mailto:patthoyts@googlemail.com]
> Sent: Thursday, December 31, 2009 4:12 PM
Show 9 quoted lines
> 2009/12/31 Kirill <kirillathome@gmail.com>:
> > Looks like 37871b73 by Giuseppe Bilotta does not work very well on
> > Windows. Instead of a former tcl/tk icon, the window has a black
> > square as an icon.
> 
> I've been using versions of gitk on Windows with that patch since it
> was applied in March and it has been fine. On Windows XP and Windows
> 7. So there is more to this than you are telling. Are you using
> windows via remote desktop?
You're absolutely right about *unintentional* withdrawal of facts in my original message, but no, I'm not using Remote Desktop. However, my XP SP3 has 16-bit colors and apparently 8.5.7 can't display those photos correctly in this case either. Most probable reason why the issue was first discovered in Remote Desktop is because most of RDP sessions are limited to 16-bit colors.
> If so, this requires an updated Tk and not a patch to gitk -
> tk 8.5.8 should be ok if this is the problem.
Unfortunately, the situation is improved with 8.5.8, but definitely not resolved (tested on msysGit devel branch). The sequence image create photo && wm iconphoto on 16-bit displays in XP SP3 renders the background black, not transparent. The fact that I'm using Classic color schema may play some role too. I'd speculate that 8.5.8 on Windows 7 (admittedly, it's much harder to switch to 16-bit colors there) may have exactly the same issue, given that 8.5.7 has exactly the same symptoms.
Is there a way to replace the "simplistic"
if {$::tcl_platform(platform) eq {windows}}
with something more elaborate that takes into account 16-bit colors?

-- Kirill.

Previous: Pat ThoytsNext: Pat Thoyts
Message 5 of 6 in “Provide a window icon on Windows platforms”
  1. Provide a window icon on Windows platformsKirill, Dec 31, 2009
  2. Jeff EplerDec 31, 2009
  3. KirillDec 31, 2009
  4. Pat ThoytsDec 31, 2009
  5. KirillDec 31, 2009
  6. Pat ThoytsDec 31, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.