From ea435b99a804b755312bcbb9371faa4c0111d43e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 14 Feb 2008 10:47:49 +0100 Subject: Introducing the icon cache. If an icon is the same as one in the cache, then it uses that one. icons of different sizes (from the same client) are linked together into one, and resizes of icons are cached and linked to all the various sizes. so you only need one icon in memory for all your terminals now. ya! --- openbox/menu.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'openbox/menu.h') diff --git a/openbox/menu.h b/openbox/menu.h index 752a6771..c488f67d 100644 --- a/openbox/menu.h +++ b/openbox/menu.h @@ -115,11 +115,9 @@ struct _ObNormalMenuEntry { /* List of ObActions */ GSList *actions; - /* Icon shit */ - gint icon_width; - gint icon_height; - gint icon_alpha; - RrPixel32 *icon_data; + /* Icon stuff. If you set this, make sure you RrImageRef() it too. */ + RrImage *icon; + gint icon_alpha; /* Mask icon */ RrPixmapMask *mask; -- cgit v1.2.3