diff options
author | Benjamin Otte <otte@redhat.com> | 2014-09-16 02:58:21 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-09-16 04:30:00 +0200 |
commit | 072c417416006d041f2cc17701c2b557c9d16152 (patch) | |
tree | f1bee119c60c9d04f2290b97dde99f10f75072ad /gtk/gtkiconview.c | |
parent | 48d56c4077243a06b6d99b16dc647f3271e43208 (diff) | |
download | gtk+-072c417416006d041f2cc17701c2b557c9d16152.tar.gz |
iconview: Remove iterm->prelight
item->prelight
is always equal to
iconview->priv->last_prelight == item
so there is no need to track it separately.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r-- | gtk/gtkiconview.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 9267dd6ddc..bdafff7ce2 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -2042,13 +2042,11 @@ gtk_icon_view_motion (GtkWidget *widget, { if (item != NULL) { - item->prelight = TRUE; gtk_icon_view_queue_draw_item (icon_view, item); } if (last_prelight_item != NULL) { - last_prelight_item->prelight = FALSE; gtk_icon_view_queue_draw_item (icon_view, icon_view->priv->last_prelight); } @@ -3107,7 +3105,7 @@ gtk_icon_view_paint_item (GtkIconView *icon_view, flags |= GTK_CELL_RENDERER_SELECTED; } - if (item->prelight) + if (item == priv->last_prelight) { state |= GTK_STATE_FLAG_PRELIGHT; flags |= GTK_CELL_RENDERER_PRELIT; |