[libpeas/proxys] [Python] Fix the sample python plugin.



commit f2193d7b9b88e85d8e6385d9e6778f1e70a03c3f
Author: Steve Frécinaux <code istique net>
Date:   Wed May 26 19:08:26 2010 +0200

    [Python] Fix the sample python plugin.
    
    PyGI doesn't handle default values for introspected methods,
    so we need to specify all the arguments for pack_start()

 peas-demo/plugins/pythonhello/pythonhello.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/peas-demo/plugins/pythonhello/pythonhello.py b/peas-demo/plugins/pythonhello/pythonhello.py
index 61cc3d3..0379e38 100644
--- a/peas-demo/plugins/pythonhello/pythonhello.py
+++ b/peas-demo/plugins/pythonhello/pythonhello.py
@@ -15,7 +15,7 @@ class PythonHelloPlugin(gobject.GObject, Peas.Activatable):
         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.get_child().pack_start(window._pythonhello_label, True, True, 0)
 
     def do_deactivate(self, window):
         print "PythonHelloPlugin.do_deactivate", repr(window)



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