Comment 52 for bug 529052

Revision history for this message
Kalle Valo (kvalo) wrote :

I have investigated this and the problem is related to gnome-power-manager creating a new menu during each update. This is the function (from 12-add-appindicators.patch) creating a new menu:

static void
gpm_tray_icon_devices_changed_cb (GpmEngine *engine, GpmTrayIcon *icon)
{
 GtkMenu *menu;

 egg_debug("%s", __func__);

 menu = gpm_tray_icon_create_menu (icon);
 gtk_widget_show_all (GTK_WIDGET (menu));
 app_indicator_set_menu (icon->priv->app_indicator, menu);
}

If comment out call to app_indicator_set_menu() icon does not disappear anymore, but naturally the menu won't be updated. I'm exploring how to fix this properly.