Re: [PHP-GTK] Alert the taskbar
[email protected] (NOT_Skeletor)
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
Fantastic! Thank you so much, that was exactly what I wanted. And speedy to boot. Thanks a lot, I really do appreciate it. One of those things thats kept me up nights trying to figure it out. bob majdak jr wrote: > >> 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 > > > -- View this message in context: http://www.nabble.com/Alert-the-taskbar-tf4537481.html#a12951998 Sent from the Php - GTK - General mailing list archive at Nabble.com.