comparison src/ui_tree_edit.h @ 1448:89dedc61b1bd

gint -> gboolean.
author zas_
date Sun, 15 Mar 2009 20:16:20 +0000
parents 8b89e3ff286b
children 956aab097ea7
comparison
equal deleted inserted replaced
1447:a10d70ae85e9 1448:89dedc61b1bd
35 35
36 36
37 /* 37 /*
38 * edit_func: return TRUE if rename successful, FALSE on failure. 38 * edit_func: return TRUE if rename successful, FALSE on failure.
39 */ 39 */
40 gint tree_edit_by_path(GtkTreeView *tree, GtkTreePath *tpath, gint column, const gchar *text, 40 gboolean tree_edit_by_path(GtkTreeView *tree, GtkTreePath *tpath, gint column, const gchar *text,
41 gint (*edit_func)(TreeEditData *, const gchar *, const gchar *, gpointer), gpointer data); 41 gboolean (*edit_func)(TreeEditData *, const gchar *, const gchar *, gpointer), gpointer data);
42 42
43 43
44 /* returns location of cell in screen coordinates */ 44 /* returns location of cell in screen coordinates */
45 gint tree_view_get_cell_origin(GtkTreeView *widget, GtkTreePath *tpath, gint column, gint text_cell_only, 45 gboolean tree_view_get_cell_origin(GtkTreeView *widget, GtkTreePath *tpath, gint column, gboolean text_cell_only,
46 gint *x, gint *y, gint *width, gint *height); 46 gint *x, gint *y, gint *width, gint *height);
47 /* similar to above, but limits the returned area to that of the tree window */ 47 /* similar to above, but limits the returned area to that of the tree window */
48 void tree_view_get_cell_clamped(GtkTreeView *widget, GtkTreePath *tpath, gint column, gint text_cell_only, 48 void tree_view_get_cell_clamped(GtkTreeView *widget, GtkTreePath *tpath, gint column, gboolean text_cell_only,
49 gint *x, gint *y, gint *width, gint *height); 49 gint *x, gint *y, gint *width, gint *height);
50 50
51 /* return 0 = row visible, -1 = row is above, 1 = row is below visible region 51 /* return 0 = row visible, -1 = row is above, 1 = row is below visible region
52 * if fully_visible is TRUE, the bahavior changes to return -1/1 if _any_ part of the cell is out of view */ 52 * if fully_visible is TRUE, the bahavior changes to return -1/1 if _any_ part of the cell is out of view */
53 gint tree_view_row_get_visibility(GtkTreeView *widget, GtkTreeIter *iter, gint fully_visible); 53 gint tree_view_row_get_visibility(GtkTreeView *widget, GtkTreeIter *iter, gboolean fully_visible);
54 54
55 /* scrolls to make row visible, if necessary 55 /* scrolls to make row visible, if necessary
56 * return is same as above (before the scroll) 56 * return is same as above (before the scroll)
57 */ 57 */
58 gint tree_view_row_make_visible(GtkTreeView *widget, GtkTreeIter *iter, gint center); 58 gint tree_view_row_make_visible(GtkTreeView *widget, GtkTreeIter *iter, gboolean center);
59 59
60 /* if iter is location of cursor, moves cursor to nearest row */ 60 /* if iter is location of cursor, moves cursor to nearest row */
61 gint tree_view_move_cursor_away(GtkTreeView *widget, GtkTreeIter *iter, gint only_selected); 61 gboolean tree_view_move_cursor_away(GtkTreeView *widget, GtkTreeIter *iter, gboolean only_selected);
62 62
63 /* utility to return row position of given GtkTreePath 63 /* utility to return row position of given GtkTreePath
64 */ 64 */
65 gint tree_path_to_row(GtkTreePath *tpath); 65 gint tree_path_to_row(GtkTreePath *tpath);
66 66