w = MAX(w - sx, sw);
}
- gdk_window_get_origin(gtk_tree_view_get_bin_window(ted->tree), &wx, &wy);
+ gdk_window_get_origin(gtk_widget_get_window(gtk_widget_get_parent(GTK_WIDGET(ted->tree))), &wx, &wy);
x += wx - 2; /* the -val is to 'fix' alignment of entry position */
y += wy - 2;
/* grab it */
gtk_widget_grab_focus(ted->entry);
- /* explicitely set the focus flag for the entry, for some reason on popup windows this
+ /* explicitly set the focus flag for the entry, for some reason on popup windows this
* is not set, and causes no edit cursor to appear ( popups not allowed focus? )
*/
gtk_widget_grab_focus(ted->entry);
ted->column = tcolumn;
ted->cell = cell;
- gtk_tree_view_scroll_to_cell(ted->tree, ted->path, ted->column, FALSE, 0.0, 0.0);
+ gtk_tree_view_scroll_to_cell(ted->tree, ted->path, ted->column, TRUE, 0.5, 0.0);
/* create the window */