diff --git a/share/tryton/tryton.glade b/share/tryton/tryton.glade
index 0c1ebaf201..b4afc5a216 100644
--- a/share/tryton/tryton.glade
+++ b/share/tryton/tryton.glade
@@ -4504,85 +4504,6 @@ Latin1
-
- 450
- 250
- Tryton Message
- GTK_WIN_POS_CENTER_ON_PARENT
- GDK_WINDOW_TYPE_HINT_DIALOG
-
-
- True
-
-
- True
-
-
- True
- msg_title
-
-
- False
- False
-
-
-
-
- True
-
-
- False
- False
- 3
- 1
-
-
-
-
- True
- True
- GTK_POLICY_AUTOMATIC
- GTK_POLICY_AUTOMATIC
- GTK_SHADOW_IN
-
-
- True
- True
-
-
-
-
- 2
-
-
-
-
- 2
-
-
-
-
- True
- GTK_BUTTONBOX_END
-
-
- True
- True
- True
- gtk-close
- True
- -7
-
-
-
-
- False
- GTK_PACK_END
-
-
-
-
-
Concurrency exception
87
diff --git a/tryton/common/common.py b/tryton/common/common.py
index cf8c6ed85d..0aa44745ed 100644
--- a/tryton/common/common.py
+++ b/tryton/common/common.py
@@ -482,26 +482,6 @@ def message(msg, parent, msg_type=gtk.MESSAGE_INFO):
def to_xml(string):
return string.replace('&','&').replace('<','<').replace('>','>')
-def message_box(title, msg, parent):
- dia = glade.XML(GLADE, "dia_message_box",
- gettext.textdomain())
- win = dia.get_widget('dia_message_box')
- label = dia.get_widget('msg_title')
- label.set_text(title)
-
- buf = dia.get_widget('msg_tv').get_buffer()
- iter_start = buf.get_start_iter()
- buf.insert(iter_start, msg)
-
- win.set_transient_for(parent)
- win.set_icon(TRYTON_ICON)
-
- win.run()
- parent.present()
- win.destroy()
- return True
-
-
def warning(msg, parent, title=''):
dialog = gtk.MessageDialog(parent, gtk.DIALOG_DESTROY_WITH_PARENT,
gtk.MESSAGE_WARNING, gtk.BUTTONS_OK)
diff --git a/tryton/gui/window/win_import.py b/tryton/gui/window/win_import.py
index 9ae4e078c4..5e582cc44f 100644
--- a/tryton/gui/window/win_import.py
+++ b/tryton/gui/window/win_import.py
@@ -214,8 +214,8 @@ class WinImport(object):
buf = ''
for key, val in res[1].items():
buf += ('\t%s: %s\n' % (str(key), str(val)))
- common.message_box(_('Importation Error!'),
+ common.error(_('Importation Error!'), self.parent,
_('Error trying to import this record:\n' \
'%s\nError Message:\n%s\n\n%s') % \
- (buf, res[2], res[3]), self.parent)
+ (buf, res[2], res[3]))
return True