aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-14 14:41:34 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-14 14:41:34 +0000
commita5a4eca7e0f064bee74265b2857eedc56648d690 (patch)
tree123f4d20c1ae6ae4775dbac8ad3b3d90cf286dc5 /rpmdrake.pm
parentf0eae9ee8e20c768cfbe6108eb3d3c869d28ac29 (diff)
downloadrpmdrake-a5a4eca7e0f064bee74265b2857eedc56648d690.tar
rpmdrake-a5a4eca7e0f064bee74265b2857eedc56648d690.tar.gz
rpmdrake-a5a4eca7e0f064bee74265b2857eedc56648d690.tar.bz2
rpmdrake-a5a4eca7e0f064bee74265b2857eedc56648d690.tar.xz
rpmdrake-a5a4eca7e0f064bee74265b2857eedc56648d690.zip
(interactive_msg) support markups for simple Labels too (needed for
next commit)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 5cbb0130..abee0e62 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -91,6 +91,7 @@ our $dont_show_selections;
# i18n: IMPORTANT: to get correct namespace (rpmdrake instead of libDrakX)
BEGIN { unshift @::textdomains, qw(rpmdrake urpmi rpm-summary-main rpm-summary-contrib rpm-summary-devel) }
+use mygtk2 qw(gtknew);
use ugtk2 qw(:all);
ugtk2::add_icon_path('/usr/share/rpmdrake/icons');
@@ -211,7 +212,7 @@ sub interactive_msg {
(
$options{scroll} ?
($text_w = create_scrolled_window(gtktext_insert(Gtk2::TextView->new, $contents)))
- : ($text_w = Gtk2::WrappedLabel->new($contents))
+ : ($text_w = gtknew('WrappedLabel', text_markup => $contents))
),
if_($options{widget}, 0, $options{widget}),
0,