summaryrefslogtreecommitdiff
path: root/mate-panel/button-widget.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-31 09:46:08 +0300
committermonsta <[email protected]>2018-01-31 09:46:08 +0300
commitab7987701bcea97e4326fecd161c3137080f6077 (patch)
tree3e49c11405cc69fab4b8a10ba4342cf70078d22a /mate-panel/button-widget.c
parentf553591e0562fd7b4bba0fe6a6182bc0b3747a34 (diff)
downloadmate-panel-ab7987701bcea97e4326fecd161c3137080f6077.tar.bz2
mate-panel-ab7987701bcea97e4326fecd161c3137080f6077.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'mate-panel/button-widget.c')
-rw-r--r--mate-panel/button-widget.c18
1 files changed, 0 insertions, 18 deletions
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);