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/core/iconcache.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core/iconcache.h') diff --git a/src/core/iconcache.h b/src/core/iconcache.h index 7e9a1f6d..a558a945 100644 --- a/src/core/iconcache.h +++ b/src/core/iconcache.h @@ -72,11 +72,9 @@ gboolean meta_read_icons (MetaScreen *screen, Pixmap wm_hints_pixmap, Pixmap wm_hints_mask, GdkPixbuf **iconp, - int ideal_width, - int ideal_height, + int ideal_size, GdkPixbuf **mini_iconp, - int ideal_mini_width, - int ideal_mini_height); + int ideal_mini_size); #endif -- cgit v1.2.1