PanelApplet deprecated?


#1

My SSHMenu program ( http://www.mclean.net.nz/ruby/sshmenu/ ) uses the
PanelApplet class as follows …


require ‘panelapplet2’

PanelApplet.main(“OAFIID:GNOME_SSHMenuApplet_Factory”,
“SSH Menu Applet”, “0.1”) do |applet, iid|

I’ve just received email from a user pointing out that this page …

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby-GNOME2+API+Reference

… says that PanelApplet is deprecated in favour of Gtk::StatusIcon.

That seems odd to me because
a) they seem to do very different things and
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

I also can no longer find the documentation for the PanelApplet class.
It used to exist because I referred to it while writing my program. I
thought it was at this URL but it doesn’t seem to be:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/PanelApplet

Am I going mad?

Regards
Grant


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


#2

Hi,

2007/1/25, Grant McLean removed_email_address@domain.invalid:

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
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
and
http://www.freedesktop.org/wiki/Standards/systemtray-spec
may help you.

Thanks,

kou


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


#3

Hi

Thanks for your quick reply.

On Thu, 2007-01-25 at 16:30 +0900, Kouhei S. wrote:

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


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


#4

Hi,

In removed_email_address@domain.invalid
“Re: [ruby-gnome2-devel-en] PanelApplet deprecated?” on Thu, 25 Jan
2007 20:46:17 +1300,
Grant McLean removed_email_address@domain.invalid wrote:

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.

Ah, OK. I understand. You need to create Bonobo object,
don’t you? I’m sorry for my wrong pointers.

Thanks,

kou


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


#5

Hi,

On Thu, 25 Jan 2007 19:48:52 +1300
Grant McLean removed_email_address@domain.invalid wrote:

http://developer.gnome.org/doc/API/2.0/panel-applet/libpanel-applet.html

I also can no longer find the documentation for the PanelApplet class.
It used to exist because I referred to it while writing my program. I
thought it was at this URL but it doesn’t seem to be:

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby/PanelApplet

Am I going mad?

Ruby/PanelApplet is deprecated in Ruby-GNOME2 project now.
Because there is no one who maintains it.
Of course, it doesn’t mean it is deprecated from GNOME2 world.

But also, it is included in Ruby-GNOME2-0.16.0.
It won’t include to Ruby-GNOME2 tar ball in the future,
but at least you can use it now and until some releases later.

Now, I consider to reduce our libraries which has been not maintained
for a long time.
Actually, I removed Ruby/Libgda and Ruby/GStreamer from 0.16.0.
I know someone don’t hope it, but I can’t mainatin all of these
libraries by myself.


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


#6

On Fri, 2007-01-26 at 01:54 +0900, Masao M. wrote:

but at least you can use it now and until some releases later.
Is Ruby/PanelApplet broken? If not, I don’t understand the motivation
for removing it.

Now, I consider to reduce our libraries which has been not maintained for a long time.
Actually, I removed Ruby/Libgda and Ruby/GStreamer from 0.16.0.
I know someone don’t hope it, but I can’t mainatin all of these libraries by myself.

I certainly appreciate the effort you put into creating and maintaining
these libraries. I hope I did not appear demanding in my enquiry.

Regards
Grant


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


#7

Hi,

On Fri, 26 Jan 2007 08:39:54 +1300
Grant McLean removed_email_address@domain.invalid wrote:

On Fri, 2007-01-26 at 01:54 +0900, Masao M. wrote:

Hi,

But also, it is included in Ruby-GNOME2-0.16.0.
It won’t include to Ruby-GNOME2 tar ball in the future,
but at least you can use it now and until some releases later.

Is Ruby/PanelApplet broken? If not, I don’t understand the motivation
for removing it.

It’s my mind, not you.
If you help us, I may change my mind.


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV