My wxWidgets application doesn't work completely on Ubuntu 11.10 (with
Unity) because the new indicator system:
http://unity.ubuntu.com/projects/appindicators/
Right now, my application is using wxWidgets from SVN:
wxTaskBarIcon::IsAvailable() return TRUE even if I don't see my
application in the indicator
Would it be possible to include support for the new indicator, here's
a C example:
https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Typical_usage_.28C_version.29
If not, would it be possible to return FALSE for
wxTaskBarIcon::IsAvailable()?
PS. I don't like the new indicator and Ubuntu Unity, but many users
will use this system, so I need to be compatible with it.
Patrick
> Right now, my application is using wxWidgets from SVN:
> wxTaskBarIcon::IsAvailable() return TRUE even if I don't see my
> application in the indicator
Perhaps there is a better way to test for GtkStatusIcon availability
than what we do now but I don't know what would it be. Does
gtk_status_icon_new() still work on this system?
> Would it be possible to include support for the new indicator, here's
> a C example:
> https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Typical_usage_.28C_version.29
It would, of course, be great to use their API if it's available (this
would have to be determined dynamically during run-time probably) but
someone would need to do it.
> If not, would it be possible to return FALSE for
> wxTaskBarIcon::IsAvailable()?
I don't know what's the official way to test for appindicator library
being used, it doesn't seem to provide any API to check for this as part of
itself. A quick web search found an advice to look whether indicator-applet
process is running but this looks like a really dirty hack. Better ideas
would be welcome.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
It's a patch for the network-manager-applet:
"
To get better integration with Unity (and actually have nm-applet show
up at
all with Unity / compiz), implement drawing the applet using
libappindicator.
To play well with others, this patch actually implements
libappindicator
conditionally to running configure with --enable-indicator.
"
> Maybe I found something (not sure if it's useful for wxWidgets):
> http://mail.gnome.org/archives/networkmanager-list/2011-March/msg00105.html
>
> It's a patch for the network-manager-applet:
It's probably useful but only as an example -- the real work still needs
to be done by someone.
> To play well with others, this patch actually implements libappindicator
> conditionally to running configure with --enable-indicator.
And as we want to be able to produce have the same binaries running under
both Ubuntu and the other systems, we need to do libappindicator detection
during run- and not compile-time, so our case is slightly more complicated.