aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/rpmnew.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-01-22 23:17:37 +0000
committerThierry Vignaud <tv@mandriva.org>2008-01-22 23:17:37 +0000
commit62eb7026c0aae082bd4eef92dab9874d7dcd9ba6 (patch)
tree8211c6f371f75c2516a1376cc4f1044f196f5556 /Rpmdrake/rpmnew.pm
parente1d0ce4df292e9559fbea35687b78efae858de2c (diff)
downloadrpmdrake-62eb7026c0aae082bd4eef92dab9874d7dcd9ba6.tar
rpmdrake-62eb7026c0aae082bd4eef92dab9874d7dcd9ba6.tar.gz
rpmdrake-62eb7026c0aae082bd4eef92dab9874d7dcd9ba6.tar.bz2
rpmdrake-62eb7026c0aae082bd4eef92dab9874d7dcd9ba6.tar.xz
rpmdrake-62eb7026c0aae082bd4eef92dab9874d7dcd9ba6.zip
(inspect) lazy load Gtk2::SourceView (and thus Gnome2::Print) on demand
Diffstat (limited to 'Rpmdrake/rpmnew.pm')
-rw-r--r--Rpmdrake/rpmnew.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/rpmnew.pm b/Rpmdrake/rpmnew.pm
index ef51ca4a..37fb9dc0 100644
--- a/Rpmdrake/rpmnew.pm
+++ b/Rpmdrake/rpmnew.pm
@@ -31,7 +31,6 @@ use Rpmdrake::init;
use Rpmdrake::pkg;
use Rpmdrake::open_db;
use Rpmdrake::formatting;
-use Gtk2::SourceView;
use File::MimeInfo::Magic;
use mygtk2 qw(gtknew); #- do not import anything else, especially gtkadd() which conflicts with ugtk2 one
use ugtk2 qw(:all);
@@ -79,6 +78,7 @@ sub inspect {
my $d = ugtk2->new(N("Inspecting %s", $file), grab => 1, transient => $::main_window);
my $save_wsize = sub { @inspect_wsize = $d->{rwindow}->get_size };
my %texts;
+ require Gtk2::SourceView;
my $lang_manager = Gtk2::SourceView::LanguagesManager->new;
gtkadd(
$d->{window},