From 62eb7026c0aae082bd4eef92dab9874d7dcd9ba6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 22 Jan 2008 23:17:37 +0000 Subject: (inspect) lazy load Gtk2::SourceView (and thus Gnome2::Print) on demand --- Rpmdrake/rpmnew.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake') 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}, -- cgit v1.2.1