From 5d4b6423bd4aa693d3db72e4db85eb96ec1e0031 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 24 Sep 2008 15:02:26 +0000 Subject: (Gtk2::Banner->new) fix icon alignment in banners --- perl-install/NEWS | 2 ++ perl-install/ugtk2.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install') 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; -- cgit v1.2.1