From: Grant M. <gr...@mc...> - 2007-01-25 07:46:23
|
Hi Thanks for your quick reply. On Thu, 2007-01-25 at 16:30 +0900, Kouhei Sutou wrote: > Hi, > > 2007/1/25, Grant McLean <gr...@mc...>: > > > http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby-GNOME2+API+Reference > > > > ... says that PanelApplet is deprecated in favour of Gtk::StatusIcon. > > It's right. > > > That seems odd to me because > > a) they seem to do very different things and I'm still confused about this point. > > b) I can't see any mention of the underlying libpanel-applet c code > > being deprecated: > > http://developer.gnome.org/doc/API/2.0/panel-applet/libpanel-applet.html > > http://developer.gnome.org/doc/API/2.0/gtk/GtkStatusIcon.html#id2870112 The page you linked to says that the GtkStatusIcon routines are for displaying an icon in the system tray. It says nothing about applets. On my GNOME desktop, the 'system tray' is provided by the "Notification Area Applet" and it displays icons that only appear when an event happens (eg: a software update is available, battery power is low etc). The panelapplet library is used for writing applets - tools which can be added to the GNOME panel and remain there as visible icons/buttons, which you can interact with I still don't see how I would use GtkStatusIcon to create an applet and if I did, how I would get it to appear on the panel rather than in the system tray. Regards Grant |