~ubuntu-branches/ubuntu/precise/hplip/precise-updates

« back to all changes in this revision

Viewing changes to debian/patches/hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.dpatch

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2011-10-29 10:02:57 UTC
  • mfrom: (2.1.177 precise)
  • Revision ID: package-import@ubuntu.com-20111029100257-dp1w2nvpohhpvuel
Tags: 3.11.10-1
* New Upstream Release
* Switch to dh_bugfiles - fixes reportbug script

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: