From: Yann G. <ygo...@is...> - 2012-06-29 15:44:02
|
A bug has risen from the embedding code I send earlier. The code works fine under the fvwm2 window manager but not under Gnome. It appears that Gnome is more picky with GTK. This result in any embedding command destroying the VPythong window instead of embedding it. Basically, to embed a GTK window into another one, you need to have a pair of Gtk::Plug and Gtk::Socket. The child process (VPython in this case) creates a plug and exposes the plug ID. The programme that will embed VPython uses this plug ID as a parameter to its Gtk::Socket and thus can embed the plug. So, would it be possible to have a gtk::Plug() object within main_gui() and a method that would return the Plug ID? Ideally, this would be wrapped within a Python call so that I could do something akin to: display.get_selected() plug_id = display.get_gtk_plug_id() Would it be okay if this became a feature request? -- GPG Fingerprint 8666 7F9A 17E7 AC8E CC36 1D1E C707 D658 6685 2528 The views expressed in this e-mail may or may not reflect those of the author and do not necessarily reflect those of Isotek Oil and Gas Ltd. |