mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
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:
parent
b958002565
commit
38b457f60f
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue