[gegl] Remove unneeded set_property hack from example



commit 136f1dc1cc77ea69787148f1ac8884e707e581be
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Thu Jun 6 22:50:11 2013 -0700

    Remove unneeded set_property hack from example

 examples/simple-graph.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/examples/simple-graph.py b/examples/simple-graph.py
index 13c3658..c8133b1 100755
--- a/examples/simple-graph.py
+++ b/examples/simple-graph.py
@@ -1,7 +1,6 @@
 #!/usr/bin/env python
 
 from gi.repository import Gegl
-from gi.repository import GObject
 
 if __name__ == '__main__':
   Gegl.init(0,"")
@@ -9,8 +8,7 @@ if __name__ == '__main__':
   ptn = Gegl.Node()
   
   # Disable caching on all child nodes
-  GObject.Object.set_property(ptn, "dont-cache", True)
-  
+  ptn.set_property("dont-cache", True)
   
   # Create our background buffer. A gegl:color node would
   # make more sense, we just use a buffer here as an example.


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