[libpeas/proxys] [Python] Uncomment the Gtk stuff in the demo python plugin.



commit c666cc0454b4e9b7f0842546871ecd021bbcc73f
Author: Steve Frécinaux <code istique net>
Date:   Tue May 25 23:27:20 2010 +0200

    [Python] Uncomment the Gtk stuff in the demo python plugin.
    
    That had been commented because it made PyGI crash, but it's no longuer
    the case.

 peas-demo/plugins/pythonhello/pythonhello.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/peas-demo/plugins/pythonhello/pythonhello.py b/peas-demo/plugins/pythonhello/pythonhello.py
index e820fc2..3545e2d 100644
--- a/peas-demo/plugins/pythonhello/pythonhello.py
+++ b/peas-demo/plugins/pythonhello/pythonhello.py
@@ -11,15 +11,15 @@ class PythonHelloPlugin(Peas.Plugin, Peas.Activatable):
 
     def do_activate(self, window):
         print "PythonHelloPlugin.do_activate", repr(window)
-#        window._pythonhello_label = Gtk.Label()
-#        window._pythonhello_label.set_text(LABEL_STRING)
-#        window._pythonhello_label.show()
-#        window.get_child().pack_start(window._pythonhello_label)
+        window._pythonhello_label = Gtk.Label()
+        window._pythonhello_label.set_text(LABEL_STRING)
+        window._pythonhello_label.show()
+        window.get_child().pack_start(window._pythonhello_label)
 
     def do_deactivate(self, window):
         print "PythonHelloPlugin.do_deactivate", repr(window)
-#        window.get_child().remove(window._pythonhello_label)
-#        window._pythonhello_label.destroy()
+        window.get_child().remove(window._pythonhello_label)
+        window._pythonhello_label.destroy()
 
     def do_update_state(self, window):
         print "PythonHelloPlugin.do_update_state", repr(window)



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