   treeViewGetCellArea,
   treeViewGetBackgroundArea,
   treeViewGetVisibleRect,
-  treeViewWidgetToTreeCoords,
-  treeViewTreeToWidgetCoords,
+#if GTK_CHECK_VERSION(2,12,0)
+  treeViewConvertBinWindowToTreeCoords,
+  treeViewConvertBinWindowToWidgetCoords,
+  treeViewConvertTreeToBinWindowCoords,
+  treeViewConvertTreeToWidgetCoords,
+  treeViewConvertWidgetToBinWindowCoords,
+  treeViewConvertWidgetToTreeCoords,
+#endif
   treeViewCreateRowDragIcon,
   treeViewGetEnableSearch,
   treeViewSetEnableSearch,

  tx <- peek txPtr
  ty <- peek tyPtr
  return (fromIntegral tx, fromIntegral ty)

-- | Creates a 'Pixmap' representation of the row at the given path. This image
-- can be used for a drag icon.

  wy <- peek wyPtr
  return (fromIntegral wx, fromIntegral wy)

-- | @gtkTreeViewWidgetToTreeCoords@ has been deprecated since version 2.12 and should not be used in
-- newly-written code. Due to historial reasons the name of this function is incorrect. For converting
-- coordinates relative to the widget to @binWindow@ coordinates, please see
-- 'treeViewConvertWidgetToBinWindowCoords'.
-- 
-- Converts @binWindow@ coordinates to coordinates for the tree (the full scrollable area of the tree).
--
treeViewWidgetToTreeCoords :: TreeViewClass self => self
 -> Point    -- ^ @(wx, wy)@ - widget X and Y coordinates
