Re: Articles on icon design
- From: Lars Weber <lars brokenbits de>
- To: Luca Ferretti <elle uca libero it>
- Cc: Alexander Larsson <alexl redhat com>, Calum Benson <calum benson sun com>, usability gnome org, nautilus-list gnome org
- Subject: Re: Articles on icon design
- Date: 18 Dec 2002 18:32:51 +0100
> > Its sort of a neat idea anyway. You could define some amount of space that
> > is considered "a lot" and measure trash contents based on that.
---8<---
#include <wink.h>
#define TRASH_HAS_NO_SMALL_FILES 0x00 /* use `lid beside trash can' icon */
#define TRASH_HAS_SMALL_FILES 0x01 /* use `lid on trash can' icon */
#define TRASH_HAS_MANY_SMALL_FILES 0x02 /* use `overflowing trash can' icon */
#define TRASH_HAS_LARGE_FILES 0x04 /* add big stuff beside trash can */
#define TRASH_HAS_MANY_LARGE_FILES 0x08 /* add more big stuff */
#define TRASH_HAS_OLD_FILES 0x10 /* add `flies'-animation to icon */
void
set_trash_icon (void)
{
int icon_flags = TRASH_HAS_NO_SMALL_FILES;
if ( trash_has_many_small_files () )
icon_flags = TRASH_HAS_MANY_SMALL_FILES;
else if ( trash_has_small_files () )
icon_flags = TRASH_HAS_SMALL_FILES;
if ( trash_has_many_large_files () )
icon_flags = icon_flags | TRASH_HAS_MANY_LARGE_FILES;
else if ( trash_has_large_files () )
icon_flags = icon_flags | TRASH_HAS_LARGE_FILES;
if ( trash_has_old_files () )
icon_flags = icon_flags | HAS_OLD_FILES;
really_set_trash_icon (icon_flags);
}
--->8---
Regards,
Lars
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]