Re: GNOME 3.0 in March 2011
- From: Steve Frécinaux <nudrema gmail com>
- To: John Stowers <john stowers lists gmail com>
- Cc: desktop-devel-list gnome org
- Subject: Re: GNOME 3.0 in March 2011
- Date: Fri, 30 Jul 2010 01:00:35 +0200
On 07/30/2010 12:39 AM, John Stowers wrote:
On Fri, 2010-07-30 at 00:32 +0200, Steve Frécinaux wrote:
On 07/30/2010 12:28 AM, John Stowers wrote:
On Fri, 2010-07-30 at 00:23 +0200, Steve Frécinaux wrote:
It's not as simple: you can't use pygtk and pygi at the same time in the
same program.
Is that still true if PyGtk+friends is built against Gtk-3.0 etc? That
is not my understanding.
This has nothing to do with the Gtk version. It's merely that you can't
have several C wrappers for the same gtype, so the first imported one
wins. And they don't have exactly the same API. So if you use gtk.Window
and Gtk.Frame, both will use the same GtkWidget wrapper, and it could be
Gtk.Widget or gtk.Widget...
I'm not suggesting mixing the bindings. No way.
If a Python plugin only does "import pygtk,gedit (which pulls in the old
defs generated bindings [1])" then how does it clash with the gtypes
registered from gi (as AFAIK those are connected dynamically in the
'from gi.repository import' hook)?
It's simple: plugins are in-process, and the limitation stands at the
interpretor level, so basically it's that a single process has to choose
between both wrappers.
If you do "import gtk" from plugin 1, the wrappers will be registered
and used when plugin 2 is loaded...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]