Re: [PHP-GTK] Alert the taskbar

[email protected] (Bob Majdak Jr)
Newsgroups php.gtk.general
Organization KateOS
Message-ID <[email protected]>
> Firstly, I would love to know how to "alert" the taskbar.

Since 2.8 GTK has had GtkWindow::set_urgency_hint(). See
this code example: http://p.opsat.net/t/yo

> Secondly, I did the tutorial at kksou's site for the GtkStatusIcon, and its
> fantastic! The chat also has a queue of users waiting to chat, and it would
> be great if I could pop a menu from the status icon from some event (like a
> new user comes in).

Build your GtkMenu, and then use the ->popup() method on
it when you want it to pop up. Remember to use the
GtkStatusIcon::position_menu method in the popup so that
it actually pops up over the icon. Really no different
than doing a normal menu except you are calling the popup
method instead of the user interface events.

---
Bob Majdak Jr
KateOS Rofflecopter Pilot
http://www.kateos.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.