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()