From 3cb06726eba245f152bd6522a90543e978aacaef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 25 Mar 2008 12:37:35 +0100 Subject: [PATCH] Try to not display close button from window manager on wizard dialog --- tryton/wizard/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tryton/wizard/main.py b/tryton/wizard/main.py index c796e9e4ab..317b3114d3 100644 --- a/tryton/wizard/main.py +++ b/tryton/wizard/main.py @@ -14,8 +14,9 @@ class Dialog(object): def __init__(self, arch, fields, state, obj_name, parent=None): self.states = [] default = -1 - self.dia = gtk.Dialog('Tryton', parent, + self.dia = gtk.Dialog(_('Tryton - Wizard'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) + self.dia.set_deletable(False) for i in state: but = gtk.Button(i[1]) but.show() @@ -48,7 +49,7 @@ class Dialog(object): self.screen.widget.show() self.dia.vbox.pack_start(self.screen.widget) - self.dia.set_title(self.screen.current_view.title) + self.dia.set_title(self.dia.get_title() + ' - ' + self.screen.current_view.title) self.dia.show() def run(self, datas=None):