aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-19 21:37:26 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:06 +0100
commitc0f126832cfca27409fdbe4c25c847db02dd369b (patch)
tree394eca4c13ffa82c2447edc83de03503f878bf30
parent1a277c56674f3c6d60951c1f2a1312f1cd9235fe (diff)
downloadrpmdrake-c0f126832cfca27409fdbe4c25c847db02dd369b.tar
rpmdrake-c0f126832cfca27409fdbe4c25c847db02dd369b.tar.gz
rpmdrake-c0f126832cfca27409fdbe4c25c847db02dd369b.tar.bz2
rpmdrake-c0f126832cfca27409fdbe4c25c847db02dd369b.tar.xz
rpmdrake-c0f126832cfca27409fdbe4c25c847db02dd369b.zip
Gtk2::Pango -> Pango
-rw-r--r--Rpmdrake/formatting.pm4
-rw-r--r--Rpmdrake/gurpm.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 1bc6ba0d..821066e6 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -116,8 +116,8 @@ 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);
+ require Pango;
+ my %date_attr = ('weight' => Pango->PANGO_WEIGHT_BOLD);
my %update_attr = ('style' => 'italic');
my $version;
my $highlight;
diff --git a/Rpmdrake/gurpm.pm b/Rpmdrake/gurpm.pm
index c7444c52..06cfd6b5 100644
--- a/Rpmdrake/gurpm.pm
+++ b/Rpmdrake/gurpm.pm
@@ -40,7 +40,7 @@ sub new {
# size label's heigh to 2 lines in order to prevent dummy vertical resizing:
my $context = $mainw->{label}->get_layout->get_context;
my $metrics = $context->get_metrics($mainw->{label}->style->font_desc, $context->get_language);
- $mainw->{label}->set_size_request(-1, 2 * Gtk2::Pango->PANGO_PIXELS($metrics->get_ascent + $metrics->get_descent));
+ $mainw->{label}->set_size_request(-1, 2 * Pango->PANGO_PIXELS($metrics->get_ascent + $metrics->get_descent));
$mainw->{progressbar} = gtknew('ProgressBar');
gtkadd($mainw->{window}, $mainw->{vbox} = gtknew('VBox', spacing => 5, border_width => 6, children_tight => [