summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mygtk2.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 117529bab..9702c0ec1 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -640,6 +640,16 @@ sub _gtk__Fixed {
$w;
}
+sub _gtk__Layout {
+ my ($w, $opts, $_class, $_action) = @_;
+
+ if (!$w) {
+ $w = Gtk2::Layout->new;
+ _gtknew_handle_layout_children($w, $opts);
+ }
+ $w;
+}
+
sub _gtknew_handle_layout_children {
my ($w, $opts) = @_;
$opts->{children} ||= [];