summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:35:07 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:35:08 +0900
commitdf82aa0a770d4b3e52e96eb5c60b528ddcdb2343 (patch)
treebbf6d1c2270fe7057773ff1c2cf578ff40f704da /examples
parent095413828bd9b33e57b352f9ca80473172611202 (diff)
downloadpygobject2-df82aa0a770d4b3e52e96eb5c60b528ddcdb2343.tar.gz
pygobject2-df82aa0a770d4b3e52e96eb5c60b528ddcdb2343.tar.bz2
pygobject2-df82aa0a770d4b3e52e96eb5c60b528ddcdb2343.zip
Imported Upstream version 2.26.0upstream/2.26.0
Change-Id: I616aeca320e366d54dd6e188c260b64639305c49 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.in1
-rwxr-xr-xexamples/cairo-demo.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/Makefile.in b/examples/Makefile.in
index 1d73750..e749490 100644
--- a/examples/Makefile.in
+++ b/examples/Makefile.in
@@ -91,6 +91,7 @@ GIOUNIX_LIBS = @GIOUNIX_LIBS@
GIO_CFLAGS = @GIO_CFLAGS@
GIO_LIBS = @GIO_LIBS@
GI_CFLAGS = @GI_CFLAGS@
+GI_DATADIR = @GI_DATADIR@
GI_LIBS = @GI_LIBS@
GLIB_CFLAGS = @GLIB_CFLAGS@
GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
diff --git a/examples/cairo-demo.py b/examples/cairo-demo.py
index 8420c2f..72a0533 100755
--- a/examples/cairo-demo.py
+++ b/examples/cairo-demo.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
"""Based on cairo-demo/X11/cairo-demo.c
"""
+import pygtk
+pygtk.require('2.0')
import cairo
from gi.repository import Gdk, Gtk
@@ -107,7 +109,7 @@ def expose (da, event):
def main():
win = Gtk.Window()
- win.connect('destroy', Gtk.main_quit)
+ win.connect('destroy', lambda w: Gtk.main_quit())
win.set_default_size(450, 550)
drawingarea = Gtk.DrawingArea()