After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 88060 - Flash the application icon like the applet
Flash the application icon like the applet
Status: RESOLVED FIXED
Product: GnomeICU
Classification: Deprecated
Component: Main Window
0.98.x
Other other
: Normal normal
: ---
Assigned To: gnomeicu-maint
gnomeicu-maint
Depends on: 61853 99679 99681 120439
Blocks:
 
 
Reported: 2002-07-12 20:31 UTC by David Hoover
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to demonstrate concept (3.07 KB, patch)
2002-08-05 20:04 UTC, David Hoover
none Details | Review
Real patch to blink window icon (4.29 KB, patch)
2002-08-06 05:56 UTC, David Hoover
none Details | Review

Description David Hoover 2002-07-12 20:31:22 UTC
Here's a thought that could help some; when a message comes in, flash the
main window's icon between the normal thing, and the icon for whatever the
incoming message is.

Right now, the main window's title gets changed to "GnomeICU: Msgs" instead
of just "GnomeICU", but with a cramped task-list, that's really not
visible. Flashing the icon would make it leap out pretty quickly.
Comment 1 Olivier Crête 2002-08-05 17:50:57 UTC
that would be neat.. except that I dont know if/how I can do it...
Comment 2 David Hoover 2002-08-05 18:38:53 UTC
I might be being naive, but it seems like it'd be pretty simple:

Something needs to know what should be blinking, which the code should
already exist for (know that we've got a blinking text message, a
blinking chat, nothing blinking, etc)

Then, in addition to whatever gets called to flop between the "normal"
picture and the "incoming thingy" picture, you just add in calls that
alternate between set_window_icon(window, "gnomeicu-chat.png") and
set_window_icon(window, "gnome-gnomeicu.xpm")
Comment 3 David Hoover 2002-08-05 20:04:27 UTC
Created attachment 10280 [details] [review]
Patch to demonstrate concept
Comment 4 David Hoover 2002-08-05 20:05:34 UTC
There's a patch that shows a rough implimentation.

It's definitely fugly, and slightly broken, but it shows how it can be
done. If someone else wants to clean it up & make it
production-worthy, be my guest. If not, I'll try & get around to
REALLY implimenting this sucker when I get a chance.
Comment 5 David Hoover 2002-08-06 05:56:04 UTC
Okay, I've cleaned up my patch so it should be production quality.
Lemme add that to here
Comment 6 David Hoover 2002-08-06 05:56:32 UTC
Created attachment 10288 [details] [review]
Real patch to blink window icon
Comment 7 Vincent Untz 2002-10-25 13:47:57 UTC
David: yesterday, I committed a patch that makes the icon in the
notification area flash. So I don't think it's useful to flash the
main window icon. What do you think ?
Comment 8 David Hoover 2002-10-25 14:41:21 UTC
I'd be inclined to say that it's still useful; it's more feedback when
something's happening, plus it'll be a while yet till everyone uses
the notification area. It's in RH8, but other than that, I don't know
how long it'll be till Average Joe User has that running.

Using the gnomeicu applet would give you something that gives feedback
instead, but that still seems a bit unstable (prone to snarfing all
cpu, losing (or never obtaining in the first place) contact with the
main window, etc), so I can't blame anyone (or myself) for not running
that.

In that case, having the feedback would be nice, and having a little
extra feedback in general wouldn't hurt either. Likewise (but
different enough I should probably file another bug), flashing the
icon seems like it might be a good way to draw attention to obscured
message windows when they receive new events (until there's an
officially condoned way in gnome for a window to wave its hands and
shout "look at me!")

So I think the answer is yes; despite the notification area being more
robust, I think the app icon should still flash.
Comment 9 Gregory Merchan 2002-11-21 05:44:15 UTC
The proper way to call attention to a window is to set its urgency hint.
Doing this should cause something (historically, the window manager)
to present to the user some indication that the window wants attention.
IceWM will flash the window's window list button, or so I'm told.

Unfortunately, there's no API for this right now other than Xlib, and
the GNOME window list doesn't recognize the hint. I don't know whether
bug reports have been filed for this.
Comment 10 Olivier Crête 2002-12-04 04:37:02 UTC
I've added dependencies on bugs for the urgency hint

61853 for GTK+
99679 for libwnck (pager, tasklist)
99681 for metacity
Comment 11 Patrick Sung 2002-12-09 06:06:35 UTC
bug 99681 is for sawfish, not metacity ;)
Comment 12 Patrick Sung 2004-01-26 02:13:20 UTC
bug 99679 now a dup of bug 120439, added bug 120439 to dependency list
Comment 13 Olivier Crête 2004-05-31 15:01:34 UTC
I implemented setting/unsetting the urgency hint when the icons are blinking..
We now just have to wait for HP to fix metacity and/or wnck to have it used by
gnome.. Flashing the window icon is just not a good idea.. the tray can help you
for that.. or bitch havoc on bugs 120439 and 61853...