Skip to content

Commit

Permalink
fixed usage of deprecated functions - patch by Omari Stephens
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Nov 15, 2008
1 parent 27bcad2 commit 8b10477
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/ui_tree_edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,8 @@ gint tree_view_get_cell_origin(GtkTreeView *widget, GtkTreePath *tpath, gint col
* 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
Expand Down Expand Up @@ -365,10 +363,8 @@ gint tree_view_row_get_visibility(GtkTreeView *widget, GtkTreeIter *iter, gint f
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
Expand Down

0 comments on commit 8b10477

Please sign in to comment.