[maemo-developers] Problem with Treeview drag and drop
From: Jeffrey Barish jeff_barish at earthlink.netDate: Sat Sep 27 21:59:18 EEST 2008
- Previous message: Problem with Treeview drag and drop
- Next message: Problem with Treeview drag and drop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Here's more: When I remove all items from the treeview, motion-notify event works again. As long as there is an item in the treeview, I get only button-press and one motion-notify. I tried catching the event signal. With an item present in the treeview, I am not getting any other events either after the first motion-notify signal. Here's the exact sequence of events when I tap and trace in an open area with an item present in the treeview: event = <enum GDK_MOTION_NOTIFY of type GdkEventType> event position (no button1_mask) = 224 281 event = <enum GDK_LEAVE_NOTIFY of type GdkEventType> event = <enum GDK_ENTER_NOTIFY of type GdkEventType> event = <enum GDK_BUTTON_PRESS of type GdkEventType> START position = 224 281 event = <enum GDK_MOTION_NOTIFY of type GdkEventType> event position = 224 281 event = <enum GDK_BUTTON_RELEASE of type GdkEventType> Notice that the first event is a motion-notify that I didn't know about because there was no button1_mask. The second motion-notify is the one I knew about. Apparently the first motion-notify event is associated with the change in position from where the previous actions left off and the present ones began. I also noticed that there is no button-release at the end of the drag that moved the item into the treeview (which immediately preceded the sequence above). With no item in the treeview, I get this sequence of events: event = <enum GDK_MOTION_NOTIFY of type GdkEventType> event position (no button1_mask) = 39 337 event = <enum GDK_LEAVE_NOTIFY of type GdkEventType> event = <enum GDK_ENTER_NOTIFY of type GdkEventType> event = <enum GDK_BUTTON_PRESS of type GdkEventType> START position = 39 337 event = <enum GDK_MOTION_NOTIFY of type GdkEventType> event position = 38 338 ... other MOTION_NOTIFY events ... event = <enum GDK_BUTTON_RELEASE of type GdkEventType> No difference, except that with an item present I get only the one motion-notify event. The only anomaly I'm seeing is that there is no button-release event on completion of the drag. -- Jeffrey Barish
- Previous message: Problem with Treeview drag and drop
- Next message: Problem with Treeview drag and drop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]