summaryrefslogtreecommitdiff
path: root/pluma/pluma-close-button.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-close-button.c')
-rw-r--r--pluma/pluma-close-button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pluma/pluma-close-button.c b/pluma/pluma-close-button.c
index ab6ef4a5..be0cc421 100644
--- a/pluma/pluma-close-button.c
+++ b/pluma/pluma-close-button.c
@@ -30,8 +30,12 @@ pluma_close_button_style_set (GtkWidget *button,
{
gint h, w;
+#if GTK_CHECK_VERSION (3, 10, 0)
+ gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h);
+#else
gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (button),
GTK_ICON_SIZE_MENU, &w, &h);
+#endif
gtk_widget_set_size_request (button, w + 2, h + 2);