Remove "Close" toolbar button because it confuses users

This commit is contained in:
Cédric Krier committed 2008-11-28 11:30:13 +01:00
1 parent b6db160f77
commit f5bfdeeecc
1 file changed
-9
-9
View File
@@ -857,15 +857,6 @@ class Main(object):
self.tooltips.set_tip(toolbutton_attach, _('Add an attachment to the record'))
self.buttons['but_attach'] = toolbutton_attach
self.toolbar.insert(gtk.SeparatorToolItem(), -1)
toolbutton_close = gtk.ToolButton('tryton-close')
toolbutton_close.set_label(_('Close'))
self.toolbar.insert(toolbutton_close, -1)
toolbutton_close.connect('clicked', self._sig_child_call, 'but_close')
self.tooltips.set_tip(toolbutton_close, _('Close the tab'))
self.buttons['but_close'] = toolbutton_close
@staticmethod
def get_main():
return _MAIN[0]