Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tryton for openSUSE:Factory checked in at 2023-11-13 22:21:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tryton (Old) and /work/SRC/openSUSE:Factory/.tryton.new.17445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tryton" Mon Nov 13 22:21:19 2023 rev:18 rq:1125403 version:6.0.30 Changes: -------- --- /work/SRC/openSUSE:Factory/tryton/tryton.changes 2023-10-10 20:58:34.378324227 +0200 +++ /work/SRC/openSUSE:Factory/.tryton.new.17445/tryton.changes 2023-11-13 22:24:56.652501257 +0100 @@ -1,0 +2,5 @@ +Sat Nov 4 10:13:37 UTC 2023 - Axel Braun <axel.br...@gmx.de> + +- Version 6.0.30 - Bugfix Release + +------------------------------------------------------------------- Old: ---- tryton-6.0.29.tar.gz tryton-6.0.29.tar.gz.asc New: ---- tryton-6.0.30.tar.gz tryton-6.0.30.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tryton.spec ++++++ --- /var/tmp/diff_new_pack.aT9kxz/_old 2023-11-13 22:24:57.384528210 +0100 +++ /var/tmp/diff_new_pack.aT9kxz/_new 2023-11-13 22:24:57.384528210 +0100 @@ -19,7 +19,7 @@ %define majorver 6.0 Name: tryton -Version: %{majorver}.29 +Version: %{majorver}.30 Release: 0 Summary: The client of the Tryton application platform License: GPL-3.0-or-later ++++++ tryton-6.0.29.tar.gz -> tryton-6.0.30.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/CHANGELOG new/tryton-6.0.30/CHANGELOG --- old/tryton-6.0.29/CHANGELOG 2023-10-05 00:01:30.000000000 +0200 +++ new/tryton-6.0.30/CHANGELOG 2023-11-03 17:51:06.000000000 +0100 @@ -1,4 +1,9 @@ +Version 6.0.30 - 2023-11-03 +--------------------------- +* Bug fixes (see mercurial logs for details) + + Version 6.0.29 - 2023-10-04 --------------------------- * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/PKG-INFO new/tryton-6.0.30/PKG-INFO --- old/tryton-6.0.29/PKG-INFO 2023-10-05 00:01:34.579918100 +0200 +++ new/tryton-6.0.30/PKG-INFO 2023-11-03 17:51:09.245874200 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tryton -Version: 6.0.29 +Version: 6.0.30 Summary: Tryton desktop client Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ @@ -47,8 +47,12 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Office/Business Requires-Python: >=3.6 -Provides-Extra: calendar License-File: LICENSE +Requires-Dist: pycairo +Requires-Dist: python-dateutil +Requires-Dist: PyGObject>=3.19 +Provides-Extra: calendar +Requires-Dist: GooCalendar>=0.7; extra == "calendar" tryton ====== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/tryton/__init__.py new/tryton-6.0.30/tryton/__init__.py --- old/tryton-6.0.29/tryton/__init__.py 2023-08-01 21:41:05.000000000 +0200 +++ new/tryton-6.0.30/tryton/__init__.py 2023-10-05 00:01:45.000000000 +0200 @@ -1,6 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -__version__ = "6.0.29" +__version__ = "6.0.30" import gi import locale diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/tryton/common/__init__.py new/tryton-6.0.30/tryton/common/__init__.py --- old/tryton-6.0.29/tryton/common/__init__.py 2023-05-17 23:03:30.000000000 +0200 +++ new/tryton-6.0.30/tryton/common/__init__.py 2023-10-18 16:20:58.000000000 +0200 @@ -9,7 +9,8 @@ RPCProgress, RPCExecute, RPCContextReload, Tooltips, COLOR_SCHEMES, filter_domain, timezoned_date, untimezoned_date, humanize, get_hostname, get_port, resize_pixbuf, data2pixbuf, apply_label_attributes, ellipsize, - get_align, date_format, idle_add, check_version, TRYTON_ICON, setup_window) + get_align, date_format, idle_add, check_version, TRYTON_ICON, setup_window, + get_gdk_backend) from .domain_inversion import ( domain_inversion, eval_domain, localize_domain, merge, inverse_leaf, filter_leaf, prepare_reference_domain, extract_reference_models, concat, @@ -30,4 +31,4 @@ localize_domain, merge, inverse_leaf, filter_leaf, prepare_reference_domain, extract_reference_models, concat, simplify, unique_value, EvalEnvironment, timedelta, check_version, TRYTON_ICON, - setup_window] + setup_window, get_gdk_backend] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/tryton/common/common.py new/tryton-6.0.30/tryton/common/common.py --- old/tryton-6.0.29/tryton/common/common.py 2023-05-17 23:03:30.000000000 +0200 +++ new/tryton-6.0.30/tryton/common/common.py 2023-10-18 16:20:58.000000000 +0200 @@ -1339,3 +1339,17 @@ def setup_window(window): if sys.platform == 'darwin': window.set_mnemonic_modifier(Gdk.ModifierType.CONTROL_MASK) + + +def get_gdk_backend(): + if sys.platform == 'darwin': + return 'macos' + elif sys.platform == 'win32': + return 'win32' + else: + dm = Gdk.DisplayManager.get() + default = dm.props.default_display + dm_class_name = default.__class__.__name__.lower() + if 'wayland' in dm_class_name: + return 'wayland' + return 'x11' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/tryton/common/number_entry.py new/tryton-6.0.30/tryton/common/number_entry.py --- old/tryton-6.0.29/tryton/common/number_entry.py 2023-05-17 23:03:30.000000000 +0200 +++ new/tryton-6.0.30/tryton/common/number_entry.py 2023-11-01 18:07:14.000000000 +0100 @@ -2,6 +2,7 @@ # this repository contains the full copyright notices and license terms. import gettext import locale +from decimal import Decimal, InvalidOperation from gi.repository import Gdk, GObject, Gtk @@ -52,11 +53,12 @@ value = None if text not in ['-', self.__decimal_point]: try: - value = locale.atof(text) - except ValueError: + value = Decimal(locale.atof(text)) + except (ValueError, InvalidOperation): return position if (value and self.__digits is not None - and round(value, self.__digits) != value): + and (round(value, self.__digits) != value + or value.as_tuple().exponent < -self.__digits)): return position buffer_.insert_text(position, new_text, len(new_text)) return position + len(new_text) Binary files old/tryton-6.0.29/tryton/data/locale/bg/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/bg/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/ca/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/ca/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/cs/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/cs/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/de/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/de/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/es/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/es/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/es_419/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/et/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/et/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/fa/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/fa/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/fi/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/fi/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/fr/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/fr/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/hu/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/hu/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/id/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/id/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/it/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/it/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/ja_JP/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/lo/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/lo/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/lt/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/lt/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/nl/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/nl/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/pl/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/pl/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/pt/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/pt/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/ro/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/ro/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/ru/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/ru/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/sl/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/sl/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/tr/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/tr/LC_MESSAGES/tryton.mo differ Binary files old/tryton-6.0.29/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo and new/tryton-6.0.30/tryton/data/locale/zh_CN/LC_MESSAGES/tryton.mo differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/tryton/gui/window/view_form/view/list_gtk/widget.py new/tryton-6.0.30/tryton/gui/window/view_form/view/list_gtk/widget.py --- old/tryton-6.0.29/tryton/gui/window/view_form/view/list_gtk/widget.py 2023-05-17 23:03:30.000000000 +0200 +++ new/tryton-6.0.30/tryton/gui/window/view_form/view/list_gtk/widget.py 2023-10-18 16:20:58.000000000 +0200 @@ -14,6 +14,7 @@ from tryton.gui.window.view_form.screen import Screen from tryton.common import file_selection, file_open, file_write import tryton.common as common +from tryton.common import get_gdk_backend from tryton.common.cellrendererbutton import CellRendererButton from tryton.common.cellrenderertext import CellRendererText, \ CellRendererTextCompletion @@ -1076,10 +1077,12 @@ def editing_started(self, cell, editable, path): super(Selection, self).editing_started(cell, editable, path) record, field = self._get_record_field_from_path(path) - # Combobox does not emit remove-widget when focus is changed - self.editable.connect( - 'editing-done', - lambda *a: self.editable.emit('remove-widget')) + gdk_backend = get_gdk_backend() + if gdk_backend == 'x11': + # Combobox does not emit remove-widget when focus is changed + self.editable.connect( + 'editing-done', + lambda *a: self.editable.emit('remove-widget')) selection_shortcuts(editable) @@ -1087,6 +1090,14 @@ return self.set_value(editable, record, field) editable.get_child().connect('activate', set_value) editable.get_child().connect('focus-out-event', set_value) + + if gdk_backend != 'x11': + # For non X11 backend we can rely the focus-out-event to be sent + # correctly + def remove_entry(entry, event): + editable.emit('editing-done') + editable.emit('remove-widget') + editable.get_child().connect('focus-out-event', remove_entry) editable.connect('changed', set_value) self.update_selection(record, field) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tryton-6.0.29/tryton.egg-info/PKG-INFO new/tryton-6.0.30/tryton.egg-info/PKG-INFO --- old/tryton-6.0.29/tryton.egg-info/PKG-INFO 2023-10-05 00:01:33.000000000 +0200 +++ new/tryton-6.0.30/tryton.egg-info/PKG-INFO 2023-11-03 17:51:08.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: tryton -Version: 6.0.29 +Version: 6.0.30 Summary: Tryton desktop client Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ @@ -47,8 +47,12 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Office/Business Requires-Python: >=3.6 -Provides-Extra: calendar License-File: LICENSE +Requires-Dist: pycairo +Requires-Dist: python-dateutil +Requires-Dist: PyGObject>=3.19 +Provides-Extra: calendar +Requires-Dist: GooCalendar>=0.7; extra == "calendar" tryton ======