diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 15:02:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-24 15:02:26 +0000 |
commit | 5d4b6423bd4aa693d3db72e4db85eb96ec1e0031 (patch) | |
tree | 9f86e3a941197360ffd639ed5ccd9bda978b9692 /perl-install/ugtk2.pm | |
parent | 337325c8be6b16525b41b8121d2c8e9e869573f4 (diff) | |
download | drakx-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/ugtk2.pm')
-rw-r--r-- | perl-install/ugtk2.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |