[maemo-commits] [maemo-commits] r8657 - in projects/haf/trunk/pygtk: debian examples/gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Dec 6 15:15:42 EET 2006
Author: luciano
Date: 2006-12-06 15:15:37 +0200 (Wed, 06 Dec 2006)
New Revision: 8657

Modified:
   projects/haf/trunk/pygtk/debian/rules
   projects/haf/trunk/pygtk/examples/gtk/widget.py
Log:
Small fix inside debian/rules and examples

Modified: projects/haf/trunk/pygtk/debian/rules
===================================================================
--- projects/haf/trunk/pygtk/debian/rules	2006-12-05 21:57:47 UTC (rev 8656)
+++ projects/haf/trunk/pygtk/debian/rules	2006-12-06 13:15:37 UTC (rev 8657)
@@ -56,8 +56,6 @@
 	$(PYTHON) -OO -m compileall -f $(d_base)
 	cp -a $(CURDIR)/$(d_base)/* $(CURDIR)/$(d_dev)
 
-	find $(CURDIR)/$(d_base) > /home/osantana/lista.txt
-
 	# base
 	rm -rf $(d_base)/usr/lib/pygtk
 	rm -rf $(d_base)/usr/lib/pkgconfig

Modified: projects/haf/trunk/pygtk/examples/gtk/widget.py
===================================================================
--- projects/haf/trunk/pygtk/examples/gtk/widget.py	2006-12-05 21:57:47 UTC (rev 8656)
+++ projects/haf/trunk/pygtk/examples/gtk/widget.py	2006-12-06 13:15:37 UTC (rev 8657)
@@ -74,8 +74,8 @@
         # In this case, we say that we want to be as big as the
         # text is, plus a little border around it.
         width, height = self._layout.get_size()
-	    requisition.width = width // pango.SCALE + BORDER_WIDTH*4
-	    requisition.height = height // pango.SCALE + BORDER_WIDTH*4
+	requisition.width = width // pango.SCALE + BORDER_WIDTH*4
+	requisition.height = height // pango.SCALE + BORDER_WIDTH*4
 
     def do_size_allocate(self, allocation):
         # The do_size_allocate is called by when the actual size is known
@@ -114,20 +114,20 @@
 gobject.type_register(PyGtkWidget)
 
 def main(args):
-win = gtk.Window()
+    win = gtk.Window()
     win.set_border_width(5)
     win.set_title('Widget test')
-win.connect('delete-event', gtk.main_quit)
+    win.connect('delete-event', gtk.main_quit)
 
-frame = gtk.Frame("Example frame")
-win.add(frame)
+    frame = gtk.Frame("Example frame")
+    win.add(frame)
 
     w = PyGtkWidget(TEXT)
-frame.add(w)
+    frame.add(w)
 
-win.show_all()
+    win.show_all()
 
-gtk.main()
+    gtk.main()
 
 if __name__ == '__main__':
     sys.exit(main(sys.argv))


More information about the maemo-commits mailing list