Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xapp for openSUSE:Factory 
checked in at 2021-06-22 20:44:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xapp (Old)
 and      /work/SRC/openSUSE:Factory/.python-xapp.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xapp"

Tue Jun 22 20:44:54 2021 rev:8 rq:898049 version:2.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xapp/python-xapp.changes  2020-12-13 
17:30:34.952400830 +0100
+++ /work/SRC/openSUSE:Factory/.python-xapp.new.2625/python-xapp.changes        
2021-06-22 20:44:56.366823123 +0200
@@ -1,0 +2,7 @@
+Sun May 30 17:36:01 UTC 2021 - andy great <[email protected]>
+
+- Update to version 2.2.0.
+  * SettingsWidgets.py: Restrict Range increments to the 'step' amount.
+  * Font chooser widget: add option to specify the level of font selection.
+
+-------------------------------------------------------------------

Old:
----
  python3-xapp-2.0.2.tar.gz

New:
----
  python3-xapp-2.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-xapp.spec ++++++
--- /var/tmp/diff_new_pack.41lh48/_old  2021-06-22 20:44:56.854823660 +0200
+++ /var/tmp/diff_new_pack.41lh48/_new  2021-06-22 20:44:56.854823660 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xapp
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 %define _name python3-xapp
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-xapp
-Version:        2.0.2
+Version:        2.2.0
 Release:        0
 Summary:        Python XApp library
 License:        GPL-2.0-or-later
@@ -31,6 +31,7 @@
 Patch0:         python-xapp-xdgsu.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-psutil
 Requires:       xdg-utils
@@ -51,6 +52,7 @@
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
 %license COPYING

++++++ python3-xapp-2.0.2.tar.gz -> python3-xapp-2.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python3-xapp-2.0.2/.gitignore 
new/python3-xapp-2.2.0/.gitignore
--- old/python3-xapp-2.0.2/.gitignore   1970-01-01 01:00:00.000000000 +0100
+++ new/python3-xapp-2.2.0/.gitignore   2021-05-27 10:49:57.000000000 +0200
@@ -0,0 +1,8 @@
+debian/files
+debian/.debhelper/
+debian/*.log
+debian/*.debhelper
+debian/*.substvars
+debian/python3-xapp/
+.pybuild/
+python_xapp.egg-info/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python3-xapp-2.0.2/debian/changelog 
new/python3-xapp-2.2.0/debian/changelog
--- old/python3-xapp-2.0.2/debian/changelog     2020-11-25 11:55:19.000000000 
+0100
+++ new/python3-xapp-2.2.0/debian/changelog     2021-05-27 10:49:57.000000000 
+0200
@@ -1,3 +1,14 @@
+python3-xapp (2.2.0) uma; urgency=medium
+
+  [ Michael Webster ]
+  * SettingsWidgets.py: Restrict Range increments to the 'step' amount.
+
+  [ Stephen Collins ]
+  * add .gitignore (#17)
+  * Font chooser widget: add option to specify the level of font selection. 
(#16)
+
+ -- Clement Lefebvre <[email protected]>  Thu, 27 May 2021 09:48:55 +0100
+
 python3-xapp (2.0.2) ulyssa; urgency=medium
 
   [ Stephen Collins ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python3-xapp-2.0.2/setup.py 
new/python3-xapp-2.2.0/setup.py
--- old/python3-xapp-2.0.2/setup.py     2020-11-25 11:55:19.000000000 +0100
+++ new/python3-xapp-2.2.0/setup.py     2021-05-27 10:49:57.000000000 +0200
@@ -3,7 +3,7 @@
 from setuptools import setup
 
 setup( name = "python-xapp",
-       version = "2.0.2",
+       version = "2.2.0",
        description = "Python Xapp Library",
        maintainer = "Linux Mint",
        maintainer_email = "[email protected]",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python3-xapp-2.0.2/xapp/SettingsWidgets.py 
new/python3-xapp-2.2.0/xapp/SettingsWidgets.py
--- old/python3-xapp-2.0.2/xapp/SettingsWidgets.py      2020-11-25 
11:55:19.000000000 +0100
+++ new/python3-xapp-2.2.0/xapp/SettingsWidgets.py      2021-05-27 
10:49:57.000000000 +0200
@@ -429,7 +429,7 @@
     bind_prop = "font-name"
     bind_dir = Gio.SettingsBindFlags.DEFAULT
 
-    def __init__(self, label, size_group=None, dep_key=None, tooltip=""):
+    def __init__(self, label, level=(Gtk.FontChooserLevel.STYLE | 
Gtk.FontChooserLevel.SIZE), size_group=None, dep_key=None, tooltip=""):
         super(FontButton, self).__init__(dep_key=dep_key)
 
         self.label = SettingsLabel(label)
@@ -445,6 +445,27 @@
         if size_group:
             self.add_to_size_group(size_group)
 
+        if not (level & Gtk.FontChooserLevel.STYLE):
+            # the level mechanism is broken in gtk - choosing a level that 
doesn't include styles (italics, bold, etc)
+            # results in a list that only has one variant per family, but in 
many cases the selected font is bold or
+            # italicized (but not consistenly), which is not only confusing, 
but kind of defeats the purpose. To work
+            # around that, we supply our own filter function that removes the 
variants correctly. If it ever gets fixed
+            # in gtk, this parsing function can be removed and the level 
argument added directly to the font button.
+            def filter_func(fam, face):
+                face_text = face.get_face_name().lower()
+                for keyword in ['bold', 'italic', 'oblique']:
+                    if keyword in face_text:
+                        return False
+
+                return True
+
+            self.content_widget.set_filter_func(filter_func)
+
+            # add the style level to avoid the issues above - it's because 
we're already filtering them out manually
+            level |= Gtk.FontChooserLevel.STYLE
+
+        self.content_widget.set_level(level)
+
 class Range(SettingsWidget):
     bind_prop = "value"
     bind_dir = Gio.SettingsBindFlags.GET | Gio.SettingsBindFlags.NO_SENSITIVITY
@@ -527,8 +548,17 @@
         self.content_widget.connect("scroll-event", self.on_scroll_event)
         self.content_widget.connect("value-changed", self.apply_later)
 
+        if (not log) and self.step % 1 == 0:
+            self.content_widget.connect("change-value", 
self.round_value_to_step)
+
         self.set_tooltip_text(tooltip)
 
+    def round_value_to_step(self, widget, scroll, value, data=None):
+        if value % self.step != 0:
+            widget.set_value(round(value / self.step) * self.step)
+            return True
+        return False
+
     def apply_later(self, *args):
         def apply(self):
             if self.log:

Reply via email to