/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: Curtis Hovey
  • Date: 2011-08-01 14:46:23 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110801144623-ldjf0bu7kyi5bxzu
Updated commit to gtk3.

Show diffs side-by-side

added added

removed removed

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