/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: 2011-04-10 18:44:39 UTC
  • mto: This revision was merged to the branch mainline in revision 730.
  • Revision ID: jelmer@samba.org-20110410184439-g7hqaacexqtviq13
Move i18n support to a separate file, so gettext files aren't loaded unless bzr-gtk is used.

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,
679
679
        def _question_yes(*args, **kwargs):
680
680
            self.questions.append(args)
681
681
            self.questions.append('YES')
682
 
            return Gtk.ResponseType.YES
 
682
            return gtk.RESPONSE_YES
683
683
        dlg._question_dialog = _question_yes
684
684
 
685
685
    def _set_question_no(self, dlg):
688
688
        def _question_no(*args, **kwargs):
689
689
            self.questions.append(args)
690
690
            self.questions.append('NO')
691
 
            return Gtk.ResponseType.NO
 
691
            return gtk.RESPONSE_NO
692
692
        dlg._question_dialog = _question_no
693
693
 
694
694