Re: pb mixing POE and Gtk::GladeXML
- From: Stéphane Payrard <s payrard wanadoo fr>
- To: s payrard wanadoo fr, In-Reply-To:20020418113753 C962D4F767 lappy muhri net
- Cc: gtk-perl-list gnome org
- Subject: Re: pb mixing POE and Gtk::GladeXML
- Date: Mon, 29 Apr 2002 01:54:30 +0200
On Sun, Apr 28, 2002 at 07:15:29PM +0200, Stéphane Payrard wrote:
I have a program that reads XML written by glade to build his GUI.
When I uncomment POE, I get errors.
Does anyone knwo how to mix POE and Gtk::GladeXML?
I will try to generate with glade a GtkApp instead of a GnomeApp.
Should I move the 'use POE' after the 'use Gtk::XML'?
Should I use Glade::PerlGenerate instead?
--
Stéphane
The program:
#!/usr/bin/perl -w
use strict;
use Gtk;
# use POE;
use Gtk::GladeXML;
print STDERR $Gtk::VERSION, "\n";
# eval {
require Gtk::Gdk::ImlibImage;
require Gnome;
init Gnome('glade.pl');
# };
init Gtk if $@;
print STDERR "Glade inited\n";
my $g = new Gtk::GladeXML(shift || "projet2.glade");
print "Glade object: ", ref($g),"\n";
$g->signal_autoconnect_from_package('main');
main Gtk;
The errors:
0.7008
Glade inited
GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.
** WARNING **: unknown widget class 'GnomeApp'
unable to convert GtkObject 0x8057e28 of type 44053 (GladeXML) into a Perl/Gtk type at stef.pl line 16.
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]