[meld] Version check for pygobject breaks on old versions (closes bgo#588087)
- From: Kai Willadsen <kaiw src gnome org>
- To: svn-commits-list gnome org
- Subject: [meld] Version check for pygobject breaks on old versions (closes bgo#588087)
- Date: Wed, 8 Jul 2009 22:29:31 +0000 (UTC)
commit 24defc8707168fd0da2d1b757ae95ce8120c4e08
Author: Kai Willadsen <kai willadsen gmail com>
Date: Thu Jul 9 08:21:55 2009 +1000
Version check for pygobject breaks on old versions (closes bgo#588087)
Older versions of pygobject don't have the gobject.pygobject_version
attribute, so we should assume that anything without that attribute is
too old anyway.
meldapp.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meldapp.py b/meldapp.py
index 4f5652d..f6ce0ab 100644
--- a/meldapp.py
+++ b/meldapp.py
@@ -419,7 +419,7 @@ class MeldApp(gnomeglade.Component):
def __init__(self):
gladefile = paths.ui_dir("meldapp.glade")
gtk.window_set_default_icon_name("icon")
- if gobject.pygobject_version >= (2, 16, 0):
+ if getattr(gobject, "pygobject_version", ()) >= (2, 16, 0):
gobject.set_application_name("Meld")
gnomeglade.Component.__init__(self, gladefile, "meldapp")
self.prefs = MeldPreferences()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]