Mercurial > geeqie.yaz
comparison src/ui_tree_edit.c @ 1147:4220d5536ad9
fixed usage of deprecated functions - patch by Omari Stephens
author | nadvornik |
---|---|
date | Sat, 15 Nov 2008 19:13:43 +0000 |
parents | 1646720364cf |
children | 8b89e3ff286b |
comparison
equal
deleted
inserted
replaced
1146:11b93d0791db | 1147:4220d5536ad9 |
---|---|
264 | 264 |
265 /* hmm, appears the rect will not account for X scroll, but does for Y scroll | 265 /* hmm, appears the rect will not account for X scroll, but does for Y scroll |
266 * use x_offset instead for X scroll (sigh) | 266 * use x_offset instead for X scroll (sigh) |
267 */ | 267 */ |
268 gtk_tree_view_get_cell_area(widget, tpath, tv_column, &rect); | 268 gtk_tree_view_get_cell_area(widget, tpath, tv_column, &rect); |
269 // #if GTK_CHECK_VERSION(2,12,0) | 269 #if GTK_CHECK_VERSION(2,12,0) |
270 #if 0 | 270 gtk_tree_view_convert_tree_to_widget_coords(widget, 0, 0, &x_offset, &y_offset); |
271 //FIXME: these functions are not equivalent | |
272 gtk_tree_view_convert_bin_window_to_widget_coords(widget, 0, 0, &x_offset, &y_offset); | |
273 #else | 271 #else |
274 gtk_tree_view_tree_to_widget_coords(widget, 0, 0, &x_offset, &y_offset); | 272 gtk_tree_view_tree_to_widget_coords(widget, 0, 0, &x_offset, &y_offset); |
275 #endif | 273 #endif |
276 gdk_window_get_origin(GTK_WIDGET(widget)->window, &x_origin, &y_origin); | 274 gdk_window_get_origin(GTK_WIDGET(widget)->window, &x_origin, &y_origin); |
277 | 275 |
363 gtk_tree_view_get_visible_rect(widget, &vrect); | 361 gtk_tree_view_get_visible_rect(widget, &vrect); |
364 gtk_tree_view_get_cell_area(widget, tpath, NULL, &crect); | 362 gtk_tree_view_get_cell_area(widget, tpath, NULL, &crect); |
365 gtk_tree_path_free(tpath); | 363 gtk_tree_path_free(tpath); |
366 | 364 |
367 | 365 |
368 // #if GTK_CHECK_VERSION(2,12,0) | 366 #if GTK_CHECK_VERSION(2,12,0) |
369 #if 0 | 367 gtk_tree_view_convert_widget_to_tree_coords(widget, crect.x, crect.y, &cx, &cy); |
370 //FIXME: these functions are not equivalent | |
371 gtk_tree_view_convert_bin_window_to_widget_coords(widget, crect.x, crect.y, &cx, &cy); | |
372 #else | 368 #else |
373 gtk_tree_view_widget_to_tree_coords(widget, crect.x, crect.y, &cx, &cy); | 369 gtk_tree_view_widget_to_tree_coords(widget, crect.x, crect.y, &cx, &cy); |
374 #endif | 370 #endif |
375 | 371 |
376 if (fully_visible) | 372 if (fully_visible) |