aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 18:07:04 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:08 +0100
commit2eed991845b2cf5bdc215ad826fd7049093436ba (patch)
tree4c4e39d18d0496ac89803d3a2a50b167ca98f0e0 /Rpmdrake
parentc24119ac2d047d3aed22fb15cd0574ec592dfb83 (diff)
downloadrpmdrake-2eed991845b2cf5bdc215ad826fd7049093436ba.tar
rpmdrake-2eed991845b2cf5bdc215ad826fd7049093436ba.tar.gz
rpmdrake-2eed991845b2cf5bdc215ad826fd7049093436ba.tar.bz2
rpmdrake-2eed991845b2cf5bdc215ad826fd7049093436ba.tar.xz
rpmdrake-2eed991845b2cf5bdc215ad826fd7049093436ba.zip
we no longuer have access to PANGO_PIXELS() with introspection
=> let's use the proper API instead we could alternatively have divide by Pango::SCALE, but this is cleaner
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gurpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gurpm.pm b/Rpmdrake/gurpm.pm
index f3ece16a..2e73f40c 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(undef, $context->get_language);
- $mainw->{label}->set_size_request(-1, 2 * Pango->PANGO_PIXELS($metrics->get_ascent + $metrics->get_descent));
+ $mainw->{label}->set_size_request(-1, 2 * Pango::units_to_double($metrics->get_ascent + $metrics->get_descent));
$mainw->{progressbar} = gtknew('ProgressBar');
gtkadd($mainw->{window}, $mainw->{vbox} = gtknew('VBox', spacing => 5, border_width => 6, children_tight => [