diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-16 17:53:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-16 17:53:42 +0000 |
commit | 4dae6619d14d8c5eef7df13686857ee744da457e (patch) | |
tree | d6c4eda353044fcdb7706bdd35080310d9c1897c /perl-install/any.pm | |
parent | 6117d5bcf976594e1a2e533f19796af2378dbb5c (diff) | |
download | drakx-4dae6619d14d8c5eef7df13686857ee744da457e.tar drakx-4dae6619d14d8c5eef7df13686857ee744da457e.tar.gz drakx-4dae6619d14d8c5eef7df13686857ee744da457e.tar.bz2 drakx-4dae6619d14d8c5eef7df13686857ee744da457e.tar.xz drakx-4dae6619d14d8c5eef7df13686857ee744da457e.zip |
(>display_help,display_release_notes,load_from_uri) switch from perl-Gtk2-Html2
to perl-Gtk2-WebKit in order to display release notes & help
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index ac583bf54..593be7e04 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -900,18 +900,13 @@ sub display_release_notes { }, [ {} ]); return; } - require Gtk2::Html2; + require Gtk2::WebKit; require ugtk2; ugtk2->import(':all'); require mygtk2; mygtk2->import('gtknew'); - my $view = Gtk2::Html2::View->new; - my $document = Gtk2::Html2::Document->new; - $view->set_document($document); - - $document->clear; - $document->open_stream("text/html"); - $document->write_stream($o->{release_notes}); + my $view = Gtk2::WebKit::WebView->new; + $view->load_html_string($o->{release_notes}, '/'); my $w = ugtk2->new(N("Release Notes"), transient => $::main_window, modal => 1, pop_it => 1); gtkadd($w->{rwindow}, |