pylint quiescing

This commit is contained in:
Chris Jones 2009-12-10 11:36:46 +00:00
parent 0d319e8a57
commit dfe85f1e9b
1 changed files with 6 additions and 3 deletions

View File

@ -161,7 +161,8 @@ class TerminalPopupMenu(object):
for encoding in active_encodings: for encoding in active_encodings:
if encoding == terminal.default_encoding: if encoding == terminal.default_encoding:
extratext = " (%s)" % _("Default") extratext = " (%s)" % _("Default")
elif encoding == current_encoding and terminal.custom_encoding == True: elif encoding == current_encoding and \
terminal.custom_encoding == True:
extratext = " (%s)" % _("User defined") extratext = " (%s)" % _("User defined")
else: else:
extratext = "" extratext = ""
@ -174,7 +175,8 @@ class TerminalPopupMenu(object):
if group is None: if group is None:
group = radioitem group = radioitem
radioitem.connect ('activate', terminal.on_encoding_change, encoding) radioitem.connect ('activate', terminal.on_encoding_change,
encoding)
submenu.append (radioitem) submenu.append (radioitem)
item = gtk.MenuItem (_("Other Encodings")) item = gtk.MenuItem (_("Other Encodings"))
@ -201,6 +203,7 @@ class TerminalPopupMenu(object):
if encoding[1] == current_encoding: if encoding[1] == current_encoding:
radioitem.set_active (True) radioitem.set_active (True)
radioitem.connect ('activate', terminal.on_encoding_change, encoding[1]) radioitem.connect ('activate', terminal.on_encoding_change,
encoding[1])
submenu.append (radioitem) submenu.append (radioitem)