[gtk+] GtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()
- Date: Sun, 25 Sep 2011 12:56:41 +0000 (UTC)
commit 33f7754a713969e26d3cc15b3543c5c3b35851a2
Author: Michael Natterer <mitch gimp org>
Date: Sun Sep 25 14:50:31 2011 +0200
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.
gtk/gtktreeviewcolumn.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index af79da7..00c9a89 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]