diff --git a/CHANGELOG b/CHANGELOG index a9617014647eef262de54b1701f1234bb5444626_Q0hBTkdFTE9H..49d58daff10a587a9af414d505ec6bd2fefe4f67_Q0hBTkdFTE9H 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add support GooCanvas 3.0 * Add selected text color property * Remove lighter background on event diff --git a/goocalendar/__init__.py b/goocalendar/__init__.py index a9617014647eef262de54b1701f1234bb5444626_Z29vY2FsZW5kYXIvX19pbml0X18ucHk=..49d58daff10a587a9af414d505ec6bd2fefe4f67_Z29vY2FsZW5kYXIvX19pbml0X18ucHk= 100644 --- a/goocalendar/__init__.py +++ b/goocalendar/__init__.py @@ -3,7 +3,10 @@ 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