summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-01-16 10:48:32 +0100
committerraveit65 <[email protected]>2022-01-30 18:49:31 +0100
commit35ce261e7de613029461f1082b8c44c397316e37 (patch)
treea8187a29c1f9c48f7c546884d46fb0caa863bc9a /src
parenta21b7c9050b09167ef70d2dc5686d2dbdeef232e (diff)
downloadmarco-35ce261e7de613029461f1082b8c44c397316e37.tar.bz2
marco-35ce261e7de613029461f1082b8c44c397316e37.tar.xz
theme-viewer: use GTK_STYLE_PROPERTY_FONT
Diffstat (limited to 'src')
-rw-r--r--src/ui/theme-viewer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c
index e301e9b6..21fafbd7 100644
--- a/src/ui/theme-viewer.c
+++ b/src/ui/theme-viewer.c
@@ -915,7 +915,9 @@ main (int argc, char **argv)
gtk_widget_realize (window);
style = gtk_widget_get_style_context (window);
- gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL, "font", &font_desc, NULL);
+ gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL,
+ GTK_STYLE_PROPERTY_FONT, &font_desc,
+ NULL);
g_assert (style);
g_assert (font_desc);
@@ -993,7 +995,9 @@ get_text_height (GtkWidget *widget)
int text_height;
style = gtk_widget_get_style_context (widget);
- gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL, "font", &font_desc, NULL);
+ gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL,
+ GTK_STYLE_PROPERTY_FONT, &font_desc,
+ NULL);
text_height = meta_pango_font_desc_get_text_height (font_desc, gtk_widget_get_pango_context (widget));
pango_font_description_free (font_desc);