summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-19 13:50:28 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-06-19 13:52:11 -0400
commit72ece5a62cca537e6925219ab5f23ff3c6c6e1b3 (patch)
tree9d22ef774e88956f6b714b7202e8091a388ec689 /gtk/gtkiconview.c
parent640f9d110e5526bba64fd4ab85f9a3dfbb5c6ba8 (diff)
downloadgtk+-72ece5a62cca537e6925219ab5f23ff3c6c6e1b3.tar.gz
GtkIconView: Remove a no-longer-valid optimization
The rubberband rendering code was assuming that we just have a 1-pixel border and the rest of the rubberband is uniform. That is not a safe assumption to make with css-styled rubberbands, so remove it.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 64ae182ed1..730dc14816 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -2522,7 +2522,6 @@ gtk_icon_view_update_rubberband (gpointer data)
gint x, y;
GdkRectangle old_area;
GdkRectangle new_area;
- GdkRectangle common;
cairo_region_t *invalid_region;
icon_view = GTK_ICON_VIEW (data);
@@ -2551,23 +2550,6 @@ gtk_icon_view_update_rubberband (gpointer data)
invalid_region = cairo_region_create_rectangle (&old_area);
cairo_region_union_rectangle (invalid_region, &new_area);
- gdk_rectangle_intersect (&old_area, &new_area, &common);
- if (common.width > 2 && common.height > 2)
- {
- cairo_region_t *common_region;
-
- /* make sure the border is invalidated */
- common.x += 1;
- common.y += 1;
- common.width -= 2;
- common.height -= 2;
-
- common_region = cairo_region_create_rectangle (&common);
-
- cairo_region_subtract (invalid_region, common_region);
- cairo_region_destroy (common_region);
- }
-
gdk_window_invalidate_region (icon_view->priv->bin_window, invalid_region, TRUE);
cairo_region_destroy (invalid_region);