Hallo,
some applications set the urgency flag when the contents have changed. My window manager (ion3) then changes the color of the title bar. This is very useful for an instant messanger running in the background. But tkabber obviously doesn't support this feature.
There's a very small application demonstrating how urgency flag is set at
http://modeemi.fi/~tuomov/ion/misc/urgent.c .
Is it possible to add this to tkabber?
Greetings!
Benno
I've tried a little bit. I
I've tried a little bit. I know how to set it in principal. But I don't know how to get the WindowID of the chat window. I think I have to use something like [winfo id $window] in ifacetk/iface.tcl. But I haven't found the right value for $window.
Probably you should use
Probably you should use something like
if you know chat ID $chatid.
Thanks! I've tried it. But
Thanks! I've tried it. But the returned value and the X window identifier differ. When opening a plain wish and typing
winfo id .
in it, the returned value differs from the X window ID too. E.g. winfo returns 0xc00003 while the window ID is 0xc00004. Thus I think
winfo id window
doesn't return the correct X window ID in general.
Getting the right value should be very easy I think. But without any knowledge of tcl/tk I don't know how.
You may also try to use wm
You may also try to use
instead of
In ifacetk/iface.tcl wm
In ifacetk/iface.tcl
returns the same value as
.
The command
gives the following output:
In this case
0x1800086
is the value I need. But with thewinfo
andwm
commands above I got the value0x1800102
. Perhaps the command must not be placed inifacetk/iface.tcl
.Is there an easy way to list all of tkabber's windows with their IDs?
OK, I've found an ugly
OK, I've found an ugly solution. I must add a few lines only and it will work.
Thanks!
Benno
EDIT:
I've added these three lines after line 939 in
ifacetk/iface.tcl
(tkabber-0.9.8):The flag is set by an external program because I don't know how to set it with tcl/tk:
It's not perfect but it seems to work.