Code sync
[external/hplip.git] / packaging / hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.patch.dpatch by  <till.kamppeter@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: No description.
6
7 @DPATCH@
8 diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hplip-3.11.7~/ui4/systemtray.py hplip-3.11.7/ui4/systemtray.py
9 --- hplip-3.11.7~/ui4/systemtray.py     2011-09-27 16:36:29.656301152 +0200
10 +++ hplip-3.11.7/ui4/systemtray.py      2011-09-27 16:38:47.716834875 +0200
11 @@ -473,6 +473,9 @@
12  
13          elif reason == QSystemTrayIcon.Trigger:
14              #print "single click"
15 +            self.updateMenu()
16 +            if not self.menu is None:
17 +                self.menu.popup(QCursor.pos())
18              pass
19  
20          elif reason == QSystemTrayIcon.MiddleClick: