[pygtk] How to get default colours in Gtk 3?

2011-03-21 Thread Greg Ewing
With Gtk 2 I was using the following technique to find out the default foreground and background colours for a selection: from gtk import Style s = Style() foreground = s.fg[3] background = s.bg[3] However, with Gtk 3 via gi, s.fg is coming up as an empty list. Can anyone suggest an alternative

[pygtk] gtk from macport with or without x11 ?

2011-03-21 Thread smo
hi i m trying to make a package ofmy app on osX, i used (for the moment) macport to install everything needed and have some questions with gtk/pygtk... i have a Drawingarea in my app and need his xid... no problems on linux or windows but on osX, if i build gtk/pygtk, cairo... with x11 i can get

Re: [pygtk] Problem compiling gobject-introspection on Snow Leopard

2011-03-21 Thread Tomeu Vizoso
On Mon, Mar 21, 2011 at 09:31, Greg Ewing wrote: > Tomeu Vizoso wrote: > > After some hunting around I found the gir-repository package, > which looks like it should help, so I tried to compile and > install it. However, it fails trying to generate .gir files > for Gtk-2.22: Hi, gir-repository i

Re: [pygtk] Problem compiling gobject-introspection on Snow Leopard

2011-03-21 Thread Greg Ewing
Tomeu Vizoso wrote: I think you are finding this bug: https://bugzilla.gnome.org/show_bug.cgi?id=631507 Have added some comments that should help if someone is willing to look at this issue. Thanks. It seems to be a non-fatal error, so I decided to press on and see what would happen. I mana