diff options
author | Alexander Larsson <alexl@redhat.com> | 2003-03-06 17:07:32 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2003-03-06 17:07:32 +0000 |
commit | 5c02e4a9f8a44ff75324f252b807b8a65c01f15f (patch) | |
tree | d3cfed8ba5974724cbc61bde0f945566a05a7fa4 /libnautilus-private/nautilus-icon-canvas-item.h | |
parent | 2c4a5da982dc06a081f404e6301718be836bd3b1 (diff) | |
download | nautilus-5c02e4a9f8a44ff75324f252b807b8a65c01f15f.tar.gz |
Update according to NautilusIconFactory API changes.
2003-03-06 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-bookmark.c:
(nautilus_bookmark_get_pixbuf), (nautilus_bookmark_update_icon):
* libnautilus-private/nautilus-emblem-utils.c:
(nautilus_emblem_rename_emblem):
* src/nautilus-sidebar-title.c: (update_emblems):
* src/file-manager/fm-directory-view.c: (ready_to_load):
Update according to NautilusIconFactory API changes.
* libnautilus-private/nautilus-file.h:
* libnautilus-private/nautilus-file.c:
(nautilus_file_peek_top_left_text),
(nautilus_file_get_top_left_text):
Add needs_loading out parameter to nautilus_file_peek_top_left_text.
* libnautilus-private/nautilus-icon-canvas-item.h:
* libnautilus-private/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_finalize),
(nautilus_icon_canvas_item_set_embedded_text_rect),
(nautilus_icon_canvas_item_set_embedded_text),
(draw_embedded_text), (nautilus_icon_canvas_item_draw):
Render embedded text on exposes.
(nautilus_icon_canvas_item_get_image):
Return a GdkPixmap + mask instead of pixbuf, so that
we can do the text rendering on it.
* libnautilus-private/nautilus-icon-private.h:
* libnautilus-private/nautilus-icon-container.h:
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_clear), (icon_destroy),
(nautilus_icon_container_get_icon_images),
(nautilus_icon_container_start_monitor_top_left),
(nautilus_icon_container_stop_monitor_top_left),
(nautilus_icon_container_update_icon):
For icons that have an embedded text rect, request the
top-left text, and set the text on the canvas item.
* libnautilus-private/nautilus-icon-dnd.c:
(nautilus_icon_dnd_begin_drag):
nautilus_icon_canvas_item_get_image now returns a pixmap, handle this
change.
* libnautilus-private/nautilus-icon-factory.h:
* libnautilus-private/nautilus-icon-factory.c: (cache_key_destroy),
(nautilus_icon_factory_get_required_file_attributes),
(get_icon_from_cache), (nautilus_icon_factory_get_pixbuf_for_icon),
(cache_key_hash), (cache_key_equal),
(nautilus_icon_factory_get_pixbuf_for_file),
(nautilus_icon_factory_get_pixbuf_from_name),
(nautilus_icon_factory_remove_from_cache):
Remove all embedded text handling.
(nautilus_icon_factory_get_basic_file_attributes):
Remove, not needed anymore.
(nautilus_icon_factory_get_icon_for_file):
Pass in whether you want icons for text embedding or not.
* src/file-manager/fm-icon-container.c:
(fm_icon_container_get_icon_images),
(fm_icon_container_start_monitor_top_left),
(fm_icon_container_stop_monitor_top_left),
(fm_icon_container_class_init):
Update to new APIs. pass TRUE for embedd_text in get_icon_for_file.
Implement start/stop top left monitoring.
* src/file-manager/fm-icon-view.c:
(list_covers),(fm_icon_view_clear):
Clear the icon container before unreferencing the NautilusFiles.
Otherwise the stop_monitor call uses the unref:ed file.
Diffstat (limited to 'libnautilus-private/nautilus-icon-canvas-item.h')
-rw-r--r-- | libnautilus-private/nautilus-icon-canvas-item.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-canvas-item.h b/libnautilus-private/nautilus-icon-canvas-item.h index 42ceafd93..9f5538abe 100644 --- a/libnautilus-private/nautilus-icon-canvas-item.h +++ b/libnautilus-private/nautilus-icon-canvas-item.h @@ -63,13 +63,18 @@ GType nautilus_icon_canvas_item_get_type (void); /* attributes */ void nautilus_icon_canvas_item_set_image (NautilusIconCanvasItem *item, GdkPixbuf *image); -GdkPixbuf * nautilus_icon_canvas_item_get_image (NautilusIconCanvasItem *item); +GdkPixmap * nautilus_icon_canvas_item_get_image (NautilusIconCanvasItem *item, + GdkBitmap **mask); void nautilus_icon_canvas_item_set_emblems (NautilusIconCanvasItem *item, GList *emblem_pixbufs); void nautilus_icon_canvas_item_set_show_stretch_handles (NautilusIconCanvasItem *item, gboolean show_stretch_handles); void nautilus_icon_canvas_item_set_attach_points (NautilusIconCanvasItem *item, NautilusEmblemAttachPoints *attach_points); +void nautilus_icon_canvas_item_set_embedded_text_rect (NautilusIconCanvasItem *item, + const GdkRectangle *text_rect); +void nautilus_icon_canvas_item_set_embedded_text (NautilusIconCanvasItem *item, + const char *text); double nautilus_icon_canvas_item_get_max_text_width (NautilusIconCanvasItem *item); const char *nautilus_icon_canvas_item_get_editable_text (NautilusIconCanvasItem *icon_item); void nautilus_icon_canvas_item_set_renaming (NautilusIconCanvasItem *icon_item, |