summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-24 15:02:26 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-24 15:02:26 +0000
commit5d4b6423bd4aa693d3db72e4db85eb96ec1e0031 (patch)
tree9f86e3a941197360ffd639ed5ccd9bda978b9692 /perl-install
parent337325c8be6b16525b41b8121d2c8e9e869573f4 (diff)
downloaddrakx-5d4b6423bd4aa693d3db72e4db85eb96ec1e0031.tar
drakx-5d4b6423bd4aa693d3db72e4db85eb96ec1e0031.tar.gz
drakx-5d4b6423bd4aa693d3db72e4db85eb96ec1e0031.tar.bz2
drakx-5d4b6423bd4aa693d3db72e4db85eb96ec1e0031.tar.xz
drakx-5d4b6423bd4aa693d3db72e4db85eb96ec1e0031.zip
(Gtk2::Banner->new) fix icon alignment in banners
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/ugtk2.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 0d387883d..7e5788356 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- fix icon alignment in banners
+
Version 11.52.1 - 24 September 2008
- libDrakX:
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index e5eb092a2..bed37c0d9 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -1459,7 +1459,7 @@ sub new {
my $padding = int(($d_height - $height)/2);
my $d_width = $darea->allocation->width;
my $x_blue = $is_rtl ? $d_width - $blue_width : 0;
- my $x_icon = $is_rtl ? $d_width - $padding - $width : $padding;
+ my $x_icon = $is_rtl ? $d_width - 12 - $width : 12;
# here: 48 is the amount of white background in the blue background we wish to ignore:
my $x_text = $is_rtl ? $d_width - $blue_width + 48 - $darea->{txt_width} : $blue_width - 48;
$darea->{layout_height} ||= (($darea->{layout}->get_size)[1])/Gtk2::Pango->scale;