From 0e0ba33fcf9717195caa77241c9c3eb04fcc3823 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sat, 22 Sep 2007 20:12:28 -0500 Subject: [PATCH] Gtk-2.12, new pretty API! --- moo/moofileview/mootreeview.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moo/moofileview/mootreeview.c b/moo/moofileview/mootreeview.c index 9e168757..9fb77f78 100644 --- a/moo/moofileview/mootreeview.c +++ b/moo/moofileview/mootreeview.c @@ -705,7 +705,12 @@ _moo_tree_view_widget_to_abs_coords (gpointer view, int *absy) { if (GTK_IS_TREE_VIEW (view)) + /* Nice! */ +#if !GTK_CHECK_VERSION(2,12,0) gtk_tree_view_widget_to_tree_coords (view, wx, wy, absx, absy); +#else + gtk_tree_view_convert_widget_to_bin_window_coords (view, wx, wy, absx, absy); +#endif else if (MOO_IS_ICON_VIEW (view)) _moo_icon_view_widget_to_abs_coords (view, wx, wy, absx, absy); else