GNOME Bugzilla – Bug 326970
Toolbar Notifications Not In GNOME XChat
Last modified: 2006-01-18 07:59:57 UTC
This bug has been opened on https://launchpad.net/distros/ubuntu/+source/xchat/+bug/28391 "If XChat is to be replaced with xchat-gnome, here is one feature that is lacking: toolbar notification. In gaim and stock xchat, when your name is said in a chat, an urgent hint is sent to the toolbar. This is not so in xchat-gnome. Xchat-gnome does support system-tray notifications, but it would be nice to keep consitancy with xchat and gaim and send an urgent hint to the toolbar when your nick is said (or an option for it be created)."
The notification plugin do that. Isn't it what you need?
There is 2 plugins atm to use the notification area/libnotify but neither set the URGENT flag for the windows (which creates an effect on the windows list for GNOME)
Ok, sorry for misunderstanding. Seems a good idea indeed to turn this flag.
In fact would not it be more interesting to do this in the main code rather than plugins ? It seems a good idea to always have windows list highlighting when you receive a new private message or your nick is said on a channel. Doesn't it ?
right, that should be standard feature
Created attachment 57376 [details] [review] set urgency flag on nick highlighthing and private message * src/fe-gnome/main-window.c: * src/fe-gnome/fe-gnome.c: - Turn on window urgency flag when nick highlighting and receive a private message. (#326970) - Use gui.main_window instead of getting the main window widget with glade_xml_get_widget(). I have a very strang problem with this hack. - Connect on a channel - With another x-g cite the nick of the other x-g. - First x-g display notification icon and highlight in the windows list - Switch to it. It stop to highlight but the tray icon doesn't disappear. - reswitch again and then it disappears. It seems than the first time, the plugin doesn't receive the focus-in-event signal and i don't understand why.
It's because a lot of gtk signals require a gboolean return value (including focus-in-event), and you weren't returning anything. Because of that, it uses whatever was in RAM/registers, which was sometimes stopping the signal from propagating further. Fixed that and applied to svn, thanks!