summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-01 15:12:23 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-01 15:12:23 +0000
commit6420bb4a6694bfdd284d1bb9f9e0b8b59494079b (patch)
tree876715befdd94979c00be320e6f57622f5d45f25 /perl-install/mygtk2.pm
parenta43aa82cc79d54343d37bcac08ab78722ce75680 (diff)
downloaddrakx-6420bb4a6694bfdd284d1bb9f9e0b8b59494079b.tar
drakx-6420bb4a6694bfdd284d1bb9f9e0b8b59494079b.tar.gz
drakx-6420bb4a6694bfdd284d1bb9f9e0b8b59494079b.tar.bz2
drakx-6420bb4a6694bfdd284d1bb9f9e0b8b59494079b.tar.xz
drakx-6420bb4a6694bfdd284d1bb9f9e0b8b59494079b.zip
(_gtk__Alignment) add support for Gtk2::Alignment
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index a8d67e0ab..94103a6e3 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -399,6 +399,17 @@ sub _gtk__Label {
$w;
}
+
+sub _gtk__Alignment {
+ my ($w, $opts) = @_;
+
+ if (!$w) {
+ $w = Gtk2::Alignment->new(0, 0, 0, 0);
+ }
+ $w;
+}
+
+
sub title1_to_markup {
my ($label) = @_;
$::isInstall ? '<span foreground="#5A8AD6">' . $label . '</span>'