On Wed, 2009-10-14 at 15:07 +0000, Michael wrote:
> I took a quick look at the canonical patch adding libindicate support to
> empathy, but I couldn't see any way to tell whether the indicator applet
> was actually running - if someone can tell me how to tell that, I could
> do a quick untested patch, as the place in the code to change is pretty
> clear.
The way to determine if the messaging menu is running is to use the
interests interface. It basically conveys if someone is interested in
the application that is running. The interest that should be used here
is: INDICATE_INTEREST_SERVER_SIGNAL. Meaning that a watcher is willing
to signal that the application can show/hide.
On Wed, 2009-10-14 at 15:07 +0000, Michael wrote:
> I took a quick look at the canonical patch adding libindicate support to
> empathy, but I couldn't see any way to tell whether the indicator applet
> was actually running - if someone can tell me how to tell that, I could
> do a quick untested patch, as the place in the code to change is pretty
> clear.
The way to determine if the messaging menu is running is to use the INTEREST_ SERVER_ SIGNAL. Meaning that a watcher is willing
interests interface. It basically conveys if someone is interested in
the application that is running. The interest that should be used here
is: INDICATE_
to signal that the application can show/hide.
http:// bazaar. launchpad. net/~indicator- applet- developers/ libindicate/ trunk-0- 2/annotate/ head:/libindica te/interests. h
The signals are INTEREST_ADDED and INTEREST_REMOVED from here:
http:// bazaar. launchpad. net/~indicator- applet- developers/ libindicate/ trunk-0- 2/annotate/ head:/libindica te/server. h
With the function to check being indicate_ server_ check_interest in the
same file.
> Out of interest, why were these changes not submitted (or
> accepted) upstream? This sort of distro-specific stuff is just asking
> for problems.
Awful presumptuous of you to assume that it hasn't :)
https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 574744