Comment 5 for bug 857929

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: hp-systray icon does nothing

The problem is probably the following:

I have tried out the bahavior of hp-systray in Natty. If I left-click on the icon nothing happens. If I right-click I get the menu which we want to have, with all printers and the entry for the HP Toolbox. So it seems that sni-qt converts correctly: the non-functional left click is converted to the empty menu and the right-click menu is ignored. So for Oneiric the minimum-invasive solution would be to modify the hp-systray program so that the menu opens on left-click.

In the file

/usr/share/hplip/ui4/systemtray.py

The icon with the menu is made up by the class SystemTrayApp and within this class the menu is built by the method setMenu(). In the end of this method the menu is connected to the right click via

self.tray_icon.setContextMenu(self.menu)

Now I need some Python-Qt expert to patch this code so that the menu opens on the left clcik in Natty and so in Oneiric it appears as the menu of the indicator applet.

Any help is appreciated.