Re: How read glade file to gtk2?



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]