2 More Discussions You Might Find Interesting
1. Programming
If anyone uses this can you help please;
I want to use a for loop to update several Objects without having to write them all into the script, e.g.,
If I have CheckBox1, CheckBox2, CheckBox3 etc I want loop round something like
for (int i=1;i<10;i++)
CheckBox(i)->State = 1;
Where... (1 Reply)
Discussion started by: gefa
1 Replies
2. Programming
Hello everybody there,
I wanted to know, if any builder(RAD) existed for programming in gcc(g++)/c++ in Linux. I am using scientific Linux. I need it urgently if it exists.
--rohit (1 Reply)
Discussion started by: RohitThakkar
1 Replies
LEARN ABOUT DEBIAN
gtk2::builder
Gtk2::Builder(3pm) User Contributed Perl Documentation Gtk2::Builder(3pm)
NAME
Gtk2::Builder - wrapper for GtkBuilder
HIERARCHY
Glib::Object
+----Gtk2::Builder
METHODS
builder = Gtk2::Builder->new
integer = $builder->add_from_file ($filename)
o $filename (localized file name)
May croak with a Glib::Error in $@ on failure.
integer = $builder->add_from_string ($buffer)
o $buffer (string)
May croak with a Glib::Error in $@ on failure.
integer = $builder->add_objects_from_string ($buffer, $first_object_id, ...)
o $buffer (string)
o $first_object_id (string)
o ... (list)
Since: gtk+ 2.14
$builder->connect_signals ($user_data)
$builder->connect_signals ($user_data, $package)
$builder->connect_signals ($user_data, %handlers)
There are four ways to let Gtk2::Builder do the signal connecting work for you:
"$builder->connect_signals ($user_data)"
When invoked like this, Gtk2::Builder will connect signals to functions in the calling package. The callback names are specified in
the UI description.
"$builder->connect_signals ($user_data, $package)"
When invoked like this, Gtk2::Builder will connect signals to functions in the package $package.
"$builder->connect_signals ($user_data, $object)"
When invoked like this, Gtk2::Builder will connect signals to method calls against the object $object.
"$builder->connect_signals ($user_data, %handlers)"
When invoked like this, %handlers is used as a mapping from handler names to code references.
$builder->connect_signals_full ($func, $user_data=undef)
o $func (scalar)
o $user_data (scalar)
object = $builder->get_object ($name)
o $name (string)
list = $builder->get_objects
string or undef = $builder->get_translation_domain
$builder->set_translation_domain ($domain)
o $domain (string or undef)
PROPERTIES
'translation-domain' (string : default undef : readable / writable / private)
The translation domain used by gettext
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::Builder(3pm)