diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-17 17:41:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-17 17:41:51 +0000 |
commit | 14f0ace7da6821434f618a1a0101a872ec30c04f (patch) | |
tree | 9cc59ed94afb3b4cc7c6d579b79719a09c46df60 /gurpmi.pm | |
parent | 489d851654e47113a92769b83d006677b3814736 (diff) | |
download | urpmi-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.pm | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 { |