auto ted = static_cast<TreeEditData *>(data);
GdkWindow *window = gtk_widget_get_window(ted->window);
- gint x, y;
- gint w, h;
+ gint x;
+ gint y;
+ gint w;
+ gint h;
- gint xr, yr;
+ gint xr;
+ gint yr;
xr = static_cast<gint>(event->x_root);
yr = static_cast<gint>(event->y_root);
{
auto ted = static_cast<TreeEditData *>(data);
GdkRectangle rect;
- gint x, y, w, h; /* geometry of cell within tree */
- gint wx, wy; /* geometry of tree from root window */
- gint sx, sw;
+ gint x;
+ gint y;
+ gint w;
+ gint h; /* geometry of cell within tree */
+ gint wx;
+ gint wy; /* geometry of tree from root window */
+ gint sx;
+ gint sw;
gtk_tree_view_get_cell_area(ted->tree, ted->path, ted->column, &rect);
gboolean tree_view_get_cell_origin(GtkTreeView *widget, GtkTreePath *tpath, gint column, gboolean text_cell_only,
gint *x, gint *y, gint *width, gint *height)
{
- gint x_origin, y_origin;
- gint x_offset, y_offset;
+ gint x_origin;
+ gint y_origin;
+ gint x_offset;
+ gint y_offset;
gint header_size;
GtkTreeViewColumn *tv_column;
GdkRectangle rect;
void tree_view_get_cell_clamped(GtkTreeView *widget, GtkTreePath *tpath, gint column, gboolean text_cell_only,
gint *x, gint *y, gint *width, gint *height)
{
- gint wx, wy, ww, wh;
+ gint wx;
+ gint wy;
+ gint ww;
+ gint wh;
GdkWindow *window;
window = gtk_widget_get_window(GTK_WIDGET(widget));
gint tree_view_row_get_visibility(GtkTreeView *widget, GtkTreeIter *iter, gboolean fully_visible)
{
GtkTreeModel *store;
- GtkTreePath *tpath, *start_path, *end_path;
+ GtkTreePath *tpath;
+ GtkTreePath *start_path;
+ GtkTreePath *end_path;
gint ret = 0;
if (!gtk_tree_view_get_visible_range(widget, &start_path, &end_path)) return -1; /* we will most probably scroll down, needed for tree_view_row_make_visible */
{
auto sd = static_cast<AutoScrollData *>(data);
GdkWindow *window;
- gint x, y;
- gint w, h;
+ gint x;
+ gint y;
+ gint w;
+ gint h;
gint amt = 0;
GdkSeat *seat;
GdkDevice *device;