« Return to Thread: Alert the taskbar

Re: Alert the taskbar

by bob majdak jr :: Rate this Message:

Reply to Author | View in Thread

> 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

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: Alert the taskbar