changeset 1147:4220d5536ad9

fixed usage of deprecated functions - patch by Omari Stephens
author nadvornik
date Sat, 15 Nov 2008 19:13:43 +0000
parents 11b93d0791db
children 95860439070b
files src/ui_tree_edit.c
diffstat 1 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui_tree_edit.c	Sat Nov 15 17:48:31 2008 +0000
+++ b/src/ui_tree_edit.c	Sat Nov 15 19:13:43 2008 +0000
@@ -266,10 +266,8 @@
 	 * use x_offset instead for X scroll (sigh)
 	 */
 	gtk_tree_view_get_cell_area(widget, tpath, tv_column, &rect);
-// #if GTK_CHECK_VERSION(2,12,0)
-#if 0
-	//FIXME: these functions are not equivalent
-	gtk_tree_view_convert_bin_window_to_widget_coords(widget, 0, 0, &x_offset, &y_offset);
+#if GTK_CHECK_VERSION(2,12,0)
+	gtk_tree_view_convert_tree_to_widget_coords(widget, 0, 0, &x_offset, &y_offset);
 #else
 	gtk_tree_view_tree_to_widget_coords(widget, 0, 0, &x_offset, &y_offset);
 #endif
@@ -365,10 +363,8 @@
 	gtk_tree_path_free(tpath);
 
 
-// #if GTK_CHECK_VERSION(2,12,0)
-#if 0
-	//FIXME: these functions are not equivalent
-	gtk_tree_view_convert_bin_window_to_widget_coords(widget, crect.x, crect.y, &cx, &cy);
+#if GTK_CHECK_VERSION(2,12,0)
+	gtk_tree_view_convert_widget_to_tree_coords(widget, crect.x, crect.y, &cx, &cy);
 #else
 	gtk_tree_view_widget_to_tree_coords(widget, crect.x, crect.y, &cx, &cy);
 #endif