diff options
author | raveit65 <[email protected]> | 2017-04-29 13:38:44 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-01 07:33:12 +0200 |
commit | ff8c348319112e30d6ab93441e9e98a55e82c459 (patch) | |
tree | 4de87d65633ee263ee2338b0a9511ef615c34c63 | |
parent | b2585533bee69540922f78c91d8afea6b7efa5c4 (diff) | |
download | engrampa-ff8c348319112e30d6ab93441e9e98a55e82c459.tar.bz2 engrampa-ff8c348319112e30d6ab93441e9e98a55e82c459.tar.xz |
gtk-utils: avoid deprecated gtk_icon_size_lookup_for_settings
-rw-r--r-- | src/gtk-utils.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c index 56b7add..d805c45 100644 --- a/src/gtk-utils.c +++ b/src/gtk-utils.c @@ -733,9 +733,8 @@ get_folder_pixbuf_size_for_list (GtkWidget *widget) { int icon_width, icon_height; - gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (widget), - GTK_ICON_SIZE_SMALL_TOOLBAR, - &icon_width, &icon_height); + gtk_icon_size_lookup (GTK_ICON_SIZE_SMALL_TOOLBAR, + &icon_width, &icon_height); return MAX (icon_width, icon_height); } @@ -836,8 +835,7 @@ _gtk_widget_lookup_for_size (GtkWidget *widget, GtkIconSize icon_size) { int w, h; - gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (widget), - icon_size, - &w, &h); + gtk_icon_size_lookup (icon_size, + &w, &h); return MAX (w, h); } |