Re: [pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread Martin Preishuber
Hi again, I've made a simple example which shows the unwanted behaviour mentioned earlier ... could someone test it and post his/her results ? For me when dragging something to the list it returns (0,0) for the label, (1,0) for "First" and None for "Last" thanks, Martin -- Martin Preishuber -

Re: [pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread Martin Preishuber
James Henstridge wrote: > The function should be returning None if you click outside of the cells, > or (row,col) if you click on a cell. I don't know why it would be acting > differently on your system. I know what it should do ... but it doesn't ... maybe there's something wrong with the (x,y

Re: [pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread James Henstridge
The function should be returning None if you click outside of the cells, or (row,col) if you click on a cell. I don't know why it would be acting differently on your system. The code in pygtk reads like this: if (gtk_clist_get_selection_info(GTK_CLIST(PyGtk_Get(clist)), x, y,

[pygtk] GtkCList/CTree get_selection_info

2000-02-14 Thread Martin Preishuber
Hi, just playing with drag and drop to CLists and CTrees and there's some strange thing. I've done something like: list.connect("drag_data_received", DragReceiveList) def DragReceiveList(clist, context, x, y, data, info, time): selection = clist.get_selection_info(x, y) so this should retu