After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 470465 - Multiple applets documentation nonexistant
Multiple applets documentation nonexistant
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: libpanel-applet
2.26.x
Other All
: Normal minor
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-26 16:14 UTC by Johan Walles
Modified: 2020-03-16 22:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Johan Walles 2007-08-26 16:14:10 UTC
Documentation 
Section: ??
"
FIXME: write
"

Correct version:
I don't know.  That's what I'd like to find out.  Help!

Other information:
Read it and weep:
http://library.gnome.org/devel/panel-applet/unstable/multi-applets.html
Comment 1 Johan Walles 2007-08-26 16:17:41 UTC
Having this bug assigned to "gnome-user-docs-maint@gnome.bugs" doesn't sound right to me, but that's the default owner for documentation bugs.  I assume you guys know where to reassign this...
Comment 2 Johan Walles 2007-08-26 16:54:50 UTC
To give some context, the problem I'm trying to solve is this one:
https://savannah.nongnu.org/bugs/?15606

Following the GNOME Applets tutorial at http://www.gnome.org/projects/ORBit2/appletstutorial.html results in an applet that can only be added once.

I want to know how to enable several instances of my applet to be active at once.
Comment 3 Vincent Untz 2007-09-02 14:52:24 UTC
If I understand the bug correctly, you're talking about the libpanel-applet doc.

It should just work, though. You don't have to do anything special to have multiple applets. You can look at the applets in gnome-panel or gnome-applets module to see how they're implemented.
Comment 4 Johan Walles 2007-09-03 05:56:29 UTC
Yes, http://library.gnome.org/devel/panel-applet/unstable/multi-applets.html should be for libpanel-applet.

The problem is I have an applet (http://bubblemon.nongnu.org) for which it doesn't just work.  Looking at some other applet (I think it was the Network Manager applet) it's doing something with instances that I'm not, and that I don't understand.

I doubt that the applet from the first chapter of that tutorial (which *does* exist) could be run in several instances either, since it seems to be doing exactly what I'm doing (but not what the Network Manager applet is doing).

Anyway, thanks for redirecting the bug report!  Looking forward to hearing from the libpanel-applet guys :-).
Comment 5 Vincent Untz 2007-09-03 11:13:34 UTC
I'm the libpanel-applet guy too :-)

I don't have enough time to look at all this right now, though. Your best chance is to try and play with all this and see what's wrong. Just look at the code of a really small applet, like the notification area of the fish (in gnome-panel). Those ones work as expected.
Comment 6 Johan Walles 2007-09-03 12:47:33 UTC
OK, reverse engineering it is then...

If you happen to stumble upon any docs for GNOME's (GTK+'s? somebody else's?) class / instance system, a link here would be peachy.

  Regards //Johan
Comment 7 Johan Walles 2009-03-30 19:01:29 UTC
The trick is not to use any global or static variables in your code.

I de-globalized Bubblemon 2.0.11 and Bubblemon can now be run in several instances.