summaryrefslogtreecommitdiffstats
path: root/gurpmi.pm
diff options
context:
space:
mode:
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 {