Commit 23b358d7 authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

x should be changed when converting widget <=> bin_window coordinates, not

2007-07-11  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeview.c (gtk_tree_view_*_to_*_coords): x should be
	changed when converting widget <=> bin_window coordinates, not
	when bin_window <=> tree_window.


svn path=/trunk/; revision=18446
parent 4c40014a
2007-07-11 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_*_to_*_coords): x should be
changed when converting widget <=> bin_window coordinates, not
when bin_window <=> tree_window.
2007-07-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
......
......@@ -12974,7 +12974,7 @@ gtk_tree_view_convert_widget_to_bin_window_coords (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (bx)
*bx = wx;
*bx = wx + tree_view->priv->hadjustment->value;
if (by)
*by = wy - TREE_VIEW_HEADER_HEIGHT (tree_view);
}
......@@ -13002,7 +13002,7 @@ gtk_tree_view_convert_bin_window_to_widget_coords (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (wx)
*wx = bx;
*wx = bx - tree_view->priv->hadjustment->value;
if (wy)
*wy = by + TREE_VIEW_HEADER_HEIGHT (tree_view);
}
......@@ -13030,7 +13030,7 @@ gtk_tree_view_convert_tree_to_bin_window_coords (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (bx)
*bx = tx - tree_view->priv->hadjustment->value;
*bx = tx;
if (by)
*by = ty - tree_view->priv->dy;
}
......@@ -13058,7 +13058,7 @@ gtk_tree_view_convert_bin_window_to_tree_coords (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (tx)
*tx = bx + tree_view->priv->hadjustment->value;
*tx = bx;
if (ty)
*ty = by + tree_view->priv->dy;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment