summaryrefslogtreecommitdiff
path: root/applets/clock
diff options
context:
space:
mode:
authoryetist <[email protected]>2015-06-19 00:26:52 +0800
committerinfirit <[email protected]>2015-08-26 14:44:57 +0200
commit630cb2c0ca309f077fe3f92be0032c1e102efd06 (patch)
treefbbd2059930c3aeb3ccb3fcaa1c057b21b2f0f57 /applets/clock
parent2298f4c63df3f2b56c2efb0a0a1b4bc9f48a5517 (diff)
downloadmate-panel-630cb2c0ca309f077fe3f92be0032c1e102efd06.tar.bz2
mate-panel-630cb2c0ca309f077fe3f92be0032c1e102efd06.tar.xz
Gtk3: Don't use deprecated gtk_style_context_get_font
Diffstat (limited to 'applets/clock')
-rw-r--r--applets/clock/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index cdc17f01..bcd89fc0 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -410,8 +410,8 @@ calculate_minimum_height (GtkWidget *widget,
#if GTK_CHECK_VERSION (3, 0, 0)
state = gtk_widget_get_state_flags (widget);
style_context = gtk_widget_get_style_context (widget);
- font_desc = gtk_style_context_get_font (style_context, state);
+ gtk_style_context_get (style_context, state, GTK_STYLE_PROPERTY_FONT, &font_desc, NULL);
pango_context = gtk_widget_get_pango_context (widget);
metrics = pango_context_get_metrics (pango_context,
font_desc,