summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-26 14:13:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-26 14:13:18 +0000
commit0381cb67373cd802101c299bc0adc3f15c13f2b3 (patch)
tree64f84aa48a90a5bb869d65854cab94eddc08da8a /perl-install/mygtk2.pm
parent099db4aa69c64e0e9d4811c1fc37b49aa02011e5 (diff)
downloaddrakx-0381cb67373cd802101c299bc0adc3f15c13f2b3.tar
drakx-0381cb67373cd802101c299bc0adc3f15c13f2b3.tar.gz
drakx-0381cb67373cd802101c299bc0adc3f15c13f2b3.tar.bz2
drakx-0381cb67373cd802101c299bc0adc3f15c13f2b3.tar.xz
drakx-0381cb67373cd802101c299bc0adc3f15c13f2b3.zip
(_gtk__Label_Right) factorize code
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index ced9315a8..aeebc0807 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -363,6 +363,13 @@ sub _gtk__Label_Left {
_gtk__Label($w, $opts);
}
+sub _gtk__Label_Right {
+ my ($w, $opts) = @_;
+ $opts->{alignment} ||= [ 1, 0.5 ];
+ _gtk__Label($w, $opts);
+}
+
+
sub _gtk__Label {
my ($w, $opts) = @_;