aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gurpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-28 18:04:29 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-12-05 14:16:08 +0100
commitc24119ac2d047d3aed22fb15cd0574ec592dfb83 (patch)
treed11f8918bc7b3539fe6bf74d858a9973afe21938 /Rpmdrake/gurpm.pm
parentd33633210d2f656521698243c56525d74eafc831 (diff)
downloadrpmdrake-c24119ac2d047d3aed22fb15cd0574ec592dfb83.tar
rpmdrake-c24119ac2d047d3aed22fb15cd0574ec592dfb83.tar.gz
rpmdrake-c24119ac2d047d3aed22fb15cd0574ec592dfb83.tar.bz2
rpmdrake-c24119ac2d047d3aed22fb15cd0574ec592dfb83.tar.xz
rpmdrake-c24119ac2d047d3aed22fb15cd0574ec592dfb83.zip
we no longer can use old style objects
Diffstat (limited to 'Rpmdrake/gurpm.pm')
-rw-r--r--Rpmdrake/gurpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gurpm.pm b/Rpmdrake/gurpm.pm
index e532ff09..f3ece16a 100644
--- a/Rpmdrake/gurpm.pm
+++ b/Rpmdrake/gurpm.pm
@@ -39,7 +39,7 @@ sub new {
$mainw->{label} = gtknew('Label', text => $initializing, alignment => [ 0.5, 0 ]);
# 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}->get_style->font_desc, $context->get_language);
+ 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->{progressbar} = gtknew('ProgressBar');