Hi,
Sorry if I misunderstanding of these two function in treeview class,
from my understanding, the two function should get the path result, but
if I set the headers visible(this is the default behavior), the two
function return different path. So is this a bug or feature?
Thanks.
code example:
++++++++++++++++++
Gtk::TreeModel::Path path;
Gtk::TreeViewColumn* c=0;
int cellx,celly;
get_path_at_pos(x,y,path,c,cellx,celly);
Gtk::TreeModel::iterator iter = refTreeModel->get_iter(path);
std::cout<<"x,y:"<<x<<","<<y<<std::endl;
if (iter)
{
std::cout<<(*iter)[columns.name]<<std::endl;
}
Gtk::TreeViewDropPosition pos;
get_dest_row_at_pos(x,y,path,pos);
iter = refTreeModel->get_iter(path);
std::cout<<"x,y:"<<x<<","<<y<<std::endl;
if (iter)
{
std::cout<<(*iter)[columns.name]<<std::endl;
}
Sincerely yours,
Liangxu Wang
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list