summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-19 06:17:23 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-05-19 09:33:31 -0400
commit7dbb2f4624e9df80b2aec3ad476347d2ea37e0ef (patch)
treeef3bcef8790a8d8e3dbb06512662011910d2d3df
parentecac6fb0105f742ebd6a9b8ab3a533123fadbe38 (diff)
downloaddrakx-7dbb2f4624e9df80b2aec3ad476347d2ea37e0ef.tar
drakx-7dbb2f4624e9df80b2aec3ad476347d2ea37e0ef.tar.gz
drakx-7dbb2f4624e9df80b2aec3ad476347d2ea37e0ef.tar.bz2
drakx-7dbb2f4624e9df80b2aec3ad476347d2ea37e0ef.tar.xz
drakx-7dbb2f4624e9df80b2aec3ad476347d2ea37e0ef.zip
fix setting banner icon top margin (mga#12358)
Gtk3's gtk_widget_set_margin_top() really is buged when margin < 0 bug introduced in commit f5ed08a589bc9081c68188c464a5a978557d0b2a
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/ugtk3.pm3
2 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index dde8765bf..5ada56703 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- all tools:
+ o fix banner icon being cliped (mga#12358)
- drakfont:
o fix crash (mga#13627)
o fix crash with --windows_import (mga9347)
diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm
index b65041e2c..de6c312c1 100644
--- a/perl-install/ugtk3.pm
+++ b/perl-install/ugtk3.pm
@@ -1545,7 +1545,8 @@ sub new {
} else {
$icon_img->set_margin_left(12);
}
- $icon_img->set_margin_top(($blue_part->get_height-$icon_w->get_height)/2-4);
+ $icon_img->set_margin_top(($blue_part->get_height-$icon_w->get_height)/2);
+
$w->{label} = $label;
$w->set_size_request(-1, $d_height);