Re: Gtk2::MozEmbed Segmentation Fault

--- Brendon Mosher <brendon iqon net> wrote:

I found the following Gtk2::MozEmbed example, but I can't seem to get it to


use strict;
use warnings;
use Glib qw(TRUE FALSE);
use Gtk2 -init;
use Gtk2::MozEmbed;

Gtk2::MozEmbed -> set_profile_path($ENV{ HOME } . "/.mybrowser",
my $window = Gtk2::Window -> new();
my $mox = Gtk2::MozEmbed -> new();
my $moz = Gtk2::MozEmbed -> new();

$window -> signal_connect(delete_event => sub {
  Gtk2 -> main_quit;
  return FALSE;
$window -> set_title("MyBrowser");
$window -> set_default_size(600, 400);
$window -> add($moz);
$window -> show_all();

$moz -> load_url("";);

Gtk2 -> main;


Each time I run it I get a "Segmentation Fault (Core Dumped)" error.  I
found a few posts in regards to this, but no solutions.  Anyone know how to
fix this?

gtk-perl-list mailing list
gtk-perl-list gnome org

It will probably change nothing, but it appears you do not use $mox (and you do use $moz),
so maybe try to remove $mox.


Applications From Scratch:

Never miss a thing.  Make Yahoo your home page.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]