~gary-lasker/software-center/fix-dbus-crash-reinstall-prev-lp863898

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/dialogs/dependency_dialogs.py

  • Committer: Michael Vogt
  • Date: 2011-10-11 12:19:23 UTC
  • Revision ID: michael.vogt@ubuntu.com-20111011121923-4kt8slsdz2b1pzgu
test/gtk3/test_dialogs.py: add tests for the confirm_repair_broken and the error dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#FIXME: These need to come from the main app
35
35
ICON_SIZE = 24
36
36
 
 
37
# for the unittests only
 
38
_DIALOG=None
37
39
def confirm_install(parent, datadir, app, db, icons):
38
40
    """Confirm install of the given app
39
41
       
101
103
 
102
104
def _confirm_internal(*args):
103
105
    dialog = _get_confirm_internal_dialog(*args)
 
106
    global _DIALOG
 
107
    _DIALOG=dialog
104
108
    result = dialog.run()
105
109
    dialog.hide()
106
110
    if result == Gtk.ResponseType.ACCEPT: