diff options
-rw-r--r-- | Rpmdrake/gurpm.pm | 2 |
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'); |