Server.disconnect()

Asked by ukblacknight

I'm writing a plugin for emesene to integrate it into the indicator-applet. As the plugin can be started and stopped at any time, I must be able to start and stop the server on these events, i.e. remove emesene from the applet if the user stops the plugin.

I'm unsure of how to disconnect the server once it is running - fail trace reports back that an integer parameter must be passed to the disconnect method, but I'm unsure of what exactly the integer is. Is there any documentation to this applet?

Question information

Language:
English Edit question
Status:
Expired
For:
Indicator Applet Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ukblacknight (tom-blacknight) said :
#1

Nevermind - I got the handler ID from the connect() method, and then passed it to disconnect (obvious, really). Although, this really didn't have the desired effect, as I wish to remove the item server item from the applet altogether. The hide() method doesn't appear to do anything.

How do I remove the server from the applet? Any example code I've seen so far simply relies on the termination of the application to remove it from the applet.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
ukblacknight (tom-blacknight) said :
#3

Bump.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jonathan Michalon (johndescs) said :
#5

There is the same problem here when writing integration to gajim: no way to make that line disappear from applet :/
Strange that the hide() method exists but do nothing...