public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Re: X/Cygwin icon proposal
       [not found] ` <c2l08r$s95$1@sea.gmane.org>
@ 2004-03-10  2:44   ` Harold L Hunt II
  2004-03-10  3:02     ` Nahor
  0 siblings, 1 reply; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-10  2:44 UTC (permalink / raw)
  To: cygwin-xfree

Nahor,

Hmm... that is an interesting change.  I am now split 33-33-33 between 
the current, the one in CVS, and the one you just sent :)

I really don't know which I prefer.

Harold

Nahor wrote:

> Michael Bax wrote:
> 
>> What do you think?
> 
> 
> Let me play medium...I seeee....yessss... you don't have a black 
> desktop! :)
> The icon is completely invisible on black background.
> 
> And the logo is not smooth, i.e. the line are not of homogeneous thickness.
> I suggest that, instead of removing the white specks (which are actually 
> shades of gray to smooth the black lines), you actually make a real 
> white line around the black area.
> 
> All in all, I prefer the current icon. And that has nothing to do with 
> the fact that I made it. No, definitely not! ;)
> 
> Anyway, attached is one with a real white line around it. Some may like 
> it better. I'm 50-50 between the current one and the one attached.
> 
>     Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-10  2:44   ` X/Cygwin icon proposal Harold L Hunt II
@ 2004-03-10  3:02     ` Nahor
  2004-03-10  3:18       ` Harold L Hunt II
  0 siblings, 1 reply; 38+ messages in thread
From: Nahor @ 2004-03-10  3:02 UTC (permalink / raw)
  To: cygwin-xfree

Harold L Hunt II wrote:
> Hmm... that is an interesting change.  I am now split 33-33-33 between 
> the current, the one in CVS, and the one you just sent :)

I haven't seen the one in CVS. Is there a simple way to get it without 
having to checkout the whole source?

	Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-10  3:02     ` Nahor
@ 2004-03-10  3:18       ` Harold L Hunt II
       [not found]         ` <c2nko7$uba$1@sea.gmane.org>
  0 siblings, 1 reply; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-10  3:18 UTC (permalink / raw)
  To: cygwin-xfree

Yeah, save the following link to disk:

http://pdx.freedesktop.org/cgi-bin/viewcvs.cgi/*checkout*/xc/programs/Xserver/hw/xwin/X.ico?rev=1.1.6.1&only_with_tag=CYGWIN&cvsroot=xorg

Harold

Nahor wrote:

> Harold L Hunt II wrote:
> 
>> Hmm... that is an interesting change.  I am now split 33-33-33 between 
>> the current, the one in CVS, and the one you just sent :)
> 
> 
> I haven't seen the one in CVS. Is there a simple way to get it without 
> having to checkout the whole source?
> 
>     Nahor
> 
> 


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
       [not found]         ` <c2nko7$uba$1@sea.gmane.org>
@ 2004-03-10 18:00           ` Harold L Hunt II
       [not found]             ` <c2nm3d$2kg$1@sea.gmane.org>
  0 siblings, 1 reply; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-10 18:00 UTC (permalink / raw)
  To: cygwin-xfree

Nahor,

That new one you just made with the alpha channel is awesome!  It would 
be great if we can create an icon that has this, plus non-alpha channel 
icons (or at least it doesn't look much worse than the current icon when 
alpha channels are not supported).

Excellent work!

Harold

Nahor wrote:

> Harold L Hunt II wrote:
> 
>> http://pdx.freedesktop.org/cgi-bin/viewcvs.cgi/*checkout*/xc/programs/Xserver/hw/xwin/X.ico?rev=1.1.6.1&only_with_tag=CYGWIN&cvsroot=xorg 
> 
> 
> 
> Thanks.
> 
> My vote is between the one in CVS and my new one.
> Ideally, the news one should have a real alpha channel for transparency 
> around its border. It don't know if it's actually possible but the 
> FireFox/Thunderbird icons seems to use such an alpha channel for the 
> shadow part.
> 
> What about this one. It has an alpha channel. It has only the 32x32 16m 
> colors for now so look at it using a big view. It looks really cool on 
> my black desktop. Really smooth. However, I haven't checked it how it 
> looks on systems that don't support alpha channel in icons.


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
       [not found]             ` <c2nm3d$2kg$1@sea.gmane.org>
@ 2004-03-11 13:20               ` Benjamin Riefenstahl
       [not found]                 ` <c2qaku$c5c$1@sea.gmane.org>
  0 siblings, 1 reply; 38+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-11 13:20 UTC (permalink / raw)
  To: cygwin-xfree

Hi Nahor,


> Harold L Hunt II wrote:
>> That new one you just made with the alpha channel is awesome!

I'm not sure how this works, I assume the alpha channel is an XP
feature?  Anyway the new icon still has those ragged edges on my W2K
system when viewed with a black background.

Nahor <nahor@bravobrava.com> writes:
> Here you go. This icon has images in 32x32 and 16x16, in 16m with
> alpha, 256 and 16 colors.

With my display settings, the system menu icon is in 24x24.  Could you
add that version, too?


benny


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
       [not found]                 ` <c2qaku$c5c$1@sea.gmane.org>
@ 2004-03-11 19:33                   ` Benjamin Riefenstahl
  2004-03-11 20:07                     ` Alexander Gottwald
  0 siblings, 1 reply; 38+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-11 19:33 UTC (permalink / raw)
  To: cygwin-xfree

Hi Nahor,


Nahor <nahor@bravobrava.com> writes:
> Yes, the alpha channel is a new thing from XP. In other Windows
> systems, you should still get a slightly better icon than orginal
> icon (IMHO).
> [...]
> How does this one look in 24x24? 

Yes, it definitly is better here.

> The edges will be ragged

Right, that's why the one that I submitted had a square white
background.  But it seems people didn't like that one.


benny


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-11 19:33                   ` Benjamin Riefenstahl
@ 2004-03-11 20:07                     ` Alexander Gottwald
  2004-03-11 21:24                       ` Nahor
  2004-03-12 17:49                       ` Benjamin Riefenstahl
  0 siblings, 2 replies; 38+ messages in thread
From: Alexander Gottwald @ 2004-03-11 20:07 UTC (permalink / raw)
  To: cygwin-xfree

On Thu, 11 Mar 2004, Benjamin Riefenstahl wrote:

> > The edges will be ragged
> 
> Right, that's why the one that I submitted had a square white
> background.  But it seems people didn't like that one.

It was (is) in CVS and I really like it. Even much better than the new one.
The new one has some white around the black X which does like dump on the 
traybar.

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-11 20:07                     ` Alexander Gottwald
@ 2004-03-11 21:24                       ` Nahor
  2004-03-11 21:34                         ` Harold L Hunt II
  2004-03-12 12:59                         ` Benjamin Riefenstahl
  2004-03-12 17:49                       ` Benjamin Riefenstahl
  1 sibling, 2 replies; 38+ messages in thread
From: Nahor @ 2004-03-11 21:24 UTC (permalink / raw)
  To: cygwin-xfree

Alexander Gottwald wrote:
> It was (is) in CVS and I really like it. Even much better than the new one.

Maybe one can add yet-another-option on the commandline and have several 
icons in the exe (or on a special library or whatever). It won't solve 
the problem of the default exe icon but it will solve any the 
taskbar/systray/shortcuts issue.

	Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-11 21:24                       ` Nahor
@ 2004-03-11 21:34                         ` Harold L Hunt II
  2004-03-12  6:09                           ` Earle F. Philhower III
  2004-03-12 12:59                         ` Benjamin Riefenstahl
  1 sibling, 1 reply; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-11 21:34 UTC (permalink / raw)
  To: cygwin-xfree

Nahor wrote:

> Alexander Gottwald wrote:
> 
>> It was (is) in CVS and I really like it. Even much better than the new 
>> one.
> 
> 
> Maybe one can add yet-another-option on the commandline and have several 
> icons in the exe (or on a special library or whatever). It won't solve 
> the problem of the default exe icon but it will solve any the 
> taskbar/systray/shortcuts issue.

Well, I don't know about a command-line option (sounds like a reasonable 
idea), but I was at least going to preserve the white bordered icon as 
the second icon in the file.  That way people could use it for shortcuts 
and such.  Also, I think Earle's .XWinrc file may allow you to specify 
an alternate icon for the tray and the default icon for each window, so 
we may not need a command-line option.  Anyone want to look into this to 
confirm or debunk it?

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-11 21:34                         ` Harold L Hunt II
@ 2004-03-12  6:09                           ` Earle F. Philhower III
  2004-03-12  6:14                             ` Harold L Hunt II
  0 siblings, 1 reply; 38+ messages in thread
From: Earle F. Philhower III @ 2004-03-12  6:09 UTC (permalink / raw)
  To: cygwin-xfree

Hi folks, I'm really impressed with all the work you folks are doing!

At 04:33 PM 3/11/2004 -0500, Harold wrote:
>Nahor wrote:
>>Alexander Gottwald wrote:
>>>It was (is) in CVS and I really like it. Even much better than the new one.
>>Maybe one can add yet-another-option on the commandline and have several 
>>icons in the exe (or on a special library or whatever). It won't solve 
>>the problem of the default exe icon but it will solve any the 
>>taskbar/systray/shortcuts issue.
>Well, I don't know about a command-line option (sounds like a reasonable 
>idea), but I was at least going to preserve the white bordered icon as the 
>second icon in the file.  That way people could use it for shortcuts and 
>such.  Also, I think Earle's .XWinrc file may allow you to specify an 
>alternate icon for the tray and the default icon for each window, so we 
>may not need a command-line option.  Anyone want to look into this to 
>confirm or debunk it?

It's not there today, but if people are really interested I can throw together
a patch to the parser lexx/yacc to add a "TrayIcon xxxx" line and add
the usual support for "iconfile.dll,n" where n=icon ID (ie. "shell32.dll,5"
gives the floppy drive icon).  A default icon can be specified for X apps,
but again it's only for .ico files and can't index into, say, XWin.exe...

-Earle F. Philhower, III
  earle@ziplabel.com
  cdrlabel - ZipLabel - FlpLabel
  http://www.cdrlabel.com


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-12  6:09                           ` Earle F. Philhower III
@ 2004-03-12  6:14                             ` Harold L Hunt II
  2004-03-12  6:48                               ` Earle F. Philhower III
  0 siblings, 1 reply; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-12  6:14 UTC (permalink / raw)
  To: cygwin-xfree

Earle F. Philhower III wrote:

> Hi folks, I'm really impressed with all the work you folks are doing!

Yes, some neat things are happening.  A little birdy told me that OpenGL 
acceleration is almost there...

> At 04:33 PM 3/11/2004 -0500, Harold wrote:
> 
>> Nahor wrote:
>>
>>> Alexander Gottwald wrote:
>>>
>>>> It was (is) in CVS and I really like it. Even much better than the 
>>>> new one.
>>>
>>> Maybe one can add yet-another-option on the commandline and have 
>>> several icons in the exe (or on a special library or whatever). It 
>>> won't solve the problem of the default exe icon but it will solve any 
>>> the taskbar/systray/shortcuts issue.
>>
>> Well, I don't know about a command-line option (sounds like a 
>> reasonable idea), but I was at least going to preserve the white 
>> bordered icon as the second icon in the file.  That way people could 
>> use it for shortcuts and such.  Also, I think Earle's .XWinrc file may 
>> allow you to specify an alternate icon for the tray and the default 
>> icon for each window, so we may not need a command-line option.  
>> Anyone want to look into this to confirm or debunk it?
> 
> 
> It's not there today, but if people are really interested I can throw 
> together
> a patch to the parser lexx/yacc to add a "TrayIcon xxxx" line and add
> the usual support for "iconfile.dll,n" where n=icon ID (ie. "shell32.dll,5"
> gives the floppy drive icon).  A default icon can be specified for X apps,
> but again it's only for .ico files and can't index into, say, XWin.exe...

Yes, that sounds good.  Let me just double-check that the TrayIcon 
feature *would* allow you to select the second icon within XWin.exe, 
right?  That is okay that the icon for other applications could not 
index into XWin.exe, as long as XWin.exe can specify icons within itself.

Thanks in advance,

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-12  6:14                             ` Harold L Hunt II
@ 2004-03-12  6:48                               ` Earle F. Philhower III
  2004-03-13  8:30                                 ` Earle F. Philhower III
  0 siblings, 1 reply; 38+ messages in thread
From: Earle F. Philhower III @ 2004-03-12  6:48 UTC (permalink / raw)
  To: cygwin-xfree

At 01:14 AM 3/12/2004 -0500, Harold wrote:
>Yes, some neat things are happening.  A little birdy told me that OpenGL 
>acceleration is almost there...

glDoom, here I come!  As long as XWin keeps running runs w/o crashes for 
longer than the interval between Windows patches, I'm a happy camper...

>>At 04:33 PM 3/11/2004 -0500, Earle wrote:
>>...a patch to the parser lexx/yacc to add a "TrayIcon xxxx" line and add
>>the usual support for "iconfile.dll,n" where n=icon ID (ie. "shell32.dll,5"
>>gives the floppy drive icon)...
>Yes, that sounds good.  Let me just double-check that the TrayIcon feature 
>*would* allow you to select the second icon within XWin.exe, right?  That 
>is okay that the icon for other applications could not index into 
>XWin.exe, as long as XWin.exe can specify icons within itself.

Yup, that would be the plan:  If no .XWinrc file or no TrayIcon, run with 
the present default settings (I guess whatever ICON 0 is compiled into XWin 
is what you'll get).  Anywhere an icon is specified in the .xwinrc file, do 
the following:
. If the iconame is just ",#" then load the specified icon number from the 
XWin.exe resources
. else if the iconame is "<filename.exe/.dll>,nn" then load icon ID nn from 
that file
. else use present load .ico flow
. If we're unsuccessful in loading the icon, use the default X icon from 
XWin.exe

I also keep meaning to write a man page for the .xwinrc format, but since I 
don't follow main cygwin app development I'm not sure if manpages are the 
"preferred" format or if everyone is doing GNU Info files or something 
else.  It's probably in one of TFM that I've not R yet. ;)

-Earle F. Philhower, III
  earle@ziplabel.com
  cdrlabel - ZipLabel - FlpLabel
  http://www.cdrlabel.com


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-11 21:24                       ` Nahor
  2004-03-11 21:34                         ` Harold L Hunt II
@ 2004-03-12 12:59                         ` Benjamin Riefenstahl
  2004-03-12 16:51                           ` Nahor
  1 sibling, 1 reply; 38+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-12 12:59 UTC (permalink / raw)
  To: cygwin-xfree

Hi Nahor,


> Alexander Gottwald wrote:
>> It was (is) in CVS and I really like it. Even much better than the
>> new one.

Nahor <nahor@bravobrava.com> writes:
> Maybe one can add yet-another-option on the commandline and have
> several icons in the exe (or on a special library or whatever).

Hm, is the full alpha channel independent of the 1-bit transparency
mask that we have on older Windows version?  If so, couldn't we
combine both icons into one?  On XP, the white background and black
border would be hidden through the alpha mask.  On older systems the
white background would show.  The only downside would be that the X
character would have to be one pixel smaller on each side, because in
the white-background version we need two borders, one white and one
black.


benny


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-12 12:59                         ` Benjamin Riefenstahl
@ 2004-03-12 16:51                           ` Nahor
  2004-03-12 17:42                             ` Benjamin Riefenstahl
  0 siblings, 1 reply; 38+ messages in thread
From: Nahor @ 2004-03-12 16:51 UTC (permalink / raw)
  To: cygwin-xfree

Benjamin Riefenstahl wrote:
> Hm, is the full alpha channel independent of the 1-bit transparency
> mask that we have on older Windows version?  If so, couldn't we
> combine both icons into one?  On XP, the white background and black
> border would be hidden through the alpha mask.  On older systems the
> white background would show.

No, I don' think it would work. I don't know the details but right now, 
the icon is not a white square on older system. So somehow, windows put 
the transparent color where the alpha channel is fully transparent.
Maybe I could hack it by not making the alpha channel fully transparent 
but near enough as to make no difference on XP.
But that doesn't solve the issue of what people prefer: a square icon or 
a jagged one.

Anyway the best is still the config file. People can then select the 
icon they want: black X on white square, black X with white border, X 
with edges at 45 degrees, fully black icon, blue X, red X, pig with 
wings, X on top of MS Windows logo... you name it.

	Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-12 16:51                           ` Nahor
@ 2004-03-12 17:42                             ` Benjamin Riefenstahl
  0 siblings, 0 replies; 38+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-12 17:42 UTC (permalink / raw)
  To: cygwin-xfree

Hi Nahor,

Nahor <nahor@bravobrava.com> writes:
> No, I don' think it would work. I don't know the details but right
> now, the icon is not a white square on older system.

Older systems use a 1-bit transparency mask (I forgot how this works
in detail).  I am pretty sure that this is a separate item from the
alpha channel, because older systems couldn't interprete anything but
this 1-bit format.  OTOH, I guess that the tools that you use to
create the icon don't allow to edit those two items separately.

benny


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-11 20:07                     ` Alexander Gottwald
  2004-03-11 21:24                       ` Nahor
@ 2004-03-12 17:49                       ` Benjamin Riefenstahl
  1 sibling, 0 replies; 38+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-12 17:49 UTC (permalink / raw)
  To: cygwin-xfree

Hi Alexander,


Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> writes:
> It was (is) in CVS and I really like it. Even much better than the
> new one.

Thanks.

I got it from CVS and noticed that the original version is in there.
Harold had mentioned a bug with the 24x24 image and I had sent a new
version later, see
<http://sources.redhat.com/ml/cygwin-xfree/2003-09/msg00270.html>.


benny


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-12  6:48                               ` Earle F. Philhower III
@ 2004-03-13  8:30                                 ` Earle F. Philhower III
  2004-03-13  9:50                                   ` Harold L Hunt II
  0 siblings, 1 reply; 38+ messages in thread
From: Earle F. Philhower III @ 2004-03-13  8:30 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]

Hi Harold,

Attached please find a patch against 4.3.0.54 that:
. Adds "TRAYICON <iconidentifier>" to the .xwinrc file parser which lets you,
   surprisingly enough, change the tray icon
. Adds "file.dll,XX" parsing to the icon loader to support grabbing icons
   from inside DLL or EXEs
. Adds ",XX" parsing to the icon loader to support loading icons that are
   stored in the XWin.exe RC file (today there's only one, but I think folks
   are thinking of having multiple at some point in the near future)
. Adds handling of the "TaskbarCreated" Windows message which lets you re-add
   the taskbar icon when the main explorer starts.  Otherwise if explorer dies
   and is restarted for some reason, you'd lose the X taskbar icon until you
   exited all your X apps and restarted XWin.
. Fixes the icon loader to not append the ICONDIRECTORY to icons that are
   fully specified w/a drive letter (i.e. c:\blahblah)

[These below I'm not sure if the CVS -r cygwin tree is known funky or what...]
. WINMSG.H:  Comments out the redeclaration of the MessageType enum.
   I couldn't find anything in the change logs about using a modifies OS.H
   (where MessageType is originally defined and included prior to this header).
. WINMULTIWINDOWSHAPE.C, WINWINDOW.C:  pScreen is used by REGION_INIT()
   and other region macros, but isn't a local variable in two functions in
   these files (in winwindow there was a "#if 0" around the variable defintion,
   and in multiwindowshape it was not there at all?!...)

-Earle F. Philhower, III
  earle@ziplabel.com
  cdrlabel - ZipLabel - FlpLabel
  http://www.cdrlabel.com

[-- Attachment #2: taskbar-and-icons.patch --]
[-- Type: application/octet-stream, Size: 12657 bytes --]

diff -U3 xwin-4.3.0.54/InitOutput.c xwin/InitOutput.c
--- xwin-4.3.0.54/InitOutput.c	2004-03-04 22:10:19.000000000 -0800
+++ xwin/InitOutput.c	2004-03-13 00:11:09.031250000 -0800
@@ -448,6 +448,9 @@
     ErrorF ("InitOutput - Error reading config file\n");
 #endif
 
+  /* Load preferences from XWinrc file */
+  LoadPreferences();
+
   /* Setup global screen info parameters */
   screenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
   screenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
@@ -501,9 +504,6 @@
 	}
     }
 
-  /* Load preferences from XWinrc file */
-  LoadPreferences();
-
 #if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW)
 
 #if defined(XCSECURITY)
diff -U3 xwin-4.3.0.54/_usr_X11R6_lib_X11_system.XWinrc xwin/_usr_X11R6_lib_X11_system.XWinrc
--- xwin-4.3.0.54/_usr_X11R6_lib_X11_system.XWinrc	2004-02-27 19:40:06.000000000 -0800
+++ xwin/_usr_X11R6_lib_X11_system.XWinrc	2004-03-13 00:11:09.074250000 -0800
@@ -40,8 +40,24 @@
 #	...
 # }
 
+# When specifying an ICONFILE in the following commands several different
+# formats are allowed:
+# 1. Name of a regular Windows .ico format file
+#    (ex:  "cygwin.ico", "apple.ico")
+# 2. Name and index into a Windows .DLL
+#    (ex: "c:\windows\system32\shell32.dll,4" gives the default folder icon
+#         "c:\windows\system32\shell32.dll,5" gives the floppy drive icon)
+# 3. Index into XWin.EXE internal ICON resource
+#    (ex: ",101" is the 1st icon inside XWin.exe)
+
 # To define where ICO files live (** Windows path**)
 # ICONDIRECTORY	<windows-path i.e. c:\cygwin\usr\icons>
+# NOTE: If you specify a fully qualified path to an ICON below
+#             (i.e. "c:\xxx" or "d:\xxxx")
+#       this ICONDIRECTORY will not be prepended
+
+# To change the taskbar icon use...
+# TRAYICON       <name-of-windows-ico-file-in-icondirectory>
 
 # To define a replacement for the standard X icon for apps w/o specified icons
 # DEFAULTICON	<name-of-windows-ico-file-in-icondirectory>
diff -U3 xwin-4.3.0.54/winmsg.h xwin/winmsg.h
--- xwin-4.3.0.54/winmsg.h	2004-02-27 19:40:07.000000000 -0800
+++ xwin/winmsg.h	2004-03-13 00:11:09.191250000 -0800
@@ -50,11 +50,12 @@
     _msg(X_NONE,NULL                /* No prefix */) \
     __msg(X_NOT_IMPLEMENTED,"(NI)"  /* Not implemented */)
 
-typedef enum
-{
-  MESSAGE_STRINGS
-}
-MessageType;
+/* typedef enum
+ * {
+ *   MESSAGE_STRINGS
+ * }
+ * MessageType;
+ */
 
 
 /*
diff -U3 xwin-4.3.0.54/winmultiwindowshape.c xwin/winmultiwindowshape.c
--- xwin-4.3.0.54/winmultiwindowshape.c	2004-02-27 19:40:07.000000000 -0800
+++ xwin/winmultiwindowshape.c	2004-03-13 00:11:09.205250000 -0800
@@ -88,6 +88,8 @@
   BoxPtr	pShape, pRects, pEnd;
   HRGN		hRgn, hRgnRect;
   winWindowPriv(pWin);
+  ScreenPtr             pScreen = pWin->drawable.pScreen;
+  winScreenPriv(pScreen);
 
 #if CYGDEBUG
   ErrorF ("winReshape ()\n");
diff -U3 xwin-4.3.0.54/winprefs.c xwin/winprefs.c
--- xwin-4.3.0.54/winprefs.c	2004-03-09 15:05:50.000000000 -0800
+++ xwin/winprefs.c	2004-03-13 00:11:09.229250000 -0800
@@ -37,6 +37,7 @@
 /* Fixups to prevent collisions between Windows and X headers */
 #define ATOM DWORD
 #include <windows.h>
+#include <shellapi.h>
 
 #include "winprefs.h"
 #ifdef XWIN_MULTIWINDOW
@@ -67,6 +68,10 @@
 extern char *display;
 
 
+/* Local function to handle comma-ified icon names */
+static HICON
+LoadImageComma (char *fname, int sx, int sy, int flags);
+
 /*
  * Creates or appends a menu from a MENUPARSED structure
  */
@@ -229,6 +234,7 @@
 
   pref.iconDirectory[0] = 0;
   pref.defaultIconName[0] = 0;
+  pref.trayIconName[0] = 0;
 
   for (i=0; i<pref.iconItems; i++)
     if (pref.icon[i].hicon)
@@ -464,25 +470,13 @@
 winOverrideDefaultIcon(void)
 {
   HICON hicon;
-  char fname[PATH_MAX+NAME_MAX+2];
   
   if (pref.defaultIconName[0])
     {
-      /* Make sure we have a dir with trailing backslash */
-      /* Note we are using _Windows_ paths here, not cygwin */
-      strcpy (fname, pref.iconDirectory);
-      if (pref.iconDirectory[0])
-	if (fname[strlen(fname)-1]!='\\')
-	  strcat (fname, "\\");
-      strcat (fname, pref.defaultIconName);
-
-      hicon = (HICON)LoadImage(NULL,
-			       fname,
-			       IMAGE_ICON,
-			       0, 0,
-			       LR_DEFAULTSIZE|LR_LOADFROMFILE);
+      hicon = LoadImageComma (pref.defaultIconName, 0, 0, LR_DEFAULTSIZE);
       if (hicon==NULL)
-	ErrorF ("winOverrideDefaultIcon: LoadIcon(%s) failed\n", fname);
+	ErrorF ("winOverrideDefaultIcon: LoadIcon(%s) failed\n", 
+                pref.defaultIconName);
 
       return (unsigned long)hicon;
     }
@@ -490,6 +484,103 @@
   return 0;
 }
 
+/*
+ * Return the HICON to use in the taskbar notification area
+ */
+unsigned long
+winTaskbarIcon(void)
+{
+  HICON hicon;
+
+  hicon = 0;
+  /* First try and load an overridden, if success then return it */
+  if (pref.trayIconName[0])
+    {
+      hicon = LoadImageComma (pref.trayIconName,
+			      GetSystemMetrics (SM_CXSMICON),
+			      GetSystemMetrics (SM_CYSMICON),
+			      0 );
+    }
+
+  /* Otherwise return the default */
+  if (!hicon)
+    hicon =  (HICON) LoadImage (g_hInstance,
+				MAKEINTRESOURCE(IDI_XWIN),
+				IMAGE_ICON,
+				GetSystemMetrics (SM_CXSMICON),
+				GetSystemMetrics (SM_CYSMICON),
+				0);
+  
+  return (unsigned long)hicon;
+}
+
+
+/*
+ * Parse a filename to extract an icon:
+ *  If fname is exactly ",nnn" then extract icon from our resource
+ *  else if it is "file,nnn" then extract icon nnn from that file
+ *  else try to load it as an .ico file and if that fails return NULL
+ */
+static HICON
+LoadImageComma (char *fname, int sx, int sy, int flags)
+{
+  HICON  hicon;
+  int    index;
+  char   file[PATH_MAX+NAME_MAX+2];
+
+  /* Some input error checking */
+  if (!fname || !fname[0])
+    return NULL;
+
+  index = 0;
+  hicon = NULL;
+
+  if (fname[0]==',')
+    {
+      /* It's the XWIN.EXE resource they want */
+      index = atoi (fname+1);
+      hicon = LoadImage (g_hInstance,
+			 MAKEINTRESOURCE(index),
+			 IMAGE_ICON,
+			 sx,
+			 sy,
+			 flags);
+    }
+  else 
+    {
+      file[0] = 0; 
+      /* Prepend path if not given a "X:\" filename */
+      if ( !(fname[0] && fname[1]==':' && fname[2]=='\\') )
+        {
+	  strcpy (file, pref.iconDirectory);
+	  if (pref.iconDirectory[0])
+	    if (fname[strlen(fname)-1]!='\\')
+	      strcat (file, "\\");
+        }
+      strcat (file, fname);
+
+      if (strrchr (file, ','))
+	{
+	  /* Specified as <fname>,<index> */
+	  
+	  *(strrchr (file, ',')) = 0; /* End string at comma */
+	  index = atoi (strrchr (fname, ',') + 1);
+	  hicon = ExtractIcon (g_hInstance, file, index);
+	}
+      else
+	{
+	  /* Just an .ico file... */
+	  
+	  hicon = (HICON)LoadImage (NULL,
+				    file,
+				    IMAGE_ICON,
+				    sx,
+				    sy,
+				    LR_LOADFROMFILE|flags);
+	}
+    }
+  return hicon;
+}
 
 #ifdef XWIN_MULTIWINDOW
 /*
@@ -503,7 +594,6 @@
   char *res_name, *res_class;
   int i;
   HICON hicon;
-  char fname[PATH_MAX+NAME_MAX+2];
   char *wmName;
 
   if (pWin==NULL)
@@ -528,21 +618,10 @@
 	if (pref.icon[i].hicon)
 	  return pref.icon[i].hicon;
 
-	/* Make sure we have a dir with trailing backslash */
-	/* Note we are using _Windows_ paths here, not cygwin */
-	strcpy (fname, pref.iconDirectory);
-	if (pref.iconDirectory[0])
-	  if (fname[strlen(fname)-1]!='\\')
-	    strcat (fname, "\\");
-	strcat (fname, pref.icon[i].iconFile);
-
-	hicon = (HICON)LoadImage(NULL,
-				 fname,
-				 IMAGE_ICON,
-				 0, 0,
-				 LR_DEFAULTSIZE|LR_LOADFROMFILE);
+	hicon = LoadImageComma (pref.icon[i].iconFile, 0, 0, LR_DEFAULTSIZE);
 	if (hicon==NULL)
-	  ErrorF ("winOverrideIcon: LoadIcon(%s) failed\n", fname);
+	  ErrorF ("winOverrideIcon: LoadIcon(%s) failed\n",
+                  pref.icon[i].iconFile);
 
 	pref.icon[i].hicon = (unsigned long)hicon;
 	return (unsigned long)hicon;
diff -U3 xwin-4.3.0.54/winprefs.h xwin/winprefs.h
--- xwin-4.3.0.54/winprefs.h	2004-02-27 19:40:07.000000000 -0800
+++ xwin/winprefs.h	2004-03-13 00:11:09.233250000 -0800
@@ -39,7 +39,7 @@
 #define NAME_MAX PATH_MAX
 #endif
 #define MENU_MAX 128   /* Maximum string length of a menu name or item */
-#define PARAM_MAX (4*PATH_MAX)  /* Maximim length of a parameter to a MENU */
+#define PARAM_MAX (4*PATH_MAX)  /* Maximum length of a parameter to a MENU */
 
 
 /* Supported commands in a MENU {} statement */
@@ -112,6 +112,7 @@
   /* Icon information */
   char iconDirectory[PATH_MAX+1]; /* Where do the .icos lie? (Win32 path) */
   char defaultIconName[NAME_MAX+1];   /* Replacement for x.ico */
+  char trayIconName[NAME_MAX+1]; /* Replacement for tray icon */
 
   ICONITEM *icon;
   int iconItems;
@@ -148,3 +149,5 @@
 unsigned long
 winOverrideDefaultIcon(void);
 
+unsigned long
+winTaskbarIcon(void);
diff -U3 xwin-4.3.0.54/winprefslex.l xwin/winprefslex.l
--- xwin-4.3.0.54/winprefslex.l	2004-02-27 19:40:07.000000000 -0800
+++ xwin/winprefslex.l	2004-03-13 00:11:09.239250000 -0800
@@ -80,6 +80,7 @@
 [aA][lL][wW][aA][yY][sS][oO][nN][tT][oO][pP]             { return ALWAYSONTOP; }
 [dD][eE][bB][uU][gG]                                     { return DEBUG; }
 [rR][eE][lL][oO][aA][dD]                                 { return RELOAD; }
+[tT][rR][aA][yY][iI][cC][oO][nN]                         { return TRAYICON; }
 "{"		                                         { return LB; }
 "}"		                                         { return RB; }
 "\""[^\"\r\n]+"\""                                       { yylval.sVal = makestr(yytext+1); \
diff -U3 xwin-4.3.0.54/winprefsyacc.y xwin/winprefsyacc.y
--- xwin-4.3.0.54/winprefsyacc.y	2004-02-27 19:40:07.000000000 -0800
+++ xwin/winprefsyacc.y	2004-03-13 00:11:09.249250000 -0800
@@ -49,6 +49,7 @@
 
 static void SetIconDirectory (char *path);
 static void SetDefaultIcon (char *fname);
+static void SetTrayIcon (char *fname);
 static void SetRootMenu (char *menu);
 static void SetDefaultSysMenu (char *menu, int pos);
 
@@ -79,7 +80,7 @@
 
 %token NEWLINE MENU LB RB ICONDIRECTORY DEFAULTICON ICONS DEFAULTSYSMENU
 %token SYSMENU ROOTMENU SEPARATOR ATSTART ATEND EXEC ALWAYSONTOP DEBUG
-%token RELOAD
+%token RELOAD TRAYICON
 
 %token <sVal> STRING
 %type <iVal>  atspot
@@ -107,6 +108,10 @@
 	| rootmenu
 	| defaultsysmenu
 	| debug
+	| trayicon
+	;
+
+trayicon:	TRAYICON STRING NEWLINE { SetTrayIcon($2); free($2); }
 	;
 
 rootmenu:	ROOTMENU STRING NEWLINE { SetRootMenu($2); free($2); }
@@ -193,6 +198,14 @@
 }
 
 static void
+SetTrayIcon (char *fname)
+{
+  strncpy (pref.trayIconName, fname, NAME_MAX);
+  pref.trayIconName[NAME_MAX] = 0;
+  ErrorF("trayiconname: %s\n", pref.trayIconName);
+}
+
+static void
 SetRootMenu (char *menu)
 {
   strncpy (pref.rootMenuName, menu, MENU_MAX);
diff -U3 xwin-4.3.0.54/wintrayicon.c xwin/wintrayicon.c
--- xwin-4.3.0.54/wintrayicon.c	2004-02-27 19:40:07.000000000 -0800
+++ xwin/wintrayicon.c	2004-03-13 00:11:09.280250000 -0800
@@ -49,12 +49,7 @@
   nid.uID = pScreenInfo->dwScreen;
   nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
   nid.uCallbackMessage = WM_TRAYICON;
-  nid.hIcon = LoadImage (g_hInstance,
-			 MAKEINTRESOURCE(IDI_XWIN),
-			 IMAGE_ICON,
-			 GetSystemMetrics (SM_CXSMICON),
-			 GetSystemMetrics (SM_CYSMICON),
-			 0);
+  nid.hIcon = (HICON)winTaskbarIcon ();
 
   /* Save handle to the icon so it can be freed later */
   pScreenPriv->hiconNotifyIcon = nid.hIcon;
diff -U3 xwin-4.3.0.54/winwindow.c xwin/winwindow.c
--- xwin-4.3.0.54/winwindow.c	2004-02-27 21:24:41.000000000 -0800
+++ xwin/winwindow.c	2004-03-13 00:11:09.294250000 -0800
@@ -470,7 +470,7 @@
 winReshapePRootless (WindowPtr pWin)
 {
   int		nRects;
-#if 0
+#if 1
   ScreenPtr	pScreen = pWin->drawable.pScreen;
 #endif
   RegionRec	rrNewShape;
diff -U3 xwin-4.3.0.54/winwndproc.c xwin/winwndproc.c
--- xwin-4.3.0.54/winwndproc.c	2004-02-27 21:11:23.000000000 -0800
+++ xwin/winwndproc.c	2004-03-13 00:11:09.300250000 -0800
@@ -68,6 +68,7 @@
   static HINSTANCE		s_hInstance;
   static Bool			s_fTracking = FALSE;
   static unsigned long		s_ulServerGeneration = 0;
+  static UINT                   s_msgTBCreate = 0;
   int				iScanCode;
   int				i;
 
@@ -97,6 +98,15 @@
       s_hwndLastPrivates = NULL;
     }
 
+  /* Handle re-inserting the tray icon */
+  if ( (s_msgTBCreate!=0) && (s_msgTBCreate==message) )
+    {
+      /* Re-apply tray icon */
+      winInitNotifyIcon (s_pScreenPriv);
+      return TRUE;
+    }
+  
+
   /* Branch on message type */
   switch (message)
     {
@@ -140,6 +150,9 @@
 	  s_pScreenPriv->hwndScreen = hwnd;
 
 	  winInitNotifyIcon (s_pScreenPriv);
+
+          /* Inform us if the shell restarts so we can re-add our icon */
+          s_msgTBCreate = RegisterWindowMessage("TaskbarCreated");
 	}
       return 0;
 

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-13  8:30                                 ` Earle F. Philhower III
@ 2004-03-13  9:50                                   ` Harold L Hunt II
  0 siblings, 0 replies; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-13  9:50 UTC (permalink / raw)
  To: cygwin-xfree

Earle,

Just about off to bed at the moment... but figured it would probably be 
easier if you commit this patch directly.  Can you send me, privately, 
an ssh DSA public key, preferred user name, and preferred email 
forwarding address?  I can create you an account on freedesktop.org 
tomorrow and you'll be able to commit to our main cvs tree right away.

Some people aren't too familiar with ssh-keygen, so a shortcut is 
'ssh-keygen -t dsa' in case you don't want to lookup how to do it.  :)

Harold

Earle F. Philhower III wrote:
> Hi Harold,
> 
> Attached please find a patch against 4.3.0.54 that:
> . Adds "TRAYICON <iconidentifier>" to the .xwinrc file parser which lets 
> you,
>   surprisingly enough, change the tray icon
> . Adds "file.dll,XX" parsing to the icon loader to support grabbing icons
>   from inside DLL or EXEs
> . Adds ",XX" parsing to the icon loader to support loading icons that are
>   stored in the XWin.exe RC file (today there's only one, but I think folks
>   are thinking of having multiple at some point in the near future)
> . Adds handling of the "TaskbarCreated" Windows message which lets you 
> re-add
>   the taskbar icon when the main explorer starts.  Otherwise if explorer 
> dies
>   and is restarted for some reason, you'd lose the X taskbar icon until you
>   exited all your X apps and restarted XWin.
> . Fixes the icon loader to not append the ICONDIRECTORY to icons that are
>   fully specified w/a drive letter (i.e. c:\blahblah)
> 
> [These below I'm not sure if the CVS -r cygwin tree is known funky or 
> what...]
> . WINMSG.H:  Comments out the redeclaration of the MessageType enum.
>   I couldn't find anything in the change logs about using a modifies OS.H
>   (where MessageType is originally defined and included prior to this 
> header).
> . WINMULTIWINDOWSHAPE.C, WINWINDOW.C:  pScreen is used by REGION_INIT()
>   and other region macros, but isn't a local variable in two functions in
>   these files (in winwindow there was a "#if 0" around the variable 
> defintion,
>   and in multiwindowshape it was not there at all?!...)
> 
> -Earle F. Philhower, III
>  earle@ziplabel.com
>  cdrlabel - ZipLabel - FlpLabel
>  http://www.cdrlabel.com


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
       [not found] <B74CF8E243E50A43B2562370EBD9DBEC15A4C3@heis-2000server.heis.co.uk>
@ 2004-03-20  0:12 ` Harold L Hunt II
  0 siblings, 0 replies; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-20  0:12 UTC (permalink / raw)
  To: cygwin-xfree

Phil Betts wrote:

> Hi Harold,
> 
> First off, as this is my first submission to the list, I'd like to
> extend my thanks
> to you and all of the other contributors to Cygwin/X.

Glad you like it.

>>Harold L Hunt II wrote:
>>1) A Japanese user has reported that the new icon was garbled on his 
>>Windows NT (I believe) system.  This is an isolated case so far and I 
>>think it is due to something with that particular system and is not 
>>something that we should worry about unless it starts getting reported
> 
> more.
> 
> This is a pretty mature list, followed by the sort of people who can
> resist the
> urge to send in "me too" messages.  I suspect that there are others like
> me who
> saw the original fault report and thought "OK, it's been logged already,
> I'll await
> the results".  Therefore, please don't discount solitary fault reports.

I have to discount them... I can't think of everything that gets 
reported once as a bonifed problem.  You are right, the list is mature, 
but people should know that *at least one other person* should speak up 
to verify that they also have the same problem as another is reporting. 
  This is essential and I am pretty amazed that no one did speak up in 
this case, until now.

  > FWIW, here are my observations on the discussion so far:
> 
> a) It makes no sense to inflict a random splodge on users of older OSes,
> just
> because a newer OS is able to display a prettier version of the current
> icon.

As I have said before, this is a technical question getting lots of 
personal and emotional answers.  Let me make this perfectly clear for 
everyone that is getting tied up on this issue:

1) Possible to have alpha icon that doesn't mess with older versions of 
Windows --> Our default icon will have alpha versions.

2) Alpha icons always mess with older versions of windows --> Our 
default icon will *not* have alpha versions.

There is no room for discussion on this, it is a simple technical 
question of "is this possible or not".

Please, refrain from discussing personal opinions, speculation about 
what version of Windows people are using, etc.  I have always aimed to 
support the minimum subset of features available on all versions of 
Windows since 95 and I am not going to deviate from that on the icon issue.

> b) As a user of an older OS, I would gladly live with an amorphous
> blotch if you
> could get the clipboard to work with emacs!

Umm... the clipboard should work with emacs... if it does not, then that 
is a problem.  You are using the -clipboard parameter from a recent 
version (xserv-4.3.0-59) and *not* using xwinclip, right?  This was 
fixed ages ago if you are referring to the selection highlight disappearing.

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-19  5:45 Michael Bax
  2004-03-19  5:49 ` Harold L Hunt II
@ 2004-03-19 17:59 ` Jehan Bing
  1 sibling, 0 replies; 38+ messages in thread
From: Jehan Bing @ 2004-03-19 17:59 UTC (permalink / raw)
  To: cygwin-xfree

Michael Bax wrote:
> Industry is still receiving PC's preloaded with Windows 2000 -- which will
> be supported until 2007!  Remember, 2 years after Windows 2000 came on the
> scene, IT organisations were still DEPLOYING Windonts NT!

And some still deploy on DOS. Maybe we should limit X to using VGA/VESA
cards? ;)


> Two years after the debut of Windows 2000, the number of *new* Windows NT
> server licenses matched the number of Windows 2000 licenses.  And that's
> just the new liceneses -- just think of the huge installed base.  And as for
> desktops, by 2002 75% of desktops in industry were Windows 9x!

Win2k was never a replacement for 9x, so I'm not surprised that the most
desktop were 9x machines.
It wouldn't matter if 99% were using Win3.1, what count is the OS used
by Cygwin/XFree users.


> The baseline for support today must clearly be pre-XP systems.

All I've seen is opinions or general/old numbers. So to me is still not
clear where we stand *today* in the *Cygwin/XFree community*.


> The problem is that the rest of the software world disagrees.  It is
> standard software practice to support as many platforms as possible with the
> *default* install, even if it is not as flashy as the others.  Sure, you can
> have an option to enable alpha -- but don't make it the default.

I *am* trying to make alpha the default *only* on alpha supporting
machines. I haven't have much time to test on different OS so I was
relying on others to comment. But I got very few replies and most where
flamebaits. :(
Maybe this week-end I'll be able to install older OS and test.
So bare with me if I haven't succeeded just yet. Thank you.


> You originally said that my original monochrome X was ugly due to blocky
> edges, but that is exactly the problem with your icon on Windows 2000
> systems!  :-)

No, my issue with the monochrome icon is that it's not visible on black
desktops. That's why there was a white line on the old icon. You didn't
like the white specks so I made the alpha icon to have a clean white
line so that it is visible on black desktop without looking dirty.


> The lines in Improved.ico (why the quotes?)  are actually in exactly the
> correct anti-aliased proportion to represent the X logo within the limits of
> the bitmap.  The CVS icon is incorrectly proportioned.

The quotes are because, IMHO, it's not an improved icon.
Keeping the proportion, again IMHO, should not be made to the detriment
of readability. I just prefer to have a slightly overweight line than a
blurry one whashout by the background.



> By "safe", Earle meant looking decent.  icon-test9.ico does not look decent
> on all platforms, unlike Improved.ico.

My comment was ironic.


> So far 2 developers and 3 users have contributed to this discussion.  It
> appears unanimous among the users that the alpha icon should not be the
> default.

Oh, you mean that developers are not users?

Anyway, I'm going to stop on this flamefest now, nobody with every agree
with everybody else so it's of no use.

	Nahor



^ permalink raw reply	[flat|nested] 38+ messages in thread

* RE: X/Cygwin icon proposal
@ 2004-03-19 16:10 Orrigo, Giampaolo .
  0 siblings, 0 replies; 38+ messages in thread
From: Orrigo, Giampaolo . @ 2004-03-19 16:10 UTC (permalink / raw)
  To: 'cygwin-xfree@cygwin.com'

Actually, I have two NT 4.0 boxes and in both of them the icons in the
toolbar are garbled... and if I don't manually select the white boxed one,
the desktop icons are garbled too.
The point is: we are using NT 4.0 in the entire company, cygwin is going
under evaluation to become the official Exceed substitute. Making everyone
go and change the icons by hand is not practical.
We always complain about the lack of backward compatibility of M$
application... are we going in the same direction? (just a little
provocation... :))

Giampa

> -----Original Message-----
> From:	Harold L Hunt II
> Sent:	Thursday, March 18, 2004 18:52
> To:	cygwin-xfree at cygwin.com
> Subject:	Re: X/Cygwin icon proposal
> 
> Earle F. Philhower, III wrote:
> 
> > Howdy Harold,
> > 
> > 
> >>Subject: Re: X/Cygwin icon proposal
> >>Date: Thu, 18 Mar 2004 18:22:12 -0500
> >>From: Harold L Hunt II <huntharo@msu.edu>
> >>
> >>>For someone who's entire contribution to XWin has been
> >>>an alpha-blended X icon you've got some loud opinions...
> > 
> > ..> http://x.cygwin.com/devel/server/changelog-050.html
> > 
> >>He added the "-nodecoration" parameter, scrollbar support, build rules 
> >>for Windows resource files, lots of stuff.
> > 
> > 
> > Sorry, then, Nahor, didn't recognize the handle.  (Just when I was
> > getting a good flamefest started, too!)
> > ..
> > 
> >>But Windows has rules for picking icons from executables (but they are 
> >>hard to find documentation on) and I would hope it is possible to order 
> >>the icons and provide the proper formats such that the default icon for 
> >>the *executable* (not shortcut) would be the one that looks nicest on 
> >>the system.
> > 
> > 
> > Yes, the .EXE it's going to take IIRC the 1st icon it finds in the file
> > (lowest resid, I think).
> 
> Yes, that is correct.
> 
> > What I'm really surprised about here is that
> > the ICON format lets you store a bunch of different formats in just
> > one ICON resource (you can specify a 1-, 16- , 256-, or 16M color,
> > all in 16x16, 32x32, and 48x48 in one ICON).
> 
> Yup, that is what both of our icon files have.
> 
> > Does the one that
> > everyone is so riled up about have the other, fallback formats included?
> 
> Yes, that is why this is so confusing.  :)  Windows *should* pick a 
> format that it understands, but getting it to do so either requires 
> tricks of ordering that MS doesn't make clear, or it requires including 
> more formats than you'd think you would need.  Or, it is just not
> possible.
> 
> Let me summarize the two things we are discussing at the moment:
> 
> 1) A Japanese user has reported that the new icon was garbled on his 
> Windows NT (I believe) system.  This is an isolated case so far and I 
> think it is due to something with that particular system and is not 
> something that we should worry about unless it starts getting reported
> more.
> 
> 2) On Windows 2000, the non-boxed X icon is showing up with a 2 pixel 
> thick white border (I've seen it too at the computer lab) that looks 
> pretty bad.  We are in the process of figuring out whether Windows is 
> generating this ugliness from the alpha channel icon or from the 
> non-alpha icons.  Jehan made some changes to the non-alpha icons as 
> well, and it is remotely possible that those changes are causing this, 
> not the alpha changes.
> 
> If the alpha icon is causing the ugliness on Windows 2000, then we still 
> have tons of options to explore and Jehan is exploring them at a good 
> rate.  We can work on this for a few weeks before it becomes time to 
> either fix it or revert it.
> 
> > As long as it doesn't crash, it can be a picture of an emu as far as I
> > care, but that all centers on whether that emu is safe under earlier
> > OSs or not...Crashing emus stink...
> 
> As far as I know, the Windows 95, 98, and Me OSes are not having 
> problems with the 32 bit icons... it is only Windows 2000 possibly 
> trying to treat the 32 bit icon as a 24 bit icon, with the result being 
> ugliness but not crashing.
> 
> Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-19  5:49 ` Harold L Hunt II
@ 2004-03-19 14:53   ` Igor Pechtchanski
  0 siblings, 0 replies; 38+ messages in thread
From: Igor Pechtchanski @ 2004-03-19 14:53 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, 19 Mar 2004, Harold L Hunt II wrote:

> [snip]
> So, lets hold off on dicussing this more until some one can prove that
> we can or cannot create an icon with alpha formats that displays fine on
> all versions of Windows.
>
> Harold

FYI, the Mozilla FireFox icon (the one Jehan seems to think is the
standard) doesn't display at all in smaller forms on Windows98 (i.e., the
top-left corner application icon is displayed as the default Windows
waving flag, not the FireFox orange-on-blue icon; same with the taskbar).
The standard desktop icon displays fine.  Just a datapoint.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-19  5:45 Michael Bax
@ 2004-03-19  5:49 ` Harold L Hunt II
  2004-03-19 14:53   ` Igor Pechtchanski
  2004-03-19 17:59 ` Jehan Bing
  1 sibling, 1 reply; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-19  5:49 UTC (permalink / raw)
  To: cygwin-xfree

Michael,

Michael Bax wrote:

> Harold wrote:
> 
> 
>>>What I'm really surprised about here is that the ICON format lets you
>>>store a bunch of different formats in just one ICON resource (you can
>>>specify a 1-, 16- , 256-, or 16M color, all in 16x16, 32x32, and 48x48
>>>in one ICON).
>>>
>>>Does the one that everyone is so riled up about have the other,
>>>fallback formats included?
>>
>>Yup, that is what both of our icon files have.
> 
> 
> Hi Harold, that's actually not quite correct.  The existing CVS icon (that
> you kindly sent me the link to) has no monochrome content and has a
> messed-up 24x24 version.  It also has some rendering glitches.

I was referring to the notion of many formats in one file, not to the 
specific list of what formats we had.  :)

That icon was not the latest version that Benny had created, as he 
pointed out when he saw that link.  Follow the link below, then open the 
X-boxed.ico file to see the most recent version (which I uploaded after 
he nudged me):

http://pdx.freedesktop.org/cgi-bin/viewcvs.cgi/xc/programs/Xserver/hw/xwin/?cvsroot=xorg&only_with_tag=CYGWIN

> That's why I created Improved.ico, with careful rendering and anti-aliasing
> to preserve the form of the original vector logo -- I hope you can use it.

Yes, preserving the form is important.
_________________________________________________________________________
> In summary:
> 
> So far 2 developers and 3 users have contributed to this discussion.  It
> appears unanimous among the users that the alpha icon should not be the
> default.

Well, this is still an open technical question of "can it be done".  It 
we *can* create an icon file that contains alpha icons that displays 
fine on all platforms, then there is no reason to change the icon.  I 
consider this an open issue as Jehan is still exploring options and no 
one has found a definitive source stating that it cannot be done.  If we 
*cannot* create such an icon file, then the choice about what we should 
do for the default icon becomes much simpler and doesn't require so much 
discussion.

So, lets hold off on dicussing this more until some one can prove that 
we can or cannot create an icon with alpha formats that displays fine on 
all versions of Windows.

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
@ 2004-03-19  5:45 Michael Bax
  2004-03-19  5:49 ` Harold L Hunt II
  2004-03-19 17:59 ` Jehan Bing
  0 siblings, 2 replies; 38+ messages in thread
From: Michael Bax @ 2004-03-19  5:45 UTC (permalink / raw)
  To: cygwin-xfree

Hi folks

This is a little long, but I have combined several points rather than
bombard the list with multiple messages.  Thanks for your patience.  :-)

___________________________________________________________________________
Nahor wrote:

> What is "New Alpha"? I sent a few on the mailing list. Was it icon_test9
> (attached again here)? This one has 24bit icons, hopefully the prefered
> format on systems not supporting the alpha channel (crossing fingers).

The file you attached has issues under Windows 2000 (does not show icon
picture in Explorer).  But it was the latest version of your icon at the
time.  Original was from X.exe.

> I don't care about the majority of the systems out there. I care about
> the majority of the system using Cygwin/XFree. And that can be very
> different.

The majority of Cygwin users are not typical gamers.  They are more likely
to be similar in profile to hackers such as the Linux or BSD folks -- and
those are well known to be frequently using older generations of hardware
(and hence software).

Industry is still receiving PC's preloaded with Windows 2000 -- which will
be supported until 2007!  Remember, 2 years after Windows 2000 came on the
scene, IT organisations were still DEPLOYING Windonts NT!

Two years after the debut of Windows 2000, the number of *new* Windows NT
server licenses matched the number of Windows 2000 licenses.  And that's
just the new liceneses -- just think of the huge installed base.  And as for
desktops, by 2002 75% of desktops in industry were Windows 9x!

> Uh? I don't get your point. I personally don't buy a machine just to run
> unix. I use it to do other stuff (mostly compilation) that do make use of
> CPU power. So I have a recent machine, so I have XP. I assume that quit a
> dew (most?) geeks using Cygwin/XFree would be in the same case. But it's
> just a guess.

I'm sure that many Cygwin users have brand new machines.  But I am equally
sure that many more have older systems.

The baseline for support today must clearly be pre-XP systems.

> The other thing, IMHO, is that the alpha icon on non-alpha system, while
> not the best icon that can be on such system, is not completely ugly
> either.

Frankly, I disagree.  I wouldn't have put in the effort of designed a new
icon set if I thought it were OK!  :-)

> So between an icon that looks best on recent machines but not as good on
> older ones and one that looks best on older machines but not as good as it
> can be on recent ones, I prefer to think "future/progress/whatever" and
> take the first.

The problem is that the rest of the software world disagrees.  It is
standard software practice to support as many platforms as possible with the
*default* install, even if it is not as flashy as the others.  Sure, you can
have an option to enable alpha -- but don't make it the default.

Do you really want someone installing X/Cygwin for the first time to be
confronted with an amateurish-looking icon?  That was my first impression.
>From a technical perspective, aesthetics are secondary -- but in the real
world, first impressions last.

> Between the CVS and your "improved", I prefer the one in CVS. The thin
> lines is acutally too thin in 16x16, the line is too blury on yours, the
> white background seems to wash over the black line.

You originally said that my original monochrome X was ugly due to blocky
edges, but that is exactly the problem with your icon on Windows 2000
systems!  :-)

The lines in Improved.ico (why the quotes?) are actually in exactly the
correct anti-aliased proportion to represent the X logo within the limits of
the bitmap.  The CVS icon is incorrectly proportioned.

I do not argue that you personally prefer your version.  That is of course a
subjective choice!  However, Improved.ico has the proportions of the
original X vector logo; you may prefer something that looks different, but
that then is something different, not a faithful rendering of the X logo.

___________________________________________________________________________
Ago wrote:

> If you can build ico files with both alpha and non-alpha icons why not
> include your version with alpha channel and for non-alpha either the boxed
> (which I liked) or a plain two-color variant.

> cygwin is unix. unix is simple (shell and stuff) and this is the opposite
> of the bubble-gum os WinXP with alpha channel.

Hear hear!  :-)

___________________________________________________________________________
Earle wrote:

> - Default to a safe setting for anything that's not critical. -
> You'll save TONS of user grief, and by extension, your own.

Agreed.

> Looking really nasty under OSs earlier than XP is a bug I'd say.  Plus
> it's probably rechnically an invalid icon resource under those OSes so
> you may wnd up causing a boom (hey, under 95 or 98 it doesn't take
> much to crash the system!)

Strongly agreed.

> You've not very familiar with how a shortcut is made, are you?  Make the
> 1st icon in the file the clean X-in-a-white-box that's been there for
> some time.  Windoze shortcuts then will use it by default.

Or rather, the Improved.ico icon set I submitted based on that one.  :-)

> Then, since you're so unhappy with the icon, submit a patch to the
> x-create-shortcut-icons package that checks the OS version

Or just change the shortcut icon, if it's just the desktop that bothers you.

___________________________________________________________________________
Nahor wrote again:

> But anyway, the alpha *is* "safe" for other OS (well maybe not for NT,
> but I haven't heard back from haro about icon_test9 which seems to work
> fine for Alexander). It may not be to your taste but it is recognizable
> as the X logo.

By "safe", Earle meant looking decent.  icon-test9.ico does not look decent
on all platforms, unlike Improved.ico.

___________________________________________________________________________
Harold wrote:

> > What I'm really surprised about here is that the ICON format lets you
> > store a bunch of different formats in just one ICON resource (you can
> > specify a 1-, 16- , 256-, or 16M color, all in 16x16, 32x32, and 48x48
> > in one ICON).
> >
> > Does the one that everyone is so riled up about have the other,
> > fallback formats included?
>
> Yup, that is what both of our icon files have.

Hi Harold, that's actually not quite correct.  The existing CVS icon (that
you kindly sent me the link to) has no monochrome content and has a
messed-up 24x24 version.  It also has some rendering glitches.

That's why I created Improved.ico, with careful rendering and anti-aliasing
to preserve the form of the original vector logo -- I hope you can use it.

___________________________________________________________________________
In summary:

So far 2 developers and 3 users have contributed to this discussion.  It
appears unanimous among the users that the alpha icon should not be the
default.


Cheers
Michael


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 23:39 Earle F. Philhower, III
  2004-03-18 23:51 ` Harold L Hunt II
@ 2004-03-19  2:48 ` Nahor
  1 sibling, 0 replies; 38+ messages in thread
From: Nahor @ 2004-03-19  2:48 UTC (permalink / raw)
  To: cygwin-xfree

Earle F. Philhower, III wrote:
> Sorry, then, Nahor, didn't recognize the handle.  (Just when I was
> getting a good flamefest started, too!)

Hehe, I got burnt that way too one day, telling someone to just 
contribute instead of ranting when the guy already contributed. :p

	Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 23:39 Earle F. Philhower, III
@ 2004-03-18 23:51 ` Harold L Hunt II
  2004-03-19  2:48 ` Nahor
  1 sibling, 0 replies; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-18 23:51 UTC (permalink / raw)
  To: cygwin-xfree

Earle F. Philhower, III wrote:

> Howdy Harold,
> 
> 
>>Subject: Re: X/Cygwin icon proposal
>>Date: Thu, 18 Mar 2004 18:22:12 -0500
>>From: Harold L Hunt II <huntharo@msu.edu>
>>
>>>For someone who's entire contribution to XWin has been
>>>an alpha-blended X icon you've got some loud opinions...
> 
> ..> http://x.cygwin.com/devel/server/changelog-050.html
> 
>>He added the "-nodecoration" parameter, scrollbar support, build rules 
>>for Windows resource files, lots of stuff.
> 
> 
> Sorry, then, Nahor, didn't recognize the handle.  (Just when I was
> getting a good flamefest started, too!)
> ..
> 
>>But Windows has rules for picking icons from executables (but they are 
>>hard to find documentation on) and I would hope it is possible to order 
>>the icons and provide the proper formats such that the default icon for 
>>the *executable* (not shortcut) would be the one that looks nicest on 
>>the system.
> 
> 
> Yes, the .EXE it's going to take IIRC the 1st icon it finds in the file
> (lowest resid, I think).

Yes, that is correct.

> What I'm really surprised about here is that
> the ICON format lets you store a bunch of different formats in just
> one ICON resource (you can specify a 1-, 16- , 256-, or 16M color,
> all in 16x16, 32x32, and 48x48 in one ICON).

Yup, that is what both of our icon files have.

> Does the one that
> everyone is so riled up about have the other, fallback formats included?

Yes, that is why this is so confusing.  :)  Windows *should* pick a 
format that it understands, but getting it to do so either requires 
tricks of ordering that MS doesn't make clear, or it requires including 
more formats than you'd think you would need.  Or, it is just not possible.

Let me summarize the two things we are discussing at the moment:

1) A Japanese user has reported that the new icon was garbled on his 
Windows NT (I believe) system.  This is an isolated case so far and I 
think it is due to something with that particular system and is not 
something that we should worry about unless it starts getting reported more.

2) On Windows 2000, the non-boxed X icon is showing up with a 2 pixel 
thick white border (I've seen it too at the computer lab) that looks 
pretty bad.  We are in the process of figuring out whether Windows is 
generating this ugliness from the alpha channel icon or from the 
non-alpha icons.  Jehan made some changes to the non-alpha icons as 
well, and it is remotely possible that those changes are causing this, 
not the alpha changes.

If the alpha icon is causing the ugliness on Windows 2000, then we still 
have tons of options to explore and Jehan is exploring them at a good 
rate.  We can work on this for a few weeks before it becomes time to 
either fix it or revert it.

> As long as it doesn't crash, it can be a picture of an emu as far as I
> care, but that all centers on whether that emu is safe under earlier
> OSs or not...Crashing emus stink...

As far as I know, the Windows 95, 98, and Me OSes are not having 
problems with the 32 bit icons... it is only Windows 2000 possibly 
trying to treat the 32 bit icon as a 24 bit icon, with the result being 
ugliness but not crashing.

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
@ 2004-03-18 23:39 Earle F. Philhower, III
  2004-03-18 23:51 ` Harold L Hunt II
  2004-03-19  2:48 ` Nahor
  0 siblings, 2 replies; 38+ messages in thread
From: Earle F. Philhower, III @ 2004-03-18 23:39 UTC (permalink / raw)
  To: cygwin-xfree

Howdy Harold,

> Subject: Re: X/Cygwin icon proposal
> Date: Thu, 18 Mar 2004 18:22:12 -0500
> From: Harold L Hunt II <huntharo@msu.edu>
> > For someone who's entire contribution to XWin has been
> > an alpha-blended X icon you've got some loud opinions...
..> http://x.cygwin.com/devel/server/changelog-050.html
> He added the "-nodecoration" parameter, scrollbar support, build rules 
> for Windows resource files, lots of stuff.

Sorry, then, Nahor, didn't recognize the handle.  (Just when I was
getting a good flamefest started, too!)
..
> But Windows has rules for picking icons from executables (but they are 
> hard to find documentation on) and I would hope it is possible to order 
> the icons and provide the proper formats such that the default icon for 
> the *executable* (not shortcut) would be the one that looks nicest on 
> the system.

Yes, the .EXE it's going to take IIRC the 1st icon it finds in the file
(lowest resid, I think).  What I'm really surprised about here is that
the ICON format lets you store a bunch of different formats in just
one ICON resource (you can specify a 1-, 16- , 256-, or 16M color,
all in 16x16, 32x32, and 48x48 in one ICON).  Does the one that
everyone is so riled up about have the other, fallback formats included?

If not, can they be added and tried out?  You could make the
non-alpha version of the ICON all the boxed-X and leave the
16M+alpha one as the floating X...

As long as it doesn't crash, it can be a picture of an emu as far as I
care, but that all centers on whether that emu is safe under earlier
OSs or not...Crashing emus stink...
-- 
-Earle F. Philhower, III
 earle@ziplabel.com
 http://www.ziplabel.com


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 23:14 Earle F. Philhower, III
@ 2004-03-18 23:22 ` Harold L Hunt II
  0 siblings, 0 replies; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-18 23:22 UTC (permalink / raw)
  To: cygwin-xfree

Earle F. Philhower, III wrote:

> Howdy Nahor,
> 
> For someone who's entire contribution to XWin has been
> an alpha-blended X icon you've got some loud opinions...

He's done much more than that.  His full name is "Jehan Bing" and it 
looks like the bulk of his work is here:

http://x.cygwin.com/devel/server/changelog-050.html

He added the "-nodecoration" parameter, scrollbar support, build rules 
for Windows resource files, lots of stuff.


>>Subject: Re: X/Cygwin icon proposal
>>From: Nahor <nahor@bravobrava.com>
>>Earle F. Philhower, III wrote:
>>
>>>Default to a safe icon format
>>
>>"Beep, sorry, you're computer was taken over by the icon then crashed, 
>>please reboot" :)
>>But anyway, the alpha *is* "safe" for other OS (well maybe not for NT, 
>>but I haven't heard back from haro about icon_test9 which seems to work 
>>fine for Alexander). It may not be to your taste but it is recognizable 
>>as the X logo.
> 
> 
> Looking really nasty under OSs earlier than XP is a bug I'd say.  Plus
> it's probably rechnically an invalid icon resource under those OSes so
> you may wnd up causing a boom (hey, under 95 or 98 it doesn't take
> much to crash the system!)
> 
> 
>>>Or, fix the code to detect the OS.  If OS>=Win5.0 use alpha icon,
>>>OTW use standard icon.  That can be done at runtime w/a few lines
>>>of C.
>>
>>Which one? The monochrome one? Or the one with the white background? 
>>Maybe the old one with the white specks? And how do you do the "runtime" 
>>thingy when XWin isn't running and Windows displays the icon in Explorer?
> 
> 
> You've not very familiar with how a shortcut is made, are you?  Make the
> 1st icon in the file the clean X-in-a-white-box that's been there for some
> time.  Windoze shortcuts then will use it by default.
> 
> Then, since you're so unhappy with the icon, submit a patch to the
> x-create-shortcut-icons package that checks the OS version
> and if it's XP or greater says create-shortcut w/icon 102, and voila...

But Windows has rules for picking icons from executables (but they are 
hard to find documentation on) and I would hope it is possible to order 
the icons and provide the proper formats such that the default icon for 
the *executable* (not shortcut) would be the one that looks nicest on 
the system.

I could very easily swap the order of the boxed icon and the non-boxed 
icons in our resource file to make the boxed icon the default, but I 
would rather not do that since I prefer the non-boxed icon on the 
executable.  Of course, I am a pragmatic guy, and if that doesn't work 
on all platforms then I will have to either swap the icons or include a 
simpler "ugly" non-boxed icon as the default in addition to the alpha 
blended icon in our resource file.

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
@ 2004-03-18 23:14 Earle F. Philhower, III
  2004-03-18 23:22 ` Harold L Hunt II
  0 siblings, 1 reply; 38+ messages in thread
From: Earle F. Philhower, III @ 2004-03-18 23:14 UTC (permalink / raw)
  To: cygwin-xfree

Howdy Nahor,

For someone who's entire contribution to XWin has been
an alpha-blended X icon you've got some loud opinions...

> Subject: Re: X/Cygwin icon proposal
> From: Nahor <nahor@bravobrava.com>
> Earle F. Philhower, III wrote:
> > Default to a safe icon format
> "Beep, sorry, you're computer was taken over by the icon then crashed, 
> please reboot" :)
> But anyway, the alpha *is* "safe" for other OS (well maybe not for NT, 
> but I haven't heard back from haro about icon_test9 which seems to work 
> fine for Alexander). It may not be to your taste but it is recognizable 
> as the X logo.

Looking really nasty under OSs earlier than XP is a bug I'd say.  Plus
it's probably rechnically an invalid icon resource under those OSes so
you may wnd up causing a boom (hey, under 95 or 98 it doesn't take
much to crash the system!)

> > Or, fix the code to detect the OS.  If OS>=Win5.0 use alpha icon,
> > OTW use standard icon.  That can be done at runtime w/a few lines
> > of C.
> Which one? The monochrome one? Or the one with the white background? 
> Maybe the old one with the white specks? And how do you do the "runtime" 
> thingy when XWin isn't running and Windows displays the icon in Explorer?

You've not very familiar with how a shortcut is made, are you?  Make the
1st icon in the file the clean X-in-a-white-box that's been there for some
time.  Windoze shortcuts then will use it by default.

Then, since you're so unhappy with the icon, submit a patch to the
x-create-shortcut-icons package that checks the OS version
and if it's XP or greater says create-shortcut w/icon 102, and voila...

> Maybe Halrold should only distribute the source code, and let people 
> recompile xwin.exe by themselves that way they can choose their own 
> prefered icon for the binary.

It's already there in CVS and his test releases, have a ball!
-- 
-Earle F. Philhower, III
 earle@ziplabel.com
 http://www.ziplabel.com


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 20:43 Earle F. Philhower, III
@ 2004-03-18 22:26 ` Nahor
  0 siblings, 0 replies; 38+ messages in thread
From: Nahor @ 2004-03-18 22:26 UTC (permalink / raw)
  To: cygwin-xfree

Earle F. Philhower, III wrote:
> Default to a safe icon format
"Beep, sorry, you're computer was taken over by the icon then crashed, 
please reboot" :)
But anyway, the alpha *is* "safe" for other OS (well maybe not for NT, 
but I haven't heard back from haro about icon_test9 which seems to work 
fine for Alexander). It may not be to your taste but it is recognizable 
as the X logo.


> Or, fix the code to detect the OS.  If OS>=Win5.0 use alpha icon,
> OTW use standard icon.  That can be done at runtime w/a few lines
> of C.
Which one? The monochrome one? Or the one with the white background? 
Maybe the old one with the white specks? And how do you do the "runtime" 
thingy when XWin isn't running and Windows displays the icon in Explorer?

Maybe Halrold should only distribute the source code, and let people 
recompile xwin.exe by themselves that way they can choose their own 
prefered icon for the binary.

All that just for a stoopid icon. Baah...

	Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
@ 2004-03-18 20:43 Earle F. Philhower, III
  2004-03-18 22:26 ` Nahor
  0 siblings, 1 reply; 38+ messages in thread
From: Earle F. Philhower, III @ 2004-03-18 20:43 UTC (permalink / raw)
  To: cygwin-xfree, cygwin-xfree

An icon doesn't deserve *this* much attention, but...

Nahor wrote...
> Subject: Re: X/Cygwin icon proposal
> Alexander Gottwald wrote:
> > It looks good in the tray and taskbar, but not in the titlebar. (see attached 
> > images)
> > If you can build ico files with both alpha and non-alpha icons why not include
> > your version with alpha channel and for non-alpha either the boxed (which I > liked)
> > or a plain two-color variant.
..
> > cygwin is unix. unix is simple (shell and stuff) and this is the opposite 
> > of the bubble-gum os WinXP with alpha channel. 
> Uh? I don't get your point. I personally don't buy a machine just to run 
> unix. I use it to do other stuff (mostly compilation) that do make use 
> of CPU power. So I have a recent machine, so I have XP. I assume that 
> quit a dew (most?) geeks using Cygwin/XFree would be in the same case. 
> But it's just a guess.

Here's my two cents on the issue, as someone who has supported
an application for 7 years that, at one time, supported everything
from Win 3.1 w/Win32s through Windows XP:
   - Default to a safe setting for anything that's not critical. -
You'll save TONS of user grief, and by extension, your own.

Sure, at home I run WinXP.  But at my office, and lots of other
offices where XWin.exe is used people are still using Win NT or 2K.
You can't just go to your IT department and say "gimme WinXP,
it's new and makes things faster and more fun!"  And from the 
recent list archives it seems like there are home users w/Win98
using cygwin.

Default to a safe icon format but include the XP specific
one in the exe.  You can access it with a line "TRAYICON ,101" in
your .xwinrc file no matter what.

Or, fix the code to detect the OS.  If OS>=Win5.0 use alpha icon,
OTW use standard icon.  That can be done at runtime w/a few lines
of C.
-- 
-Earle F. Philhower, III
 earle@ziplabel.com
 http://www.ziplabel.com


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 19:12       ` Alexander Gottwald
@ 2004-03-18 19:30         ` Harold L Hunt II
  0 siblings, 0 replies; 38+ messages in thread
From: Harold L Hunt II @ 2004-03-18 19:30 UTC (permalink / raw)
  To: cygwin-xfree

Alexander Gottwald wrote:
> Nahor wrote:
> 
> 
>>ok, from your images, your system at least uses the non-alpha icons.
>>What color resolution is your monitor at?
> 
> 
> 16bit
> 
> 
>>>cygwin is unix. unix is simple (shell and stuff) and this is the opposite
>>>of the bubble-gum os WinXP with alpha channel.
>>
>>Uh? I don't get your point. I personally don't buy a machine just to run
>>unix. I use it to do other stuff (mostly compilation) that do make use
>>of CPU power.
> 
> 
> The host I use at work is win2k. We have bought our _first_ XP host last
> week. I don't know any company which choose XP over 2000. XP requries a
> lot more resources than 2000 and a computer magizine even stated that XP
> wastes about 200MHz. (2Ghz with XP is as fast as 1.8Ghz with win2k)
> The other host is linux since compiling with cygwin is so slow (the 500Mhz
> host compiles the xorg tree much faster than the 1.8Ghz windows/cygwin host)

Nonsense.  I have it running on an AMD K6-2 400 MHz chip with 384 MB RAM 
and it is *fast* once it finishes booting (which it does more quickly 
than even NT 4.0).  My wife uses this machine with OpenOffice.org and 
Mozilla at work with no performance complaints.  Before I sent it over 
to her job (she works at a university lab that didn't have enough money 
to buy her a computer) I was using it as my *primary* development 
machine at my job, running copies Visual Interdev 6.0, Visual Studio.NET 
2002, compiling lots of source code, running a web server, etc.  All of 
this with the eye candy settings left at the defaults.

So we are getting a little off topic here, but there is nothing about XP 
that makes it inherently slow or that makes it require a super fast 
machine to run.

>>So I have a recent machine, so I have XP. I assume that
>>quit a dew (most?) geeks using Cygwin/XFree would be in the same case.
>>But it's just a guess.
> 
> 
> This is a wild guess. gamers usally spend more on recent hardware than
> geeks. geeks by unusual, cool hardware. but speed is not as important as
> for gamers.

Heh heh...

Harold


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 18:15     ` Nahor
@ 2004-03-18 19:12       ` Alexander Gottwald
  2004-03-18 19:30         ` Harold L Hunt II
  0 siblings, 1 reply; 38+ messages in thread
From: Alexander Gottwald @ 2004-03-18 19:12 UTC (permalink / raw)
  To: cygwin-xfree

Nahor wrote:

> ok, from your images, your system at least uses the non-alpha icons.
> What color resolution is your monitor at?

16bit

> > cygwin is unix. unix is simple (shell and stuff) and this is the opposite
> > of the bubble-gum os WinXP with alpha channel.
>
> Uh? I don't get your point. I personally don't buy a machine just to run
> unix. I use it to do other stuff (mostly compilation) that do make use
> of CPU power.

The host I use at work is win2k. We have bought our _first_ XP host last
week. I don't know any company which choose XP over 2000. XP requries a
lot more resources than 2000 and a computer magizine even stated that XP
wastes about 200MHz. (2Ghz with XP is as fast as 1.8Ghz with win2k)
The other host is linux since compiling with cygwin is so slow (the 500Mhz
host compiles the xorg tree much faster than the 1.8Ghz windows/cygwin host)

> So I have a recent machine, so I have XP. I assume that
> quit a dew (most?) geeks using Cygwin/XFree would be in the same case.
> But it's just a guess.

This is a wild guess. gamers usally spend more on recent hardware than
geeks. geeks by unusual, cool hardware. but speed is not as important as
for gamers.

bye
    ago

NP: Dekoy - Darkest Eve
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
       [not found] ` <c3cl67$i8g$1@sea.gmane.org>
  2004-03-18 17:43   ` Alexander Gottwald
@ 2004-03-18 18:46   ` Benjamin Riefenstahl
  1 sibling, 0 replies; 38+ messages in thread
From: Benjamin Riefenstahl @ 2004-03-18 18:46 UTC (permalink / raw)
  To: cygwin-xfree

Hi Nahor,


Nahor <nahor@bravobrava.com> writes:
> Geeks (where I put Cygwin users), I assume, would have a recent
> machine as their working machine and older systems for support
> (firewall, server, ...).
> So I would think that there are more XP machines out there than you
> think. Now, is it majority? I can't say but I would not be surprised
> at all if it were.

I can only speak for myself, of course.  But if I can avoid it I am
not going to buy XP anytime soon because of the licensing hassles.


benny


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-18 17:43   ` Alexander Gottwald
@ 2004-03-18 18:15     ` Nahor
  2004-03-18 19:12       ` Alexander Gottwald
  0 siblings, 1 reply; 38+ messages in thread
From: Nahor @ 2004-03-18 18:15 UTC (permalink / raw)
  To: cygwin-xfree

Alexander Gottwald wrote:
> It looks good in the tray and taskbar, but not in the titlebar. (see attached 
> images)

You forgot to attach it... ok, got the other mail.


> If you can build ico files with both alpha and non-alpha icons why not include
> your version with alpha channel and for non-alpha either the boxed (which I liked)
> or a plain two-color variant.

The issue is not (or not yet at least) about the non-alpha part being 
ugly, they are about the same than the old xwin icon. The problem is 
when a non-alpha system try to use the alpha-icon. Then you get that fat 
white line around the X or the garbled icon on NT (I assume).
So putting the white square for the non-alpha would not fix anything if 
the system doesn't select it over the 32b icon.

...
ok, from your images, your system at least uses the non-alpha icons. 
What color resolution is your monitor at?


> cygwin is unix. unix is simple (shell and stuff) and this is the opposite 
> of the bubble-gum os WinXP with alpha channel. 

Uh? I don't get your point. I personally don't buy a machine just to run 
unix. I use it to do other stuff (mostly compilation) that do make use 
of CPU power. So I have a recent machine, so I have XP. I assume that 
quit a dew (most?) geeks using Cygwin/XFree would be in the same case. 
But it's just a guess.

	Nahor


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
       [not found] ` <c3cl67$i8g$1@sea.gmane.org>
@ 2004-03-18 17:43   ` Alexander Gottwald
  2004-03-18 18:15     ` Nahor
  2004-03-18 18:46   ` Benjamin Riefenstahl
  1 sibling, 1 reply; 38+ messages in thread
From: Alexander Gottwald @ 2004-03-18 17:43 UTC (permalink / raw)
  To: cygwin-xfree

On Thu, 18 Mar 2004, Nahor wrote:

> What is "New Alpha"? I sent a few on the mailing list. Was it icon_test9 
> (attached again here)? This one has 24bit icons, hopefully the prefered 
> format on systems not supporting the alpha channel (crossing fingers).

It looks good in the tray and taskbar, but not in the titlebar. (see attached 
images)

If you can build ico files with both alpha and non-alpha icons why not include
your version with alpha channel and for non-alpha either the boxed (which I liked)
or a plain two-color variant.

bye
	ago
> 
> I don't care about the majority of the systems out there. I care about 
> the majority of the system using Cygwin/XFree. And that can be very 
> different.
> That has nothing to do with cygwin but look at this poll of what gamers 
> have (http://steampowered.com/status/survey.html): 90% of the OS are WinXP.
> Gamers tends to have very recent machines, so tend to have a recent OS. 
> What I mean by giving this link is that the "majority" can differ 
> greatly depending of what subset of people you're looking at.

> Geeks (where I put Cygwin users), I assume, would have a recent machine 
> as their working machine and older systems for support (firewall, 
> server, ...).
> So I would think that there are more XP machines out there than you 
> think. Now, is it majority? I can't say but I would not be surprised at 
> all if it were.

cygwin is unix. unix is simple (shell and stuff) and this is the opposite 
of the bubble-gum os WinXP with alpha channel. 

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
  2004-03-09  1:34 David Arnstein
@ 2004-03-09  4:39 ` Igor Pechtchanski
  0 siblings, 0 replies; 38+ messages in thread
From: Igor Pechtchanski @ 2004-03-09  4:39 UTC (permalink / raw)
  To: cygwin-xfree

On Mon, 8 Mar 2004, David Arnstein wrote:

> Your hyperlink is labelled x.ico, but the file it links to is
> http://cygwin.com/ml/cygwin-xfree/2004-03/bin00000.bin.  This isn't a
> worm, is it?

Nope, that's the way MHonArc names attachments with unknown (to it) MIME
type...  If you feel suspicious, just get a copy of the message resent to
you (send an empty email to <cygwin-xfree-get.18927<at>cygwin<dot>com>),
and verify that the attachment is an icon (it is).

FWIW, the SPAM filtering on these lists is great and catches most worms.
Also, worms don't usually send 500-byte attachments. ;-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: X/Cygwin icon proposal
@ 2004-03-09  1:34 David Arnstein
  2004-03-09  4:39 ` Igor Pechtchanski
  0 siblings, 1 reply; 38+ messages in thread
From: David Arnstein @ 2004-03-09  1:34 UTC (permalink / raw)
  To: cygwin-xfree

Your hyperlink is labelled x.ico, but the file it links to is
http://cygwin.com/ml/cygwin-xfree/2004-03/bin00000.bin.  This isn't a
worm, is it?


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2004-03-19 19:08 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <IMEDKPLHDOLIKADDEMBGCEDBCEAA.bax3.NO@SPAM.bigfoot.com>
     [not found] ` <c2l08r$s95$1@sea.gmane.org>
2004-03-10  2:44   ` X/Cygwin icon proposal Harold L Hunt II
2004-03-10  3:02     ` Nahor
2004-03-10  3:18       ` Harold L Hunt II
     [not found]         ` <c2nko7$uba$1@sea.gmane.org>
2004-03-10 18:00           ` Harold L Hunt II
     [not found]             ` <c2nm3d$2kg$1@sea.gmane.org>
2004-03-11 13:20               ` Benjamin Riefenstahl
     [not found]                 ` <c2qaku$c5c$1@sea.gmane.org>
2004-03-11 19:33                   ` Benjamin Riefenstahl
2004-03-11 20:07                     ` Alexander Gottwald
2004-03-11 21:24                       ` Nahor
2004-03-11 21:34                         ` Harold L Hunt II
2004-03-12  6:09                           ` Earle F. Philhower III
2004-03-12  6:14                             ` Harold L Hunt II
2004-03-12  6:48                               ` Earle F. Philhower III
2004-03-13  8:30                                 ` Earle F. Philhower III
2004-03-13  9:50                                   ` Harold L Hunt II
2004-03-12 12:59                         ` Benjamin Riefenstahl
2004-03-12 16:51                           ` Nahor
2004-03-12 17:42                             ` Benjamin Riefenstahl
2004-03-12 17:49                       ` Benjamin Riefenstahl
     [not found] <B74CF8E243E50A43B2562370EBD9DBEC15A4C3@heis-2000server.heis.co.uk>
2004-03-20  0:12 ` Harold L Hunt II
2004-03-19 16:10 Orrigo, Giampaolo .
  -- strict thread matches above, loose matches on Subject: below --
2004-03-19  5:45 Michael Bax
2004-03-19  5:49 ` Harold L Hunt II
2004-03-19 14:53   ` Igor Pechtchanski
2004-03-19 17:59 ` Jehan Bing
2004-03-18 23:39 Earle F. Philhower, III
2004-03-18 23:51 ` Harold L Hunt II
2004-03-19  2:48 ` Nahor
2004-03-18 23:14 Earle F. Philhower, III
2004-03-18 23:22 ` Harold L Hunt II
2004-03-18 20:43 Earle F. Philhower, III
2004-03-18 22:26 ` Nahor
     [not found] <IMEDKPLHDOLIKADDEMBGKEGBCEAA.bax3.NO@SPAM.bigfoot.com>
     [not found] ` <c3cl67$i8g$1@sea.gmane.org>
2004-03-18 17:43   ` Alexander Gottwald
2004-03-18 18:15     ` Nahor
2004-03-18 19:12       ` Alexander Gottwald
2004-03-18 19:30         ` Harold L Hunt II
2004-03-18 18:46   ` Benjamin Riefenstahl
2004-03-09  1:34 David Arnstein
2004-03-09  4:39 ` Igor Pechtchanski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).