summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-19 16:33:11 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-01 23:18:39 +0100
commit4e64ecb701062f1b7962b2024f93fc1c6ebee13d (patch)
treeda4a143a58d58fec95b81641e77ed6d8dec42107
parentf2c09bf97244ffb387b9a1731767741aee9fad93 (diff)
downloadpluma-4e64ecb701062f1b7962b2024f93fc1c6ebee13d.tar.bz2
pluma-4e64ecb701062f1b7962b2024f93fc1c6ebee13d.tar.xz
Gtk+-3.10: don't use deprecated gtk_icon_size_lookup_for_settings
-rw-r--r--pluma/pluma-close-button.c4
-rw-r--r--pluma/pluma-tab.c4
2 files changed, 8 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);
diff --git a/pluma/pluma-tab.c b/pluma/pluma-tab.c
index d06aa215..11407b44 100644
--- a/pluma/pluma-tab.c
+++ b/pluma/pluma-tab.c
@@ -1868,10 +1868,14 @@ _pluma_tab_get_icon (PlumaTab *tab)
theme = gtk_icon_theme_get_for_screen (screen);
g_return_val_if_fail (theme != NULL, NULL);
+#if GTK_CHECK_VERSION (3, 10, 0)
+ gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &icon_size);
+#else
gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (GTK_WIDGET (tab)),
GTK_ICON_SIZE_MENU,
NULL,
&icon_size);
+#endif
switch (tab->priv->state)
{