summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-04 21:32:47 +0100
committerraveit65 <[email protected]>2017-03-06 16:10:06 +0100
commite5949fd1ac58c316349f06b987ab15efcdc0fac7 (patch)
tree6b943430d7149d0c3e940a69f55bb8a39c87dff8
parent5249fcc5e9fcd02cbf064fbc1a1da4fa11503e2c (diff)
downloadatril-e5949fd1ac58c316349f06b987ab15efcdc0fac7.tar.bz2
atril-e5949fd1ac58c316349f06b987ab15efcdc0fac7.tar.xz
egg-toolbar-editor.c: don't use deprecated gtk_icon_size_lookup_for_settings
-rw-r--r--cut-n-paste/toolbar-editor/egg-toolbar-editor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
index fa79318b..e7349acc 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
@@ -396,18 +396,15 @@ event_box_realize_cb (GtkWidget *widget, GtkImage *icon)
const gchar *icon_name;
GdkScreen *screen;
GtkIconTheme *icon_theme;
- GtkSettings *settings;
gint width, height;
GdkPixbuf *pixbuf;
gtk_image_get_icon_name (icon, &icon_name, NULL);
screen = gtk_widget_get_screen (widget);
icon_theme = gtk_icon_theme_get_for_screen (screen);
- settings = gtk_settings_get_for_screen (screen);
- if (!gtk_icon_size_lookup_for_settings (settings,
- GTK_ICON_SIZE_LARGE_TOOLBAR,
- &width, &height))
+ if (!gtk_icon_size_lookup (GTK_ICON_SIZE_LARGE_TOOLBAR,
+ &width, &height))
{
width = height = 24;
}