Re: pb mixing POE and Gtk::GladeXML

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?


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('');
# };
init Gtk if $@;

print STDERR "Glade inited\n";
my $g = new Gtk::GladeXML(shift || "");
print "Glade object: ", ref($g),"\n";

main Gtk;

The errors:

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 line 16.
gtk-perl-list mailing list
gtk-perl-list gnome org

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