Re: Trash applet and Trash icon: d'n'd

On Sun, 2004-12-05 at 14:32 +0100, Luca Ferretti wrote:

> So maybe libpanel-applet needs some API to declare an applet as single
> instance. 

Catching this is easy. Since all instances of an applet run in one
process, you can have a static gboolean already_running; and test the
status of that.

Here's your problem, if they answer no you have two choices,
 - You can quit, displaying the nasty - Trashapplet exited
   unexpectantly... confusing to the user, plus they might choose to
   reload. Users get stuck in loops....
 - Or, you can deconfigure yourself (non-trivial) and then wait for the
   end of the session. This is very similar to what null_applet does.

Of course, uses with two screens might want two trash applets.


PS. If anyone knows of another way to remove an applet, I would love to
know about it.

Davyd Madeley    

PGP Fingerprint <>
08B0 341A 0B9B 08BB 2118  C060 2EDD BB4F 5191 6CDA

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]