aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-22 09:17:59 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-22 09:17:59 +0000
commit9c760a823b86bf3908b695a4411d66ca4f1734b1 (patch)
tree3d16cfc035afb31a1e332bbd283304127058da60 /Rpmdrake
parent036d52dad36d18acf54cdefc0f8961dfb59a0df4 (diff)
downloadrpmdrake-9c760a823b86bf3908b695a4411d66ca4f1734b1.tar
rpmdrake-9c760a823b86bf3908b695a4411d66ca4f1734b1.tar.gz
rpmdrake-9c760a823b86bf3908b695a4411d66ca4f1734b1.tar.bz2
rpmdrake-9c760a823b86bf3908b695a4411d66ca4f1734b1.tar.xz
rpmdrake-9c760a823b86bf3908b695a4411d66ca4f1734b1.zip
(format_changelog_string) push loading of Gtk2::Pango where actually needed
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/formatting.pm1
-rw-r--r--Rpmdrake/pkg.pm1
2 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 0690a09c..bf9b8ae3 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -116,6 +116,7 @@ our $spacing = " ";
sub format_changelog_string {
my ($installed_version, $string) = @_;
#- preprocess changelog for faster TextView insert reaction
+ require Gtk2::Pango;
my %date_attr = ('weight' => Gtk2::Pango->PANGO_WEIGHT_BOLD);
my %update_attr = ('style' => 'italic');
my $version;
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 1412c243..e5a40139 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -60,7 +60,6 @@ our @EXPORT = qw(
use mygtk2 qw(gtknew);
use ugtk2 qw(:all);
-use Gtk2::Pango;
use Gtk2::Gdk::Keysyms;
our $priority_up_alread_warned;