diff options
author | raveit65 <[email protected]> | 2017-03-04 13:29:24 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-03-06 16:10:06 +0100 |
commit | 5249fcc5e9fcd02cbf064fbc1a1da4fa11503e2c (patch) | |
tree | 1b9e137d1bbf0ad4009e08b2e989c57a9d7da2a6 /cut-n-paste/toolbar-editor | |
parent | 4ace2687fc30d53a673d3b1a454285b91f72fb00 (diff) | |
download | atril-5249fcc5e9fcd02cbf064fbc1a1da4fa11503e2c.tar.bz2 atril-5249fcc5e9fcd02cbf064fbc1a1da4fa11503e2c.tar.xz |
egg-editable-toolbar: don't use deprecated gtk_icon_size_lookup_for_settings
Diffstat (limited to 'cut-n-paste/toolbar-editor')
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 4885fc37..54f1e823 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -493,16 +493,13 @@ configure_item_cursor (GtkToolItem *item, { GdkScreen *screen; GtkIconTheme *icon_theme; - GtkSettings *settings; gint width, height; 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; } @@ -1809,14 +1806,10 @@ new_pixbuf_from_widget (GtkWidget *widget) GtkWidget *window; GdkPixbuf *pixbuf; gint icon_height; - GdkScreen *screen; - screen = gtk_widget_get_screen (widget); - - if (!gtk_icon_size_lookup_for_settings (gtk_settings_get_for_screen (screen), - GTK_ICON_SIZE_LARGE_TOOLBAR, - NULL, - &icon_height)) + if (!gtk_icon_size_lookup (GTK_ICON_SIZE_LARGE_TOOLBAR, + NULL, + &icon_height)) { icon_height = DEFAULT_ICON_HEIGHT; } |