summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2005-06-19 12:44:12 +0000
committerKristian Rietveld <kristian@src.gnome.org>2005-06-19 12:44:12 +0000
commitd4fdc6b7a90482c4eebccbf1a7d1bb19289818fa (patch)
tree4c0fb3b603362d887f1df7a6c39b4063bc833090 /gtk/gtktreeviewcolumn.c
parenta2ea759334b897b194714433a646c288a5c05617 (diff)
downloadgtk+-d4fdc6b7a90482c4eebccbf1a7d1bb19289818fa.tar.gz
This commit includes a fix for #169463, Stefan Kost.
2005-06-19 Kristian Rietveld <kris@gtk.org> This commit includes a fix for #169463, Stefan Kost. * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size): when cell_area is set, return cell_area width/height as width/height, so the focus rectangle will be drawn correctly. * gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get of focus-line-width property, (validate_row): take focus_line_width into account. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): also take focus_line_width into account when calculating the cell_area y and height (before, we only took it into account when calculating x and width).
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index d7ccf5f67a..945d0311f8 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -2710,6 +2710,8 @@ gtk_tree_view_column_cell_process_action (GtkTreeViewColumn *tree_column,
real_background_area = *background_area;
real_cell_area.x += focus_line_width;
+ real_cell_area.y += focus_line_width;
+ real_cell_area.height -= 2 * focus_line_width;
/* Find out how much extra space we have to allocate */
for (list = tree_column->cell_list; list; list = list->next)