summaryrefslogtreecommitdiffstats
path: root/gurpmi.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-17 17:41:51 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-17 17:41:51 +0000
commit14f0ace7da6821434f618a1a0101a872ec30c04f (patch)
tree9cc59ed94afb3b4cc7c6d579b79719a09c46df60 /gurpmi.pm
parent489d851654e47113a92769b83d006677b3814736 (diff)
downloadurpmi-14f0ace7da6821434f618a1a0101a872ec30c04f.tar
urpmi-14f0ace7da6821434f618a1a0101a872ec30c04f.tar.gz
urpmi-14f0ace7da6821434f618a1a0101a872ec30c04f.tar.bz2
urpmi-14f0ace7da6821434f618a1a0101a872ec30c04f.tar.xz
urpmi-14f0ace7da6821434f618a1a0101a872ec30c04f.zip
factorize code through create_scrolled_window()
Diffstat (limited to 'gurpmi.pm')
-rw-r--r--gurpmi.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/gurpmi.pm b/gurpmi.pm
index 70e13e3a..b2c3ec7c 100644
--- a/gurpmi.pm
+++ b/gurpmi.pm
@@ -108,9 +108,7 @@ sub new_label {
$label->set_line_wrap(1);
$label->set_alignment(0.5, 0.5);
if (($msg =~ tr/\n/\n/) > 5) {
- my $sw = Gtk2::ScrolledWindow->new;
- $sw->set_policy('never', 'automatic');
- $sw->add_with_viewport($label);
+ my $sw = create_scrolled_window($label, [ 'never', 'automatic' ]);
$sw->set_size_request(-1,200);
return $sw;
} else {