pb mixing POE and Gtk::GladeXML
- From: Stéphane Payrard <s payrard wanadoo fr>
- To: gtk-perl-list gnome org
- Subject: pb mixing POE and Gtk::GladeXML
- Date: Sun, 28 Apr 2002 19:15:29 +0200
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.
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]