apport-hackers team mailing list archive
-
apport-hackers team
-
Mailing list archive
-
Message #00232
[Merge] lp:~techtonik/apport/fix-gi-warning into lp:apport
anatoly techtonik has proposed merging lp:~techtonik/apport/fix-gi-warning into lp:apport.
Requested reviews:
Apport upstream developers (apport-hackers)
Related bugs:
Bug #1502173 in apport (Ubuntu): "Python warnings: modules imported without specifying a version first"
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1502173
For more details, see:
https://code.launchpad.net/~techtonik/apport/fix-gi-warning/+merge/304628
Fixing https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1502173
--
Your team Apport upstream developers is requested to review the proposed merge of lp:~techtonik/apport/fix-gi-warning into lp:apport.
=== modified file 'gtk/apport-gtk'
--- gtk/apport-gtk 2015-09-24 12:19:28 +0000
+++ gtk/apport-gtk 2016-09-01 11:58:22 +0000
@@ -2,7 +2,7 @@
'''GTK Apport user interface.'''
-# Copyright (C) 2007-2012 Canonical Ltd.
+# Copyright (C) 2007-2016 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@xxxxxxxxxx>
#
# This program is free software; you can redistribute it and/or modify it
@@ -13,6 +13,9 @@
import os.path, sys, subprocess, os, re
+import gi
+gi.require_version('Wnck', '3.0')
+gi.require_version('GdkX11', '3.0')
from gi.repository import GLib, Wnck, GdkX11, Gdk
Gdk # pyflakes; needed for GdkX11
try:
Follow ups