Shared functions for Ayatana indicators (GTK+ 2.x version)