diff options
author | yetist <[email protected]> | 2015-06-19 00:26:52 +0800 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-26 14:44:57 +0200 |
commit | 630cb2c0ca309f077fe3f92be0032c1e102efd06 (patch) | |
tree | fbbd2059930c3aeb3ccb3fcaa1c057b21b2f0f57 /applets/clock | |
parent | 2298f4c63df3f2b56c2efb0a0a1b4bc9f48a5517 (diff) | |
download | mate-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.c | 2 |
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, |