From 01f743e5ac7c95b4fc80cd11d73657dc3176eaf0 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Thu, 11 Feb 2016 07:58:56 +0100 Subject: GTK+-3.20 panel-toplevel: don't use deprecated style properties taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=e56b20d --- mate-panel/panel-toplevel.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index fa1b757c..44f672af 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -2384,8 +2384,10 @@ calculate_minimum_height (GtkWidget *widget, #endif PangoContext *pango_context; PangoFontMetrics *metrics; +#if !GTK_CHECK_VERSION (3, 19, 0) int focus_width = 0; int focus_pad = 0; +#endif int ascent; int descent; int thickness; @@ -2413,17 +2415,23 @@ calculate_minimum_height (GtkWidget *widget, pango_font_metrics_unref (metrics); +#if !GTK_CHECK_VERSION (3, 19, 0) gtk_widget_style_get (widget, "focus-line-width", &focus_width, "focus-padding", &focus_pad, NULL); +#endif #if GTK_CHECK_VERSION (3, 0, 0) thickness = orientation & PANEL_HORIZONTAL_MASK ? padding.top + padding.bottom : padding.left + padding.right; +#if GTK_CHECK_VERSION (3, 19, 0) + return PANGO_PIXELS (ascent + descent) + thickness; +#else return PANGO_PIXELS (ascent + descent) + 2 * (focus_width + focus_pad) + thickness; +#endif } #else thickness = orientation & PANEL_HORIZONTAL_MASK ? -- cgit v1.2.1