Re: Issue with Glib 1.260 in Windows 7
- From: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
- To: Martin Schlemmer <Martin Schlemmer nwu ac za>
- Cc: gtk-perl-list gnome org
- Subject: Re: Issue with Glib 1.260 in Windows 7
- Date: Sat, 16 Jun 2012 06:14:50 +0200
On Fri, Jun 15, 2012 at 5:13 PM, Martin Schlemmer
<Martin Schlemmer nwu ac za> wrote:
Might have spoken too soon, or different issue. I get the following backtrace only with 1.260 and not 1.240.
To reproduce I simply used the latest Git versions of Glib::Soup and Gtk2::WebKit, and did:
----------------------------
 Â$view = Gtk2::WebKit::WebView->new;
 Â$session = Gtk2::WebKit->get_default_session;
----------------------------
Glib::Soup should not be used. This was my attempt at building
bindings by hand until Glib::Object::Introspection was announced.
The modules HTTP::Soup and HTTP::Soup::Gnome are the way to go.
There's a reason why Glib::Soup is not in CPAN. The module is incomplete.
I would suggest that programs using Glib::Soup get migrated to
HTTP::Soup and programs using Gtk2::WebKit migrate to load WebKit's
bindings through Glib's introspection either through Gtk3::WebKit or
Glib::Object::Introspection.
Even if you use Gtk2, you can still use Gtk3::WebKit. Simply load the
module with:
# Backward compatible mode with Gtk2 using glib introspection
use Gtk3::WebKit version => '1.0', package => 'Gtk2::WebKit';
The above code snippet will do this (which is how to load a glib
introspection library):
# Load Gtk2::WebKit through glib introspection
use Glib::Object::Introspection;
Glib::Object::Introspection->setup(
basename => 'WebKit',
version => '1.0',
package => 'Gtk2::WebKit',
);
--
Emmanuel Rodriguez
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]