[Xfce4-commits] [xfce/exo] 16/21: ExoIconView: fix text selection background drawing
noreply at xfce.org
noreply at xfce.org
Tue Jul 12 04:08:08 CEST 2016
This is an automated email from the git hooks/post-receive script.
bluesabre pushed a commit to branch master
in repository xfce/exo.
commit 186fcaa8a0e9d314f59ee23b7f758e117d20a83b
Author: Jonas Kümmerlin <rgcjonas at gmail.com>
Date: Sat Aug 8 18:58:18 2015 +0200
ExoIconView: fix text selection background drawing
---
exo/exo-icon-view.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index f33cf90..495e70e 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -3981,6 +3981,7 @@ exo_icon_view_paint_item (ExoIconView *icon_view,
ExoIconViewCellInfo *info;
GtkStateType state;
GdkRectangle cell_area;
+ GdkRectangle aligned_area;
GtkStyleContext *style_context;
GList *lp;
@@ -4034,13 +4035,19 @@ exo_icon_view_paint_item (ExoIconView *icon_view,
/* FIXME: this is bad CSS usage */
if (info->is_text)
{
+ gtk_cell_renderer_get_aligned_area (info->cell,
+ GTK_WIDGET (icon_view),
+ flags,
+ &cell_area,
+ &aligned_area);
+
gtk_render_background (style_context, cr,
- cell_area.x, cell_area.y,
- cell_area.width, cell_area.height);
+ aligned_area.x, aligned_area.y,
+ aligned_area.width, aligned_area.height);
gtk_render_frame (style_context, cr,
- cell_area.x, cell_area.y,
- cell_area.width, cell_area.height);
+ aligned_area.x, aligned_area.y,
+ aligned_area.width, aligned_area.height);
}
gtk_cell_renderer_render (info->cell,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list