short circuit via use_drop_shadows doing a horribly expensive

2002-07-08  Michael Meeks  <michael@ximian.com>

	* libnautilus-private/nautilus-icon-container.c
	(update_label_color): short circuit via use_drop_shadows
	doing a horribly expensive eel_background_is_dark on the
	(potentially huge) desktop background.
This commit is contained in:
Michael Meeks 2002-07-08 19:16:34 +00:00 committed by Michael Meeks
parent b958002565
commit 38b457f60f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2002-07-08 Michael Meeks <michael@ximian.com>
* libnautilus-private/nautilus-icon-container.c
(update_label_color): short circuit via use_drop_shadows
doing a horribly expensive eel_background_is_dark on the
(potentially huge) desktop background.
2002-07-08 Michael Meeks <michael@ximian.com>
* src/nautilus-zoom-control.c

View file

@ -5117,7 +5117,7 @@ update_label_color (EelBackground *background,
container->details->label_color_highlight = eel_gdk_rgb_to_color (0xFFFFFF);
container->details->label_info_color_highlight = eel_gdk_rgb_to_color (0xCCCCCC);
if (eel_background_is_dark (background) || container->details->use_drop_shadows) {
if (container->details->use_drop_shadows || eel_background_is_dark (background)) {
container->details->label_color = eel_gdk_rgb_to_color (0xEFEFEF);
container->details->label_info_color = eel_gdk_rgb_to_color (light_info_value);
} else { /* converse */