From ee095e6e14e98fe19b2b3392734274c100ffed88 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 28 Nov 2013 13:46:03 +0100 Subject: fix Gtk2 banners' text position (mga#11778) in commit aa1b536467c9b11d9dd3ff3a0369ca5097642fec, the blue background image has been shrinked of its white part for Gtk3 banners as a side effect, gtk2 banners (where we removed 48px of white background) now displayed their text too far at left, on the actual blue part. => add 10px instead of removing 48px --- perl-install/ugtk2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/ugtk2.pm') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 3db9ff814..931f377a7 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -1467,8 +1467,8 @@ sub new { my $d_width = $darea->allocation->width; my $x_blue = $is_rtl ? $d_width - $blue_width : 0; 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; + # here: 10 is the amount of padding (white background) wish to add betwen text & blue background: + my $x_text = $is_rtl ? $d_width - $blue_width - 10 - $darea->{txt_width} : $blue_width + 10; $darea->{layout_height} ||= second($darea->{layout}->get_pixel_size); $blue_part->render_to_drawable($darea->window, $style->bg_gc('normal'), 0, 0, $x_blue, 0, -1, -1, 'none', 0, 0); -- cgit v1.2.1