[goocanvas/introspection] Fix demos



commit b0d3b48d6f067ffd84c0ab3fe47b0a11dd5a15c6
Author: John Stowers <john stowers gmail com>
Date:   Fri May 27 10:44:35 2011 +1200

    Fix demos

 bindings/gjs/demo.js    |    2 +-
 bindings/python/demo.py |    4 +++-
 bindings/seed/demo.js   |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/bindings/gjs/demo.js b/bindings/gjs/demo.js
index d9e39ba..6319224 100755
--- a/bindings/gjs/demo.js
+++ b/bindings/gjs/demo.js
@@ -200,7 +200,7 @@ let setup_scalability = function(c) {
     let height;
     
     if (1) {
-        pb = GdkPixbuf.Pixbuf.new_from_file("../demo/toroid.png");
+        pb = GdkPixbuf.Pixbuf.new_from_file("../../demo/toroid.png");
         width = pb.get_width();
         height = pb.get_height();
     } else {
diff --git a/bindings/python/demo.py b/bindings/python/demo.py
old mode 100644
new mode 100755
index 6d6310f..d641e21
--- a/bindings/python/demo.py
+++ b/bindings/python/demo.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 from gi.repository import Gtk, GdkPixbuf, GooCanvas
 
 def setup_polyline(c):
@@ -161,7 +163,7 @@ def setup_scalability(c):
     frame.show()
 
     if 1:
-        pb = GdkPixbuf.Pixbuf.new_from_file("../demo/toroid.png")
+        pb = GdkPixbuf.Pixbuf.new_from_file("../../demo/toroid.png")
         width = pb.get_width()
         height = pb.get_height()
     else:
diff --git a/bindings/seed/demo.js b/bindings/seed/demo.js
index 66e0531..3283172 100755
--- a/bindings/seed/demo.js
+++ b/bindings/seed/demo.js
@@ -201,7 +201,7 @@ var setup_scalability = function(c) {
     var height;
     
     if (1) {
-        pb = new GdkPixbuf.Pixbuf.from_file("../demo/toroid.png");
+        pb = new GdkPixbuf.Pixbuf.from_file("../../demo/toroid.png");
         width = pb.get_width();
         height = pb.get_height();
     } else {



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