summaryrefslogtreecommitdiff
path: root/src/theme-viewer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme-viewer.c')
-rw-r--r--src/theme-viewer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theme-viewer.c b/src/theme-viewer.c
index 0f8a24a..ef3ffc5 100644
--- a/src/theme-viewer.c
+++ b/src/theme-viewer.c
@@ -55,7 +55,8 @@ get_flags (GtkWidget *widget)
static int
get_text_height (GtkWidget *widget)
{
- return meta_gtk_widget_get_text_height (widget);
+ return meta_pango_font_desc_get_text_height (widget->style->font_desc,
+ gtk_widget_get_pango_context (widget));
}
static PangoLayout*