/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_commit.py

  • Committer: Jelmer Vernooij
  • Date: 2010-05-25 17:09:02 UTC
  • mto: This revision was merged to the branch mainline in revision 691.
  • Revision ID: jelmer@samba.org-20100525170902-3to8g5iw7ovw79kh
Split out olive into a separate directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
 
21
 
from gi.repository import Gtk
 
21
import gtk
22
22
 
23
23
from bzrlib import (
24
24
    branch,
 
25
    revision,
25
26
    tests,
26
27
    uncommit,
27
28
    )
679
680
        def _question_yes(*args, **kwargs):
680
681
            self.questions.append(args)
681
682
            self.questions.append('YES')
682
 
            return Gtk.ResponseType.YES
 
683
            return gtk.RESPONSE_YES
683
684
        dlg._question_dialog = _question_yes
684
685
 
685
686
    def _set_question_no(self, dlg):
688
689
        def _question_no(*args, **kwargs):
689
690
            self.questions.append(args)
690
691
            self.questions.append('NO')
691
 
            return Gtk.ResponseType.NO
 
692
            return gtk.RESPONSE_NO
692
693
        dlg._question_dialog = _question_no
693
694
 
694
695