[pygobject/gsoc2009: 24/160] Fix Gdk.init_check invocation
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 24/160] Fix Gdk.init_check invocation
- Date: Fri, 14 Aug 2009 21:24:06 +0000 (UTC)
commit b53b16201e3703d29ead8f1e9709411d058439b9
Author: Simon van der Linden <simon vanderlinden student uclouvain be>
Date: Sun Jul 5 20:04:59 2009 +0200
Fix Gdk.init_check invocation
Call self.init_check with command-line arguments now that
arrays are supported.
girepository/overrides/Gdk.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/girepository/overrides/Gdk.py b/girepository/overrides/Gdk.py
index c21368b..304817b 100644
--- a/girepository/overrides/Gdk.py
+++ b/girepository/overrides/Gdk.py
@@ -1,8 +1,12 @@
+import sys
+
from girepository.module import DynamicModule
class GdkModule(DynamicModule):
def created(self):
- self.init_check(0, None)
+ initialized, argv = self.init_check(tuple(sys.argv))
+ if not initialized:
+ raise RuntimeError("Gdk couldn't be initialized")
def rectangle_new(self, x, y, width, height):
rectangle = self.Rectangle()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]