Only display the menu item for Preferences if there is support for Gtk Builder

This commit is contained in:
Chris Jones 2010-07-02 11:09:21 +01:00
parent 5fb0f518c8
commit fdf169a2fd
1 changed files with 4 additions and 3 deletions

View File

@ -152,9 +152,10 @@ class TerminalPopupMenu(object):
item.connect('toggled', lambda x: terminal.do_scrollbar_toggle())
menu.append(item)
item = gtk.MenuItem(_('_Preferences'))
item.connect('activate', lambda x: PrefsEditor(self.terminal))
menu.append(item)
if hasattr(gtk, 'Builder'):
item = gtk.MenuItem(_('_Preferences'))
item.connect('activate', lambda x: PrefsEditor(self.terminal))
menu.append(item)
profilelist = self.config.list_profiles()