From ab7987701bcea97e4326fecd161c3137080f6077 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 31 Jan 2018 09:46:08 +0300 Subject: require GTK+ 3.22 and GLib 2.50 --- mate-panel/button-widget.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'mate-panel/button-widget.c') diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c index e3f0fa63..94d031f0 100644 --- a/mate-panel/button-widget.c +++ b/mate-panel/button-widget.c @@ -415,29 +415,11 @@ button_widget_draw (GtkWidget *widget, } if (gtk_widget_has_focus (widget)) { -#if !GTK_CHECK_VERSION (3, 20, 0) - gint focus_pad; -#endif - gtk_style_context_save (context); gtk_style_context_set_state (context, state_flags); -#if !GTK_CHECK_VERSION (3, 20, 0) - gtk_widget_style_get (widget, - "focus-padding", &focus_pad, - NULL); - x = focus_pad; - y = focus_pad; - w = width - 2 * focus_pad; - h = height - 2 * focus_pad; -#endif - cairo_save (cr); -#if GTK_CHECK_VERSION (3, 20, 0) gtk_render_focus (context, cr, 0, 0, width, height); -#else - gtk_render_focus (context, cr, x, y, w, h); -#endif cairo_restore (cr); gtk_style_context_restore (context); -- cgit v1.2.1