From 8b37981175499c9c876648165ddb7a5f94ae6849 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 18:12:16 +0100 Subject: GTK3 icon-canvas-item: make the icon frame transparent when not prelit This fixes icons on the desktop appearing weird taken from: https://git.gnome.org/browse/nautilus/commit/?id=6a11ecd --- libcaja-private/caja-icon-canvas-item.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index d57b439f..858a7393 100644 --- a/libcaja-private/caja-icon-canvas-item.c +++ b/libcaja-private/caja-icon-canvas-item.c @@ -1503,20 +1503,19 @@ draw_label_text (CajaIconCanvasItem *item, NULL); #if GTK_CHECK_VERSION(3,0,0) if (!needs_highlight && details->text_width > 0 && details->text_height > 0) + { + if (prelight_label && item->details->is_prelit) { + draw_frame (item, + cr, + &container->details->prelight_color_rgba, #else if (needs_frame && !needs_highlight && details->text_width > 0 && details->text_height > 0) -#endif { if (!(prelight_label && item->details->is_prelit)) { draw_frame (item, -#if GTK_CHECK_VERSION(3,0,0) - cr, - &container->details->normal_color_rgba, -#else drawable, container->details->normal_color_rgba, -#endif create_mask, text_rect.x0, text_rect.y0, @@ -1526,10 +1525,6 @@ draw_label_text (CajaIconCanvasItem *item, else { draw_frame (item, -#if GTK_CHECK_VERSION(3,0,0) - cr, - &container->details->prelight_color_rgba, -#else drawable, container->details->prelight_color_rgba, #endif -- cgit v1.2.1