summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-private.h
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2002-08-14 21:55:01 +0000
committerDave Camp <campd@src.gnome.org>2002-08-14 21:55:01 +0000
commitb373e215dd85409a7f524006d872283fad38c0e9 (patch)
tree11eb7932555d5ddf8c1b41177944b82d556c09d1 /libnautilus-private/nautilus-icon-private.h
parent527fa64843a32cfc48d573915919088dd649a102 (diff)
downloadnautilus-b373e215dd85409a7f524006d872283fad38c0e9.tar.gz
Install a frame_text gtk style property, so that accessible themes can
2002-08-14 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-icon-container.c: (nautilus_icon_container_class_init): Install a frame_text gtk style property, so that accessible themes can force the icon container to put a frame around unselected text. (setup_label_gcs): Use text[SELECTED] for the highlight text color, since it is now displayed against base[SELECTED]. If frame_text is set, use text[NORMAL] for normal text, since it will be displayed against base[NORMAL]. (nautilus_icon_container_set_use_drop_shadows): If frame_text is set, don't enable drop shadows, but save that they were requested. (style_set): Update use_drop_shadows based on whether frame_text is set and whether drop shadows were requested. (nautilus_icon_container_theme_changed): Call setup_label_gcs(). * libnautilus-private/nautilus-icon-canvas-item.c: (draw_frame): New function. (draw_or_measure_label_text): Rearranged for clarity, make it work when it is called for draw without being called for measure (ugh). Fixed a PangoLayout leak. If frame_text is set on the icon container, draw a background rectangle. (draw_label_layout): Don't drop shadow selected text. Drawing with text[SELECTED] on base[SELECTED] should look just fine without a drop shadow. * libnautilus-private/nautilus-icon-private.h: Added a drop_shadow_requested member.
Diffstat (limited to 'libnautilus-private/nautilus-icon-private.h')
-rw-r--r--libnautilus-private/nautilus-icon-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-icon-private.h b/libnautilus-private/nautilus-icon-private.h
index b3073a3a4..efad28272 100644
--- a/libnautilus-private/nautilus-icon-private.h
+++ b/libnautilus-private/nautilus-icon-private.h
@@ -224,6 +224,7 @@ struct NautilusIconContainerDetails {
/* Whether we should use drop shadows for the icon labels or not */
gboolean use_drop_shadows;
+ gboolean drop_shadows_requested;
};
/* Private functions shared by mutiple files. */