[nautilus/gtk3-happyness] icon-canvas-item: set transparent background for highlight



commit 8eec4970947f5911ee3fe52a52926eedbee9426c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Sep 30 14:38:25 2010 +0200

    icon-canvas-item: set transparent background for highlight

 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 e92c31f..bec5d27 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -1324,8 +1324,7 @@ draw_label_text (NautilusIconCanvasItem *item,
 		    details->is_highlighted_as_keyboard_focus)) {
 		/* clear the underlying icons, where the text or overlaps them. */
                 cairo_save (cr);
-                /* FIMXEchpe draw the background here? */
-                cairo_set_source_rgb (cr, 1., 1., 1.);
+                cairo_set_source_rgba (cr, 0, 0, 0, 0);
                 cairo_rectangle (cr,
                                  text_rect.x0,
                                  text_rect.y0,
@@ -1333,13 +1332,6 @@ draw_label_text (NautilusIconCanvasItem *item,
                                  text_rect.y1 - text_rect.y0);
                 cairo_fill (cr);
                 cairo_restore (cr);
-        #if 0
-		gdk_window_clear_area (gtk_layout_get_bin_window (&EEL_CANVAS (container)->layout),
-				       text_rect.x0,
-				       text_rect.y0,
-				       text_rect.x1 - text_rect.x0,
-				       text_rect.y1 - text_rect.y0);
-        #endif
 	}
 
 	if (container->details->label_position == NAUTILUS_ICON_LABEL_POSITION_BESIDE) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]