summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-15 05:51:50 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-15 05:51:50 +0000
commitf5adb14740adfc84b7987e2d5da426b9ebd9a4b5 (patch)
treea977c2dc91a168b78122a0632d6148113c23740c
parent3a6193297681020ff7b73739897105c747a3161f (diff)
downloadurpmi-f5adb14740adfc84b7987e2d5da426b9ebd9a4b5.tar
urpmi-f5adb14740adfc84b7987e2d5da426b9ebd9a4b5.tar.gz
urpmi-f5adb14740adfc84b7987e2d5da426b9ebd9a4b5.tar.bz2
urpmi-f5adb14740adfc84b7987e2d5da426b9ebd9a4b5.tar.xz
urpmi-f5adb14740adfc84b7987e2d5da426b9ebd9a4b5.zip
add scrollbar for long one liner messages (mga#5118)
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi22
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 10a0b64b..373f6b9d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- gurpmi:
+ o add scrollbar for long one liner messages (mga#5118)
o wrap big messages (mga#5118)
- urpmq: minor documentation fix (mga#7166)
diff --git a/gurpmi2 b/gurpmi2
index 34c8be95..419589db 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -151,7 +151,7 @@ sub configure_urpm() {
}
my $nb_lines = $message =~ tr/\n/\n/;
my $w;
- if ($nb_lines > 30) {
+ if ($nb_lines > 30 || $message =~ /^transaction is too small/) {
$w = Gtk2::Dialog->new(N("Warning"), $mainw, [qw(modal destroy-with-parent)], N("Ok"), 'ok');
$w->vbox->add(my $f = Gtk2::Frame->new);
my $sw = create_scrolled_window(my $text = Gtk2::TextView->new);