summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-09 16:09:15 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-13 15:05:42 +0100
commit8d89b454e7eb52922b2ca3847c0ac909b352e67f (patch)
tree49b373dbb1be557ba58e48a58c95df50d3851a47
parentef3587fbf0d3e83b082ac94054799ce98b2fe52d (diff)
downloadcaja-8d89b454e7eb52922b2ca3847c0ac909b352e67f.tar.bz2
caja-8d89b454e7eb52922b2ca3847c0ac909b352e67f.tar.xz
GTK3 icon-canvas-item: remove an useless snippet of drawing code
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=09f0b79
-rw-r--r--libcaja-private/caja-icon-canvas-item.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c
index 4bfffebf..d57b439f 100644
--- a/libcaja-private/caja-icon-canvas-item.c
+++ b/libcaja-private/caja-icon-canvas-item.c
@@ -1466,23 +1466,13 @@ draw_label_text (CajaIconCanvasItem *item,
text_rect.y0,
is_rtl_label_beside ? text_rect.x1 - text_rect.x0 - item->details->text_dx : text_rect.x1 - text_rect.x0,
text_rect.y1 - text_rect.y0);
+#if !GTK_CHECK_VERSION(3,0,0)
}
else if (!needs_highlight && !details->is_renaming &&
(details->is_prelit ||
details->is_highlighted_as_keyboard_focus))
{
/* clear the underlying icons, where the text or overlaps them. */
-#if GTK_CHECK_VERSION(3,0,0)
- cairo_save (cr);
- cairo_set_source_rgba (cr, 0, 0, 0, 0);
- cairo_rectangle (cr,
- text_rect.x0,
- text_rect.y0,
- text_rect.x1 - text_rect.x0,
- text_rect.y1 - text_rect.y0);
- cairo_fill (cr);
- cairo_restore (cr);
-#else
gdk_window_clear_area (gtk_layout_get_bin_window (&EEL_CANVAS (container)->layout),
text_rect.x0,
text_rect.y0,