Only display the menu item for Preferences if there is support for Gtk Builder
This commit is contained in:
parent
5fb0f518c8
commit
fdf169a2fd
|
@ -152,6 +152,7 @@ class TerminalPopupMenu(object):
|
||||||
item.connect('toggled', lambda x: terminal.do_scrollbar_toggle())
|
item.connect('toggled', lambda x: terminal.do_scrollbar_toggle())
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
|
if hasattr(gtk, 'Builder'):
|
||||||
item = gtk.MenuItem(_('_Preferences'))
|
item = gtk.MenuItem(_('_Preferences'))
|
||||||
item.connect('activate', lambda x: PrefsEditor(self.terminal))
|
item.connect('activate', lambda x: PrefsEditor(self.terminal))
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
Loading…
Reference in New Issue