Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-GooCalendar for openSUSE:Factory checked in at 2021-08-16 10:11:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-GooCalendar (Old) and /work/SRC/openSUSE:Factory/.python-GooCalendar.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-GooCalendar" Mon Aug 16 10:11:39 2021 rev:9 rq:912031 version:0.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-GooCalendar/python-GooCalendar.changes 2021-03-10 08:58:55.614992509 +0100 +++ /work/SRC/openSUSE:Factory/.python-GooCalendar.new.1899/python-GooCalendar.changes 2021-08-16 10:17:46.918642749 +0200 @@ -1,0 +2,8 @@ +Fri Aug 13 17:28:32 UTC 2021 - Axel Braun <[email protected]> + +- Version 0.7.2 + * Add support GooCanvas 3.0 + * Add selected text color property + * Remove lighter background on event + +------------------------------------------------------------------- Old: ---- GooCalendar-0.7.1.tar.gz New: ---- GooCalendar-0.7.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-GooCalendar.spec ++++++ --- /var/tmp/diff_new_pack.ZYyZb3/_old 2021-08-16 10:17:47.350642056 +0200 +++ /var/tmp/diff_new_pack.ZYyZb3/_new 2021-08-16 10:17:47.354642050 +0200 @@ -2,7 +2,7 @@ # spec file for package python-GooCalendar # # Copyright (c) 2021 SUSE LLC -# Copyright (c) 2016-2020 Dr. Axel Braun +# Copyright (c) 2016-2021 Dr. Axel Braun # # 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 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-GooCalendar -Version: 0.7.1 +Version: 0.7.2 Release: 0 Summary: A calendar widget for GTK using PyGoocanvas License: GPL-2.0-only ++++++ GooCalendar-0.7.1.tar.gz -> GooCalendar-0.7.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/.hgtags new/GooCalendar-0.7.2/.hgtags --- old/GooCalendar-0.7.1/.hgtags 2020-04-18 16:48:28.000000000 +0200 +++ new/GooCalendar-0.7.2/.hgtags 2021-03-28 12:02:21.000000000 +0200 @@ -6,3 +6,4 @@ 5a820de88fb33d1a8648d9f0862c275bd9d719bc 0.6 2863da4bcf0fccf2ca705ff7ff40d8611bf2d534 0.7.0 a36bcc9d656432bdf3285bfd2b68471cd058f56c 0.7.1 +4019f2c37162f7152dcdf0699859ad2a181d17f3 0.7.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/CHANGELOG new/GooCalendar-0.7.2/CHANGELOG --- old/GooCalendar-0.7.1/CHANGELOG 2020-04-18 16:47:27.000000000 +0200 +++ new/GooCalendar-0.7.2/CHANGELOG 2021-03-28 12:02:04.000000000 +0200 @@ -1,3 +1,8 @@ +Version 0.7.2 - 2021-03-28 +* Add support GooCanvas 3.0 +* Add selected text color property +* Remove lighter background on event + Version 0.7.1 - 2020-04-18 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/GooCalendar.egg-info/PKG-INFO new/GooCalendar-0.7.2/GooCalendar.egg-info/PKG-INFO --- old/GooCalendar-0.7.1/GooCalendar.egg-info/PKG-INFO 2020-04-18 16:49:03.000000000 +0200 +++ new/GooCalendar-0.7.2/GooCalendar.egg-info/PKG-INFO 2021-03-28 12:03:03.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: GooCalendar -Version: 0.7.1 +Version: 0.7.2 Summary: A calendar widget for GTK using PyGoocanvas Home-page: https://pypi.python.org/pypi/goocalendar Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/PKG-INFO new/GooCalendar-0.7.2/PKG-INFO --- old/GooCalendar-0.7.1/PKG-INFO 2020-04-18 16:49:04.000000000 +0200 +++ new/GooCalendar-0.7.2/PKG-INFO 2021-03-28 12:03:03.785156200 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: GooCalendar -Version: 0.7.1 +Version: 0.7.2 Summary: A calendar widget for GTK using PyGoocanvas Home-page: https://pypi.python.org/pypi/goocalendar Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/doc/conf.py new/GooCalendar-0.7.2/doc/conf.py --- old/GooCalendar-0.7.1/doc/conf.py 2020-03-01 00:46:04.000000000 +0100 +++ new/GooCalendar-0.7.2/doc/conf.py 2020-04-18 16:50:37.000000000 +0200 @@ -43,7 +43,7 @@ # The short X.Y version. version = '0.7' # The full version, including alpha/beta/rc tags. -release = '0.7.1' +release = '0.7.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/doc/index.rst new/GooCalendar-0.7.2/doc/index.rst --- old/GooCalendar-0.7.1/doc/index.rst 2020-02-05 12:24:43.000000000 +0100 +++ new/GooCalendar-0.7.2/doc/index.rst 2021-03-28 11:12:37.000000000 +0200 @@ -250,6 +250,10 @@ The color of the text. Default: #2E3634 +``selected-text-color`` + + The color of the selection text. Default: #2E3634 + ``inactive-text-color`` The color of the inactive text. Default: #8B8F8E diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/goocalendar/__init__.py new/GooCalendar-0.7.2/goocalendar/__init__.py --- old/GooCalendar-0.7.1/goocalendar/__init__.py 2020-03-01 00:46:58.000000000 +0100 +++ new/GooCalendar-0.7.2/goocalendar/__init__.py 2021-03-28 11:12:37.000000000 +0200 @@ -3,9 +3,12 @@ import gi gi.require_version('Gtk', '3.0') gi.require_version('Gdk', '3.0') -gi.require_version('GooCanvas', '2.0') +try: + gi.require_version('GooCanvas', '3.0') +except ValueError: + gi.require_version('GooCanvas', '2.0') from ._calendar import Calendar # noqa: E402 from ._event import Event, EventStore # noqa: E402 __all__ = ['Calendar', 'EventStore', 'Event'] -__version__ = '0.7.1' +__version__ = '0.7.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GooCalendar-0.7.1/goocalendar/_calendar.py new/GooCalendar-0.7.2/goocalendar/_calendar.py --- old/GooCalendar-0.7.1/goocalendar/_calendar.py 2020-03-11 14:07:59.000000000 +0100 +++ new/GooCalendar-0.7.2/goocalendar/_calendar.py 2021-03-28 11:12:37.000000000 +0200 @@ -3,7 +3,6 @@ import datetime import calendar import math -from operator import add from gi.repository import Gdk, GObject, GooCanvas, Gtk, Pango @@ -17,6 +16,8 @@ __gproperties__ = { 'text-color': (GObject.TYPE_STRING, '#2E3634', "Text Color", "The color of the text", GObject.ParamFlags.READWRITE), + 'selected-text-color': (GObject.TYPE_STRING, '#2E3634', "Text Color", + "Selected color of the text", GObject.ParamFlags.READWRITE), 'inactive-text-color': (GObject.TYPE_STRING, '#8B8F8E', "Inactive Text Color", "The color of the inactive text", GObject.ParamFlags.READWRITE), @@ -43,6 +44,7 @@ settings = Gtk.Settings.get_default() self.__props = { 'text-color': '#2E3634', + 'selected-text-color': '#2E3634', 'inactive-text-color': '#8B8F8E', 'border-color': '#D2D0D2', 'selected-border-color': '#5EC590', @@ -161,9 +163,12 @@ # Swap border colors. new_day = self.days[found] old_border_color = old_day.border_color + old_title_text_color = old_day.title_text_color old_day.full_border = False old_day.border_color = new_day.border_color + old_day.title_text_color = new_day.title_text_color new_day.border_color = old_border_color + new_day.title_text_color = old_title_text_color new_day.full_border = True # Redraw. @@ -294,8 +299,7 @@ box.full_border = True box.border_color = self.props.selected_border_color box.body_color = the_body_color - box.title_text_color = self.props.text_color - box.event_text_color = self.props.text_color + box.title_text_color = self.props.selected_text_color box.set_property( 'visibility', GooCanvas.CanvasItemVisibility.VISIBLE) box.update() @@ -335,8 +339,10 @@ selected = current_date == self.selected_date if selected: the_border_color = self.props.selected_border_color + the_text_color = self.props.selected_text_color else: the_border_color = self.props.border_color + the_text_color = self.props.text_color if current_date == datetime.date.today(): the_body_color = self.props.today_body_color else: @@ -353,8 +359,7 @@ box.full_border = selected box.border_color = the_border_color box.body_color = the_body_color - box.title_text_color = self.props.text_color - box.event_text_color = self.props.text_color + box.title_text_color = the_text_color box.set_property( 'visibility', GooCanvas.CanvasItemVisibility.VISIBLE) box.update() @@ -399,6 +404,7 @@ selected = date == self.selected_date if selected: the_border_color = self.props.selected_border_color + the_text_color = self.props.selected_text_color if date == datetime.date.today(): the_body_color = self.props.today_body_color else: @@ -415,7 +421,6 @@ box.border_color = the_border_color box.body_color = the_body_color box.title_text_color = the_text_color - box.event_text_color = the_text_color box.type = 'month' box.set_property( 'visibility', GooCanvas.CanvasItemVisibility.VISIBLE) @@ -1198,14 +1203,7 @@ self.box.set_property('width', self.width) self.box.set_property('height', self.height) self.box.set_property('stroke_color', the_event_bg_color) - bg_rgba_color = self.box.get_property('stroke_color_rgba') - bg_colors = list(util.rgba_to_colors(bg_rgba_color)) - # We make background color 1/4 brighter (+64 over 255) - bg_colors[:3] = list(map(min, - list(map(add, bg_colors[:3], (64,) * 3)), (255,) * 3)) - bg_colors = util.colors_to_rgba(*bg_colors) - self.box.set_property('fill_color_rgba', bg_colors) - + self.box.set_property('fill_color', the_event_bg_color) # Alpha color is set to half of 255, i.e an opacity of 5O percents transparent_color = self.box.get_property('fill_color_rgba') - 128 if self.transparent: @@ -1271,12 +1269,7 @@ self.box.set_property('width', self.width) self.box.set_property('height', self.height) self.box.set_property('stroke_color', the_event_bg_color) - bg_rgba_color = self.box.get_property('stroke_color_rgba') - bg_colors = list(util.rgba_to_colors(bg_rgba_color)) - bg_colors[:3] = list(map(min, - list(map(add, bg_colors[:3], (64,) * 3)), (255,) * 3)) - bg_colors = util.colors_to_rgba(*bg_colors) - self.box.set_property('fill_color_rgba', bg_colors) + self.box.set_property('fill_color', the_event_bg_color) transparent_color = self.box.get_property('fill_color_rgba') - 128 if self.transparent: self.box.set_property('stroke_color_rgba', transparent_color)
