summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-17 21:41:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-17 21:41:17 +0000
commit4e20c2df0538fe238473a96e3c6b3e98a70c0d31 (patch)
treee932215e7cde0b37bbacb0f1fd12b8f7f40450aa /perl-install
parent7976d195653a3d788655f9a3ff7fce8c22c2880f (diff)
downloaddrakx-4e20c2df0538fe238473a96e3c6b3e98a70c0d31.tar
drakx-4e20c2df0538fe238473a96e3c6b3e98a70c0d31.tar.gz
drakx-4e20c2df0538fe238473a96e3c6b3e98a70c0d31.tar.bz2
drakx-4e20c2df0538fe238473a96e3c6b3e98a70c0d31.tar.xz
drakx-4e20c2df0538fe238473a96e3c6b3e98a70c0d31.zip
(_gtk__Layout) add support for 'Layout' widgets
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} ||= [];