Re: How read glade file to gtk2?
- From: Tadej BorovÅak <tadeboro gmail com>
- To: Xiao Yafeng <xyf xiao gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: How read glade file to gtk2?
- Date: Mon, 22 Mar 2010 10:32:54 +0100
Hi.
use Gtk2 -init;
my $builder = Gtk2::Builder->new();
$builder->add_from_file("3.glade");
#$builder->connect_signals();
my $object = $builder->get_object("window1");
$object->show_all();
gtk_main();
Only problem I see here is "gtk_main()" call, which should be
"Gtk2->main()". Other parts of code look sane to me.
Tadej
--
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]