[gtk+] iconview: always draw a cell background
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconview: always draw a cell background
- Date: Tue, 16 Sep 2014 02:31:16 +0000 (UTC)
commit 48d56c4077243a06b6d99b16dc647f3271e43208
Author: Benjamin Otte <otte redhat com>
Date: Tue Sep 16 02:55:24 2014 +0200
iconview: always draw a cell background
Don't just draw it for selected cells.
gtk/gtkiconview.c | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 91efa40..9267dd6 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -3115,19 +3115,16 @@ gtk_icon_view_paint_item (GtkIconView *icon_view,
gtk_style_context_set_state (style_context, state);
- if (item->selected)
- {
- gtk_render_background (style_context, cr,
- x - icon_view->priv->item_padding,
- y - icon_view->priv->item_padding,
- item->cell_area.width + icon_view->priv->item_padding * 2,
- item->cell_area.height + icon_view->priv->item_padding * 2);
- gtk_render_frame (style_context, cr,
- x - icon_view->priv->item_padding,
- y - icon_view->priv->item_padding,
- item->cell_area.width + icon_view->priv->item_padding * 2,
- item->cell_area.height + icon_view->priv->item_padding * 2);
- }
+ gtk_render_background (style_context, cr,
+ x - priv->item_padding,
+ y - priv->item_padding,
+ item->cell_area.width + priv->item_padding * 2,
+ item->cell_area.height + priv->item_padding * 2);
+ gtk_render_frame (style_context, cr,
+ x - priv->item_padding,
+ y - priv->item_padding,
+ item->cell_area.width + priv->item_padding * 2,
+ item->cell_area.height + priv->item_padding * 2);
cell_area.x = x;
cell_area.y = y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]