fix a few warnings

This commit is contained in:
Yann Leboulanger 2015-07-20 20:08:55 +02:00
parent 66d88bc232
commit a22a9573b8
2 changed files with 3 additions and 4 deletions

View File

@ -1420,13 +1420,12 @@ class HigDialog(Gtk.MessageDialog):
on_response_ok=None, on_response_cancel=None, on_response_yes=None,
on_response_no=None):
self.call_cancel_on_destroy = True
Gtk.MessageDialog.__init__(self, parent=parent,
Gtk.MessageDialog.__init__(self, transient_for=parent,
modal=True, destroy_with_parent=True,
message_type=type_, buttons=buttons, text=pritext)
self.format_secondary_markup(sectext)
buttons = self.action_area.get_children()
self.possible_responses = {Gtk.ResponseType.OK: on_response_ok,
Gtk.ResponseType.CANCEL: on_response_cancel,
Gtk.ResponseType.YES: on_response_yes,
@ -5486,7 +5485,7 @@ class CheckFingerprintDialog(YesNoDialog):
checktext=checktext, on_response_yes=on_response_yes,
on_response_no=on_response_no)
self.set_title(_('SSL Certificate Verification for %s') % account)
b = Gtk.Button(_('View cert...'))
b = Gtk.Button(label=_('View cert...'))
b.connect('clicked', self.on_cert_clicked)
b.show_all()
area = self.get_action_area()

View File

@ -226,7 +226,7 @@ if os.name == 'nt':
sys.stderr = MyStderr()
# PyGTK2.10+ only throws a warning
warnings.filterwarnings('error', module='gtk')
warnings.filterwarnings('error', module='Gtk')
try:
from gi.repository import GObject
GObject.set_prgname('gajim')