diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-09 16:09:15 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-13 15:05:42 +0100 |
commit | 8d89b454e7eb52922b2ca3847c0ac909b352e67f (patch) | |
tree | 49b373dbb1be557ba58e48a58c95df50d3851a47 /libcaja-private | |
parent | ef3587fbf0d3e83b082ac94054799ce98b2fe52d (diff) | |
download | caja-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
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-icon-canvas-item.c | 12 |
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, |