diff --git a/tryton/common/common.py b/tryton/common/common.py index 6e93f6fff4..c1e9a10233 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -71,11 +71,12 @@ def refresh_langlist(lang_widget, host, port): def request_server(server_widget, parent): result = False dialog = gtk.Dialog( - title = _('Tryton Connection'), - parent = parent, - flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | - gtk.WIN_POS_CENTER_ON_PARENT | + title= _('Tryton Connection'), + parent=parent, + flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | + gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG,) + dialog.set_has_separator(True) vbox = gtk.VBox() table = gtk.Table(2, 2, False) table.set_border_width(12) @@ -305,6 +306,7 @@ def error(title, parent, details): dialog = gtk.Dialog(_('Error'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) dialog.set_icon(TRYTON_ICON) + dialog.set_has_separator(True) but_send = gtk.Button(_('Report Bug')) dialog.add_action_widget(but_send, gtk.RESPONSE_OK) @@ -380,6 +382,7 @@ def send_bugtracker(msg, parent): gtk.STOCK_OK, gtk.RESPONSE_OK)) win.set_icon(TRYTON_ICON) win.set_default_response(gtk.RESPONSE_OK) + win.set_has_separator(True) hbox = gtk.HBox() image = gtk.Image() @@ -474,6 +477,7 @@ def message(msg, parent, msg_type=gtk.MESSAGE_INFO): msg_type, gtk.BUTTONS_OK, msg) dialog.set_icon(TRYTON_ICON) + dialog.set_has_separator(True) dialog.run() parent.present() dialog.destroy() @@ -503,6 +507,7 @@ def sur(msg, parent): | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG) dialog.set_icon(TRYTON_ICON) + dialog.set_has_separator(True) dialog.set_size_request(350, 150) hbox = gtk.HBox() image = gtk.Image() @@ -530,6 +535,7 @@ def sur_3b(msg, parent): | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT | gtk.gdk.WINDOW_TYPE_HINT_DIALOG) dialog.set_icon(TRYTON_ICON) + dialog.set_has_separator(True) dialog.set_size_request(350, 150) hbox = gtk.HBox() image = gtk.Image() @@ -567,6 +573,7 @@ def ask(question, parent, visibility=True): (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) win.set_icon(TRYTON_ICON) + win.set_has_separator(True) win.set_default_response(gtk.RESPONSE_OK) hbox = gtk.HBox() diff --git a/tryton/gui/window/dbcreate.py b/tryton/gui/window/dbcreate.py index 544557bd4b..1c77f3970c 100644 --- a/tryton/gui/window/dbcreate.py +++ b/tryton/gui/window/dbcreate.py @@ -140,7 +140,7 @@ class DBCreate(object): flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT | gtk.WIN_POS_CENTER_ON_PARENT, ) - self.dialog.set_has_separator(False) + self.dialog.set_has_separator(True) self.dialog.set_size_request(700, 301) self.dialog.set_icon(TRYTON_ICON) # This event is needed for controlling the button_create diff --git a/tryton/gui/window/dblogin.py b/tryton/gui/window/dblogin.py index ce3c3448c5..906e8fb4c9 100644 --- a/tryton/gui/window/dblogin.py +++ b/tryton/gui/window/dblogin.py @@ -16,7 +16,7 @@ class DBLogin(object): flags=gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT) self.dialog.set_size_request(500, 301) self.dialog.set_position(gtk.WIN_POS_CENTER_ON_PARENT) - self.dialog.set_has_separator(False) + self.dialog.set_has_separator(True) self.dialog.set_icon(TRYTON_ICON) tooltips = gtk.Tooltips() diff --git a/tryton/gui/window/filesactions.py b/tryton/gui/window/filesactions.py index 189c20fa1e..ec607ee047 100644 --- a/tryton/gui/window/filesactions.py +++ b/tryton/gui/window/filesactions.py @@ -18,6 +18,7 @@ class FilesActions(object): self.parent = parent self.win.set_default_response(gtk.RESPONSE_OK) self.win.set_icon(TRYTON_ICON) + self.win.set_has_separator(True) self.win.set_transient_for(parent) self.win.vbox.pack_start(gtk.Label( _('Edit files actions')), expand=False, fill=True) diff --git a/tryton/gui/window/form.py b/tryton/gui/window/form.py index 65bbaf40b0..1e9a7e0465 100644 --- a/tryton/gui/window/form.py +++ b/tryton/gui/window/form.py @@ -161,6 +161,7 @@ class Form(SignalEvent): (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) win.set_icon(TRYTON_ICON) + win.set_has_separator(True) win.set_default_response(gtk.RESPONSE_OK) table = gtk.Table(2, 2) diff --git a/tryton/gui/window/preference.py b/tryton/gui/window/preference.py index 3103e421a1..361574fbfb 100644 --- a/tryton/gui/window/preference.py +++ b/tryton/gui/window/preference.py @@ -22,9 +22,9 @@ class Preference(object): gtk.STOCK_OK, gtk.RESPONSE_OK)) self.win.set_default_response(gtk.RESPONSE_OK) + self.win.set_has_separator(False) self.win.vbox.pack_start(gtk.Label(_('Edit User Preferences')), expand=False, fill=True) - self.win.vbox.pack_start(gtk.HSeparator()) self.win.set_icon(TRYTON_ICON) self.win.set_transient_for(parent) self.parent = parent diff --git a/tryton/gui/window/tips.py b/tryton/gui/window/tips.py index 4a73601cf1..7ea2b4db4d 100644 --- a/tryton/gui/window/tips.py +++ b/tryton/gui/window/tips.py @@ -13,6 +13,7 @@ class Tips(object): self.win = gtk.Dialog(_('Tips'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) self.win.set_icon(TRYTON_ICON) + self.win.set_has_separator(True) self.win.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) diff --git a/tryton/gui/window/view_form/view/form_gtk/calendar.py b/tryton/gui/window/view_form/view/form_gtk/calendar.py index 5aae179ddb..dba66d5044 100644 --- a/tryton/gui/window/view_form/view/form_gtk/calendar.py +++ b/tryton/gui/window/view_form/view/form_gtk/calendar.py @@ -105,6 +105,7 @@ class Calendar(WidgetInterface): gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) + win.set_has_separator(True) win.set_icon(TRYTON_ICON) cal = gtk.Calendar() @@ -254,6 +255,8 @@ class DateTime(WidgetInterface): gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) + win.set_has_separator(True) + win.set_icon(TRYTON_ICON) hbox = gtk.HBox() hbox.pack_start(gtk.Label(_('Hour:')), expand=False, fill=False) diff --git a/tryton/gui/window/view_form/view/form_gtk/many2one.py b/tryton/gui/window/view_form/view/form_gtk/many2one.py index ce64ff802a..f74d7c0457 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -32,6 +32,7 @@ class Dialog(object): self.dia.set_property('default-height', 500) self.dia.set_position(gtk.WIN_POS_CENTER_ON_PARENT) self.dia.set_icon(TRYTON_ICON) + self.dia.set_has_separator(False) self.accel_group = gtk.AccelGroup() self.dia.add_accel_group(self.accel_group) diff --git a/tryton/gui/window/view_form/view/form_gtk/one2many.py b/tryton/gui/window/view_form/view/form_gtk/one2many.py index 11bb8b807a..fa362bbae5 100644 --- a/tryton/gui/window/view_form/view/form_gtk/one2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py @@ -175,6 +175,7 @@ class Dialog(object): self.dia.set_property('default-height', 500) self.dia.set_position(gtk.WIN_POS_CENTER_ON_PARENT) self.dia.set_icon(TRYTON_ICON) + self.dia.set_has_separator(False) self.accel_group = gtk.AccelGroup() self.dia.add_accel_group(self.accel_group) diff --git a/tryton/gui/window/view_form/view/form_gtk/parser.py b/tryton/gui/window/view_form/view/form_gtk/parser.py index affcf5002a..d896f33e64 100644 --- a/tryton/gui/window/view_form/view/form_gtk/parser.py +++ b/tryton/gui/window/view_form/view/form_gtk/parser.py @@ -715,6 +715,7 @@ class ParserForm(ParserInterface): win = gtk.Dialog(_('Add Translation'), self.window, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) + win.set_has_separator(True) win.vbox.set_spacing(5) win.set_property('default-width', 600) win.set_property('default-height', 400) diff --git a/tryton/gui/window/view_form/view/graph_gtk/parser.py b/tryton/gui/window/view_form/view/graph_gtk/parser.py index 4b90c1e86a..96915667b9 100644 --- a/tryton/gui/window/view_form/view/graph_gtk/parser.py +++ b/tryton/gui/window/view_form/view/graph_gtk/parser.py @@ -22,6 +22,7 @@ def save(widget, graph, window): (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) dia.set_icon(TRYTON_ICON) + dia.set_has_separator(True) dia.set_default_response(gtk.RESPONSE_OK) dia.vbox.set_spacing(5) diff --git a/tryton/gui/window/view_form/widget_search/calendar.py b/tryton/gui/window/view_form/widget_search/calendar.py index d4767a6c31..71a64c30b9 100644 --- a/tryton/gui/window/view_form/widget_search/calendar.py +++ b/tryton/gui/window/view_form/widget_search/calendar.py @@ -5,7 +5,7 @@ import gtk import gettext import locale from interface import Interface -from tryton.common import DT_FORMAT +from tryton.common import DT_FORMAT, TRYTON_ICON from tryton.common import date_widget from tryton.translate import date_format import mx.DateTime @@ -156,6 +156,8 @@ class Calendar(Interface): gtk.DIALOG_MODAL|gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) + win.set_has_separator(True) + win.set_icon(TRYTON_ICON) cal = gtk.Calendar() cal.display_options(gtk.CALENDAR_SHOW_HEADING | \ diff --git a/tryton/gui/window/win_search.py b/tryton/gui/window/win_search.py index 12bef42399..0233c1aac7 100644 --- a/tryton/gui/window/win_search.py +++ b/tryton/gui/window/win_search.py @@ -28,6 +28,7 @@ class WinSearch(object): gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) self.win.set_icon(TRYTON_ICON) + self.win.set_has_separator(True) self.win.set_default_response(gtk.RESPONSE_APPLY) hbox = gtk.HBox() hbox.show()