Hi.

Current CVS has a problem with gtk.gdk.Pixmap objects. Code that used to
work ...

pixmap = gtk.gdk.Pixmap(win, width, height)

... now produces an error.

Rebuilding the pygtk module this message pops up ...

Could not write constructor for GdkPixmap: cannot concatenate 'str' and
'int' objects

There is no ChangeLog entry corresponding to this change in
gtk.gdk.Pixbuf behavior, so it looks like a bug to me. Maybe this is
some fallout from recent changes to some of the codegen files like
scmexpr.py?

[ ... pokes around some more ... ]

This patch to gdk.defs will fix it. Maybe the scmexpr.py changes flushed
this out?

Index: gdk.defs
===================================================================
RCS file: /cvs/gnome/gnome-python/pygtk/gtk/gdk.defs,v
retrieving revision 1.52
diff -u -u -r1.52 gdk.defs
--- gdk.defs    30 May 2003 23:55:14 -0000      1.52
+++ gdk.defs    2 Jun 2003 21:54:44 -0000
@@ -1696,7 +1696,7 @@
     '("GdkWindow*" "window" (null-ok))
     '("gint" "width")
     '("gint" "height")
-    '("gint" "depth" (default -1))
+    '("gint" "depth" (default "-1"))
   )
 )
 
Art Haas

-- 
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
 -- Theodore Roosevelt, Kansas City Star, 1918
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to