diff options
Diffstat (limited to 'gtk/gtkclist.c')
-rw-r--r-- | gtk/gtkclist.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 76581eb1a3..653783417e 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -3026,13 +3026,11 @@ gtk_clist_set_row_height (GtkCList *clist, { PangoContext *context = gtk_widget_get_pango_context (widget); PangoFontMetrics metrics; - PangoFont *font = pango_context_load_font (context, widget->style->font_desc); - pango_font_get_metrics (font, - pango_context_get_language (context), - &metrics); - - g_object_unref (G_OBJECT (font)); + pango_context_get_metrics (context, + widget->style->font_desc, + pango_context_get_language (context), + &metrics); if (!GTK_CLIST_ROW_HEIGHT_SET(clist)) clist->row_height = PANGO_PIXELS (metrics.ascent + metrics.descent); |