From df299574f6db9bcdccc9413f173c2dd4ceff6467 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 14 Jun 2021 08:40:35 -0400 Subject: iconcache: replace width and height with size in read_icons meta_read_icons is used in MetaWindow. In it ideal_width and ideal_height have same value - default icon size. Same with ideal_mini_width and ideal_mini_height. Simplify function by replacing width and height parameters with size parameter. Adapted from https://gitlab.gnome.org/GNOME/libwnck/-/commit/c1460f79 --- src/ui/preview-widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/preview-widget.c') diff --git a/src/ui/preview-widget.c b/src/ui/preview-widget.c index e6e08073..9c7fd3ec 100644 --- a/src/ui/preview-widget.c +++ b/src/ui/preview-widget.c @@ -471,13 +471,13 @@ meta_preview_get_mini_icon (void) if (icon_exists) default_icon = gtk_icon_theme_load_icon (theme, META_DEFAULT_ICON_NAME, - META_MINI_ICON_WIDTH, + META_MINI_ICON_SIZE, 0, NULL); else default_icon = gtk_icon_theme_load_icon (theme, "image-missing", - META_MINI_ICON_WIDTH, + META_MINI_ICON_SIZE, 0, NULL); -- cgit v1.2.1