diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-28 13:46:03 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-28 13:46:03 +0100 |
commit | ee095e6e14e98fe19b2b3392734274c100ffed88 (patch) | |
tree | b11907ed9331f091e0c1d76fc1daaacde1d39687 /perl-install | |
parent | 3a91f72da3a6a3ecee49c5da105c1fa611f89a39 (diff) | |
download | drakx-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')
-rw-r--r-- | perl-install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/ugtk2.pm | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index 6307c89c6..ba1820720 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,5 +1,6 @@ - mcc: o restore galaxy RC file, thus fixing left panel text color (mga#11773) + o fix Gtk2 banners' text position (mga#11778) Version 16.0 - 23 November 2013 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); |