summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2020-10-08 14:18:12 +0300
committerMarius Gedminas <marius@gedmin.as>2020-10-08 14:18:12 +0300
commitb3d4bca0a76b72f34abcc23f43295f2122b9e572 (patch)
treef83b87c83fed08f5073c6ef2b550fdf28b703fe2
parent109da4aa1e197a02ffb70d1374bb7dd6aa69f28c (diff)
Fix warning on startup
On Ubuntu 20.04 LTS I was seeing /home/mg/src/gtimelog/src/gtimelog/main.py:72: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gdk, Gio, GLib, GObject, Gtk, Pango, Soup
-rw-r--r--src/gtimelog/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtimelog/main.py b/src/gtimelog/main.py
index 4f15755..6cb9e9e 100644
--- a/src/gtimelog/main.py
+++ b/src/gtimelog/main.py
@@ -67,6 +67,7 @@ from .utils import require_version
require_version('Gtk', '3.0')
+require_version('Gdk', '3.0')
require_version('Soup', '2.4')
import gi
from gi.repository import Gdk, Gio, GLib, GObject, Gtk, Pango, Soup