From 4b5ea6422172f4cc577f8bedb61f1ad340b17c9b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 8 Oct 2012 17:37:23 +0000 Subject: add scrollbar for long one liner messages (mga#5118) --- NEWS | 1 + gurpmi2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5214f701..63e836cb 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ (no more possible since rpm 4.6 which doesn't handle --repackage) - drop --repackage option (non working since 2009) - gurpmi: + o add scrollbar for long one liner messages (mga#5118) o wrap big messages (mga#5118) - library: o enhanced doc diff --git a/gurpmi2 b/gurpmi2 index 5c7364d7..922a85c7 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -152,7 +152,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); -- cgit v1.2.1