diff options
author | John Harper <jsh@eazel.com> | 2001-01-10 01:32:49 +0000 |
---|---|---|
committer | John Harper <jsh@src.gnome.org> | 2001-01-10 01:32:49 +0000 |
commit | 893ed95c74e4134f4dad96356fb2930916936c84 (patch) | |
tree | 7ce66bc532363611a1f9f929633cc39ff6033daa /cut-n-paste-code | |
parent | 654e4b82fb768ac24c30c09f6aa116eeac85f2df (diff) | |
download | nautilus-893ed95c74e4134f4dad96356fb2930916936c84.tar.gz |
reviewed by: Pavel Cisler <pavel@eazel.com>
2001-01-09 John Harper <jsh@eazel.com>
reviewed by: Pavel Cisler <pavel@eazel.com>
Work to make icons in list view draw anti-aliased in respect to
the background. Fixes bug 1659
* cut-n-paste-code/widgets/nautilusclist/nautilusclist.h
(NautilusCellType): added new type NAUTILUS_CELL_PIXBUF at end
of this enum
* libnautilus-extensions/nautilus-list.c (NautilusListDetails):
added fields for RGB values of all background colors
(nautilus_gdk_set_shifted_foreground_gc_color): return the
shifted RGB value
(nautilus_list_setup_style_colors): save RGB values of all
background colors into the details structure
(get_cell_style): added another parameter: `bg_rgb', when a non
null pointer it gets set to the RGB value of the chosen
background color
(draw_cell_pixbuf): added another parameter: `bg_rgb'.
Composite the pixbuf onto a square of this color (using the
full 8-bit alpha), then blit the entire square onto the
drawable
(draw_cell): added cases to handle NAUTILUS_CELL_PIXBUF type.
Also pass the extra arg to draw_cell_pixbuf in
NAUTILUS_CELL_PIXBUF_LIST case
(nautilus_list_set_cell_contents): handle NAUTILUS_CELL_PIXBUF
case
(nautilus_list_set_pixbuf_list): broke out contents into the
new function set_list_cell, parameterized by the
NautilusCellType in addition
(nautilus_list_set_pixbuf): new function, calls set_list_cell
* src/file-manager/fm-list-view.c (install_row_images): get the
file's icon as a pixbuf, not a pixmap/mask pair. Then use
nautilus_list_set_pixbuf to install it in the list cell
Diffstat (limited to 'cut-n-paste-code')
-rw-r--r-- | cut-n-paste-code/widgets/nautilusclist/nautilusclist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cut-n-paste-code/widgets/nautilusclist/nautilusclist.h b/cut-n-paste-code/widgets/nautilusclist/nautilusclist.h index 35be946a1..51300f6dd 100644 --- a/cut-n-paste-code/widgets/nautilusclist/nautilusclist.h +++ b/cut-n-paste-code/widgets/nautilusclist/nautilusclist.h @@ -70,7 +70,8 @@ typedef enum NAUTILUS_CELL_PIXTEXT, NAUTILUS_CELL_WIDGET, NAUTILUS_CELL_PIXBUF_LIST, /* new for Nautilus */ - NAUTILUS_CELL_LINK_TEXT /* new for Nautilus */ + NAUTILUS_CELL_LINK_TEXT, /* new for Nautilus */ + NAUTILUS_CELL_PIXBUF, /* new for Nautilus */ } NautilusCellType; typedef enum |