summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@gimp.org>2011-09-25 14:50:31 +0200
committerMichael Natterer <mitch@gimp.org>2011-09-25 14:55:23 +0200
commit33f7754a713969e26d3cc15b3543c5c3b35851a2 (patch)
tree34fc31436025af78d1b2d520c4f417edde84f756 /gtk/gtktreeviewcolumn.c
parent1c993d52b8bd6142e3241a474fd49580db99cb1c (diff)
downloadgtk+-33f7754a713969e26d3cc15b3543c5c3b35851a2.tar.gz
GtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()
Return FALSE again if the passed in cell is not part of the column. It was always returning TRUE since GtkCellArea was introduced.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index af79da7a6d..00c9a892eb 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -3095,6 +3095,9 @@ gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column,
priv = tree_column->priv;
+ if (! gtk_cell_area_has_renderer (priv->cell_area, cell_renderer))
+ return FALSE;
+
gtk_tree_view_get_background_area (GTK_TREE_VIEW (priv->tree_view),
NULL, tree_column, &cell_area);