summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 13:46:03 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 13:46:03 +0100
commitee095e6e14e98fe19b2b3392734274c100ffed88 (patch)
treeb11907ed9331f091e0c1d76fc1daaacde1d39687 /perl-install/ugtk2.pm
parent3a91f72da3a6a3ecee49c5da105c1fa611f89a39 (diff)
downloaddrakx-ee095e6e14e98fe19b2b3392734274c100ffed88.tar
drakx-ee095e6e14e98fe19b2b3392734274c100ffed88.tar.gz
drakx-ee095e6e14e98fe19b2b3392734274c100ffed88.tar.bz2
drakx-ee095e6e14e98fe19b2b3392734274c100ffed88.tar.xz
drakx-ee095e6e14e98fe19b2b3392734274c100ffed88.zip
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
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm4
1 files changed, 2 insertions, 2 deletions
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);