~ubuntu-branches/ubuntu/raring/software-center/raring-proposed

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/panes/pendingpane.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-10-11 15:33:05 UTC
  • mfrom: (195.1.18 quantal)
  • Revision ID: package-import@ubuntu.com-20121011153305-fm5ln7if3rpzts4n
Tags: 5.4.1.1
* lp:~mvo/software-center/reinstall-previous-purchase-token-fix:
  - fix reinstall previous purchases that have a system-wide
    license key LP: #1065481
* lp:~mvo/software-center/lp1060106:
  - Add missing gettext init for utils/update-software-center-agent
    (LP: #1060106)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from basepane import BasePane
24
24
from softwarecenter.ui.gtk3.em import StockEms
25
 
from softwarecenter.ui.gtk3.panes.softwarepane import DisplayState
26
25
from softwarecenter.ui.gtk3.models.pendingstore import PendingStore
 
26
from softwarecenter.ui.gtk3.session.displaystate import DisplayState
27
27
 
28
28
LOG = logging.getLogger(__name__)
29
29
 
84
84
    def _on_button_pressed(self, widget, event):
85
85
        """button press handler to capture clicks on the cancel button"""
86
86
        #print "_on_clicked: ", event
87
 
        if event == None or event.button != 1:
 
87
        if event is None or event.button != 1:
88
88
            return
89
89
        res = self.tv.get_path_at_pos(int(event.x), int(event.y))
90
90
        if not res: