[nautilus] icon-canvas-item: make the icon frame transparent when not prelit
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] icon-canvas-item: make the icon frame transparent when not prelit
- Date: Fri, 18 Feb 2011 16:37:42 +0000 (UTC)
commit 6a11ecdde028a4972559491a3c0ec7799cc8c882
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 18 11:36:45 2011 -0500
icon-canvas-item: make the icon frame transparent when not prelit
This fixes icons on the desktop appearing weird.
libnautilus-private/nautilus-icon-canvas-item.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c
index 479f987..4f71146 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -1148,15 +1148,7 @@ draw_label_text (NautilusIconCanvasItem *item,
"activate_prelight_icon_label", &prelight_label,
NULL);
if (!needs_highlight && details->text_width > 0 && details->text_height > 0) {
- if (!(prelight_label && item->details->is_prelit)) {
- draw_frame (item,
- cr,
- &container->details->normal_color_rgba,
- text_rect.x0,
- text_rect.y0,
- text_rect.x1 - text_rect.x0,
- text_rect.y1 - text_rect.y0);
- } else {
+ if (prelight_label && item->details->is_prelit) {
draw_frame (item,
cr,
&container->details->prelight_color_rgba,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]