summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
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) = @_;