The titlebar is no longer optional, it probably never should have been, it's just too complicated

This commit is contained in:
Chris Jones 2010-01-13 23:06:42 +00:00
parent 02c1a482df
commit df7a3b978d
3 changed files with 0 additions and 20 deletions

View File

@ -123,8 +123,6 @@ DEFAULTS = {
}, },
'profiles': { 'profiles': {
'default': { 'default': {
'titlebars' : True,
'zoomedtitlebar' : True,
'allow_bold' : True, 'allow_bold' : True,
'audible_bell' : False, 'audible_bell' : False,
'visible_bell' : True, 'visible_bell' : True,

View File

@ -681,9 +681,6 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
def do_scrollbar_toggle(self): def do_scrollbar_toggle(self):
self.toggle_widget_visibility(self.scrollbar) self.toggle_widget_visibility(self.scrollbar)
def do_title_toggle(self):
self.toggle_widget_visibility(self.titlebar)
def toggle_widget_visibility(self, widget): def toggle_widget_visibility(self, widget):
if widget.get_property('visible'): if widget.get_property('visible'):
widget.hide() widget.hide()
@ -879,14 +876,6 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
term.grab_focus() term.grab_focus()
return(False) return(False)
def hide_titlebar(self):
"""Hide the titlebar"""
self.titlebar.hide()
def show_titlebar(self):
"""Show the titlebar"""
self.titlebar.show()
def get_zoom_data(self): def get_zoom_data(self):
"""Return a dict of information for Window""" """Return a dict of information for Window"""
data = {} data = {}

View File

@ -125,13 +125,6 @@ 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)
item = gtk.CheckMenuItem(_('Show _titlebar'))
item.set_active(terminal.titlebar.get_property('visible'))
item.connect('toggled', lambda x: terminal.do_title_toggle())
if terminal.group:
item.set_sensitive(False)
menu.append(item)
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)