aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-10 14:20:15 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-10 14:20:15 +0000
commitc6c63c5079f78d4d6e7c9bb09b51dfd1fc6cab6d (patch)
treeffea794569986fb98c5e220d37647c917652f8b8 /rpmdrake.pm
parentd24185353c074609f9d57265bd82ec14195a1f92 (diff)
downloadrpmdrake-c6c63c5079f78d4d6e7c9bb09b51dfd1fc6cab6d.tar
rpmdrake-c6c63c5079f78d4d6e7c9bb09b51dfd1fc6cab6d.tar.gz
rpmdrake-c6c63c5079f78d4d6e7c9bb09b51dfd1fc6cab6d.tar.bz2
rpmdrake-c6c63c5079f78d4d6e7c9bb09b51dfd1fc6cab6d.tar.xz
rpmdrake-c6c63c5079f78d4d6e7c9bb09b51dfd1fc6cab6d.zip
(interactive_msg) enable to use markups in TextView (needed for next commit)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 021aa366..5cbb0130 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -195,7 +195,11 @@ sub interactive_msg {
local $::isEmbedded;
my $d = ugtk2->new($title, grab => 1, if_(exists $options{transient}, transient => $options{transient}));
$d->{rwindow}->set_position($options{transient} ? 'center_on_parent' : 'center_always');
- $contents = formatAlaTeX($contents) unless $options{scroll}; #- because we'll use a WrappedLabel
+ if ($options{scroll}) {
+ $contents = ugtk2::markup_to_TextView_format($contents);
+ } else { #- because we'll use a WrappedLabel
+ $contents = formatAlaTeX($contents);
+ }
my $banner = $options{banner} ? getbanner() : undef;
my $text_w;
gtkadd(