From 4201524b8bc5f1ded1c8fec904a7f61bc19e87fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Oct 2014 20:57:50 +0200 Subject: [PATCH] Replace img_{width,height} by width and height attributes issue4266 review10561002 --- CHANGELOG | 2 ++ tryton/gui/window/view_form/view/form_gtk/image.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 26291ea000..8c5268a8d7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Replace img_{width,height} by width and height attributes + Version 3.4.0 - 2014-10-20 * Bug fixes (see mercurial logs for details) * Add DnD on export window diff --git a/tryton/gui/window/view_form/view/form_gtk/image.py b/tryton/gui/window/view_form/view/form_gtk/image.py index 0410f2f629..2afd40a55b 100644 --- a/tryton/gui/window/view_form/view/form_gtk/image.py +++ b/tryton/gui/window/view_form/view/form_gtk/image.py @@ -18,8 +18,8 @@ class Image(Widget): super(Image, self).__init__(view, attrs) self.filename = attrs.get('filename') - self.height = int(attrs.get('img_height', 100)) - self.width = int(attrs.get('img_width', 300)) + self.height = int(attrs.get('height', 100)) + self.width = int(attrs.get('width', 300)) self.widget = gtk.VBox(spacing=3) self.event = gtk.EventBox()