summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-03 15:03:46 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:28:14 +0100
commit453c92141b25585059d7d8d7925dbe880ab26c30 (patch)
treef05444700e701a6ff8004daf00432e049cdc3efd /perl-install
parent53dba361fafaae5dbc07c0409cd7160f6f621f01 (diff)
downloaddrakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar
drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar.gz
drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar.bz2
drakx-453c92141b25585059d7d8d7925dbe880ab26c30.tar.xz
drakx-453c92141b25585059d7d8d7925dbe880ab26c30.zip
add basic support for Builder widget
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk3.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 1e78a7baa..6fcc192de 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -552,6 +552,18 @@ sub _gtk__ActionGroup {
$w;
}
+sub _gtk__Builder {
+ my ($w, $opts, $_class, $action) = @_;
+
+ if (!$w) {
+ $w = Gtk3::Builder->new;
+ $w->add_from_file(delete $opts->{file}) if exists $opts->{file};
+ $w->add_from_string(delete $opts->{string}) if exists $opts->{string};
+ $w->connect_signals(undef);
+ }
+ $w;
+}
+
sub _gtk__UIManager {
my ($w, $opts, $_class, $action) = @_;