From 0381cb67373cd802101c299bc0adc3f15c13f2b3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 26 Aug 2008 14:13:18 +0000 Subject: (_gtk__Label_Right) factorize code --- perl-install/install/gtk.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'perl-install/install/gtk.pm') diff --git a/perl-install/install/gtk.pm b/perl-install/install/gtk.pm index 36855f148..99e2ede7f 100644 --- a/perl-install/install/gtk.pm +++ b/perl-install/install/gtk.pm @@ -116,8 +116,7 @@ sub create_steps_window { $steps{$_} ||= gtknew('Pixbuf', file => "steps_$_") foreach qw(on off done); my $category = sub { gtknew('HBox', spacing => 7, children => [ - 1, '', - 0, gtknew('Label', text_markup => '' . uc($_[0]) . '', widget_name => 'Step-categories'), + 1, gtknew('Label_Right', text_markup => '' . uc($_[0]) . '', widget_name => 'Step-categories'), 0, gtknew('Image', file => 'steps_off.png'), ]); }; @@ -133,8 +132,7 @@ sub create_steps_window { my $img = gtknew('Image', file => 'steps_off.png'); $steps{steps}{$_}{img} = $img; push @l, gtknew('HBox', spacing => 7, children => [ - 1, '', - 0, $steps{steps}{$_}{text} = gtknew('Label', text => translate($o->{steps}{$_}{text})), + 1, $steps{steps}{$_}{text} = gtknew('Label_Right', text => translate($o->{steps}{$_}{text})), 0, $img, ]); } -- cgit v1.2.1