undo an indenting fail
This commit is contained in:
parent
3d78428aae
commit
9d6b961fc3
|
@ -171,30 +171,30 @@ class TerminalPopupMenu(object):
|
||||||
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"))
|
||||||
submenu.append (item)
|
submenu.append (item)
|
||||||
#second level
|
#second level
|
||||||
|
|
||||||
submenu = gtk.Menu ()
|
submenu = gtk.Menu ()
|
||||||
item.set_submenu (submenu)
|
item.set_submenu (submenu)
|
||||||
group = None
|
group = None
|
||||||
|
|
||||||
for encoding in encodings:
|
for encoding in encodings:
|
||||||
if encoding[1] in active_encodings:
|
if encoding[1] in active_encodings:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if encoding[1] is None:
|
if encoding[1] is None:
|
||||||
label = "%s %s"%(encoding[2], terminal.vte.get_encoding ())
|
label = "%s %s"%(encoding[2], terminal.vte.get_encoding ())
|
||||||
else:
|
else:
|
||||||
label = "%s %s"%(encoding[2], encoding[1])
|
label = "%s %s"%(encoding[2], encoding[1])
|
||||||
|
|
||||||
radioitem = gtk.RadioMenuItem (group, label)
|
radioitem = gtk.RadioMenuItem (group, label)
|
||||||
if group is None:
|
if group is None:
|
||||||
group = radioitem
|
group = radioitem
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue