[alacarte/wip/muktupavels/python3: 2/2] MainWindow: set required version for GMenu
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [alacarte/wip/muktupavels/python3: 2/2] MainWindow: set required version for GMenu
- Date: Fri, 30 Aug 2019 14:58:05 +0000 (UTC)
commit 4d671b7a30a696b365a5cbe79e64e605e80bd9dd
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Aug 30 17:46:39 2019 +0300
MainWindow: set required version for GMenu
To fix PyGIWarning:
GMenu was imported without specifying a version first. Use
gi.require_version('GMenu', '3.0') before import to ensure that
the right version gets loaded.
Alacarte/MainWindow.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
index 4239d24..69aefa8 100644
--- a/Alacarte/MainWindow.py
+++ b/Alacarte/MainWindow.py
@@ -18,6 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import gi
+gi.require_version('GMenu', '3.0')
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GdkPixbuf, Gdk, GMenu
import sys
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]