Reviewers: ,
Please review this at http://codereview.tryton.org/381001/
Affected files:
M tryton/gui/window/tabcontent.py
M tryton/gui/window/view_form/view/form_gtk/parser.py
M tryton/gui/window/wizard.py
Index: tryton/gui/window/tabcontent.py
===================================================================
--- a/tryton/gui/window/tabcontent.py
+++ b/tryton/gui/window/tabcontent.py
@@ -44,9 +44,8 @@
def make_title_bar(self):
title = gtk.Label()
- title.set_use_markup(True)
- title.modify_font(pango.FontDescription("14"))
- title.set_label('<b>' + self.name + '</b>')
+ title.modify_font(pango.FontDescription("bold 14"))
+ title.set_label(self.name)
title.set_padding(10, 4)
title.set_alignment(0.0, 0.5)
title.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#000000"))
Index: tryton/gui/window/view_form/view/form_gtk/parser.py
===================================================================
--- a/tryton/gui/window/view_form/view/form_gtk/parser.py
+++ b/tryton/gui/window/view_form/view/form_gtk/parser.py
@@ -256,7 +256,6 @@
button_list.append(vbox)
if text:
label = gtk.Label(text)
- label.set_use_markup(True)
label.set_alignment(float(attrs.get('xalign', 0.0)),
0.5)
vbox.pack_start(label)
vbox.pack_start(gtk.HSeparator())
@@ -297,7 +296,6 @@
continue
label = Label(text, attrs)
button_list.append(label)
- label.set_use_markup(True)
if CONFIG['client.modepda']:
attrs['xalign'] = 0.0
label.set_alignment(float(attrs.get('xalign', 1.0)),
Index: tryton/gui/window/wizard.py
===================================================================
--- a/tryton/gui/window/wizard.py
+++ b/tryton/gui/window/wizard.py
@@ -172,9 +172,8 @@
self._record_modified)
title = gtk.Label()
- title.set_use_markup(True)
- title.modify_font(pango.FontDescription("14"))
- title.set_label('<b>' + self.screen.current_view.title + '</b>')
+ title.modify_font(pango.FontDescription("bold 14"))
+ title.set_label(self.screen.current_view.title)
title.set_padding(20, 4)
title.set_alignment(0.0, 0.5)
title.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#000000"))
--
[email protected] mailing list