~ubuntu-branches/ubuntu/wily/apport/wily

« back to all changes in this revision

Viewing changes to gtk/apport-gtk

  • Committer: Package Import Robot
  • Author(s): Brian Murray
  • Date: 2012-10-16 13:31:24 UTC
  • mfrom: (341.1.8 quantal)
  • Revision ID: package-import@ubuntu.com-20121016133124-7e200k8c8vt1zo38
Tags: 2.6.1-0ubuntu4
apport/ui.py: create a MarkForUpload field and set that to false for
binaries that changed since the crash happened thereby preventing uploads
to the crash database (LP: #1039220)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
'''GTK Apport user interface.'''
4
4
 
5
 
# Copyright (C) 2007 - 2009 Canonical Ltd.
 
5
# Copyright (C) 2007-2012 Canonical Ltd.
6
6
# Author: Martin Pitt <martin.pitt@ubuntu.com>
7
7
#
8
8
# This program is free software; you can redistribute it and/or modify it
150
150
 
151
151
        if from_console:
152
152
            if 'ExecutablePath' in self.report:
153
 
                t = (_('Sorry, the application %s has closed unexpectedly.')
 
153
                t = (_('Sorry, the application %s has stopped unexpectedly.')
154
154
                     % os.path.basename(self.report['ExecutablePath']))
155
155
            else:
156
156
                t = (_('Sorry, %s has closed unexpectedly.') %
157
157
                     self.cur_package)
158
 
 
159
158
        else:
160
159
            if 'DistroRelease' not in self.report:
161
160
                self.report.add_os_info()
224
223
            self.w('closed_button').show()
225
224
            self.w('closed_button').set_label(_('Force Closed'))
226
225
            self.w('continue_button').set_label(_('Relaunch'))
227
 
            self.w('subtitle_label').hide()
 
226
            self.w('subtitle_label').show()
 
227
            self.w('subtitle_label').set_label(
 
228
                'You can wait to see if it wakes up, or close or relaunch it.')
228
229
            self.desktop_info = self.get_desktop_entry()
229
230
            if self.desktop_info:
230
231
                icon = self.desktop_info.get('icon')