+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:
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);
}
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);
}
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;
}
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;
}