summaryrefslogtreecommitdiff
blob: 19a3a6d1e98526664e6590a7a48ef560b03643c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From acc785dd63379f08f08b52fae9d7e5c5666495c8 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Mon, 17 Apr 2017 00:15:58 +0200
Subject: [PATCH] Silence gobject-introspection warning on version-less imports

---
 plugins/charmap/charmap/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugins/charmap/charmap/__init__.py b/plugins/charmap/charmap/__init__.py
index b504cb61..6f8c2b61 100644
--- a/plugins/charmap/charmap/__init__.py
+++ b/plugins/charmap/charmap/__init__.py
@@ -16,6 +16,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import gi
+gi.require_version('Gucharmap', '2.90')
+
 from gi.repository import GObject, Gio, Pango, Gtk, Gtranslator, Gucharmap
 from .panel import CharmapPanel
 import sys
-- 
2.12.2