diff options
author | Darin Adler <darin@src.gnome.org> | 2000-02-14 19:38:45 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-02-14 19:38:45 +0000 |
commit | 291fb2d6939ab04739a86b91e7c138b0396136b9 (patch) | |
tree | 867cbc2d07e35937540dae8a9657395795c36829 /libnautilus-private/nautilus-metadata.h | |
parent | 6db4c052ff0981ff003b46938b8141b6c03a9674 (diff) | |
download | nautilus-291fb2d6939ab04739a86b91e7c138b0396136b9.tar.gz |
Redid the icon factory to fix a few things:
* libnautilus/nautilus-icon-factory.c:
Redid the icon factory to fix a few things:
- Replaced the existing non-working count-based LRU algorithm with
one that works (uses a linked list).
- Keep resized icons in the cache.
- Hand out a single NautilusScalableIcon when multiple callers ask
for the same icon instead of a new one each time.
- Fixed one bug where pixbuf's would get an extra ref and never get
freed once they are no longer used.
* libnautilus/nautilus-metadata.h:
* src/nautilus-index-title.c (nautilus_index_title_set_up_info):
* libnautilus/nautilus-icon-factory.c
(nautilus_icon_factory_get_icon_for_file):
Added keys for the two pieces of metadata Andy just added.
* libnautilus/gnome-icon-container-private.h:
* libnautilus/gnome-icon-container.c: (scroll),
(make_icon_visible), (set_scroll_region): Fixed the code that
resizes the canvas as items are added and removed to properly
handle the case where the canvas extends into negative-coordinate
territory. This included removing the width and height that were
stored in the private structure.
* libnautilus/nautilus-directory.c: (nautilus_directory_get): Tiny
formatting tweak.
Diffstat (limited to 'libnautilus-private/nautilus-metadata.h')
-rw-r--r-- | libnautilus-private/nautilus-metadata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-metadata.h b/libnautilus-private/nautilus-metadata.h index 0ffe6b571..859a3fe90 100644 --- a/libnautilus-private/nautilus-metadata.h +++ b/libnautilus-private/nautilus-metadata.h @@ -29,6 +29,9 @@ * should define its key here, so we can keep track of the whole set easily. */ +#define NAUTILUS_CUSTOM_ICON_METADATA_KEY "CUSTOM_ICON" +#define NAUTILUS_NOTES_METADATA_KEY "NOTES" + #define ICON_VIEW_BACKGROUND_COLOR_METADATA_KEY "ICON_VIEW_BACKGROUND_COLOR" #define ICON_VIEW_ZOOM_LEVEL_METADATA_KEY "ICON_VIEW_ZOOM_LEVEL" #define ICON_VIEW_ICON_POSITION_METADATA_KEY "ICON_POSITION" @@ -40,5 +43,4 @@ #define INDEX_PANEL_BACKGROUND_COLOR_METADATA_KEY "INDEX_PANEL_BACKGROUND_COLOR" - #endif /* NAUTILUS_METADATA_H */ |