[d-feet] GI imports: require Gtk 3.0



commit 4a0a04b8d5b9accf399354ca6e21d6f5933d9745
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Thu May 23 13:08:13 2013 +0200

    GI imports: require Gtk 3.0
    
    We know we can not operate with Gtk 2.0 introspected libraries, so
    let's not even try to load them (in case the user does not have
    Gtk-3.0.typelib installed).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700163

 src/d-feet.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/d-feet.in b/src/d-feet.in
index 42ef161..d56c595 100644
--- a/src/d-feet.in
+++ b/src/d-feet.in
@@ -38,6 +38,9 @@ import gettext
 from gettext import gettext as _
 gettext.textdomain("@GETTEXT_PACKAGE@")
 
+
+import gi
+gi.require_version('Gtk', '3.0')
 from gi.repository import Gtk, GObject
 from dfeet.application import DFeetApp
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]