Ticket #1179 (new defect)

Opened 5 years ago

Last modified 5 years ago

drag-and-drop with IconViews doesn't work with empty destination store

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.10.1
Component: general (Gtk+, Glib) Version: 0.10.1
Keywords: drag-and-drop, ListStore, IconView, TreeView Cc: baggins613@…

Description

It seems that dragging and dropping something into a model backed by an empty store does not work: no new element is added to the store. Using some printouts, it seems that the handlers in DragDestIface? are not even being called. Maybe I'm doing something wrong?

As long as the destination store has something in it when the drop happens, the new element will be added.

I've reproduced this behavior in 2 small test cases, using IconViews? and TreeViews? as the model, and with a ListStore? as the backing store.

Attachments

dnd-treeview.hs (2.7 kB) - added by guest 5 years ago.
successful example using TreeViews?
dnd-iconview.hs (2.3 kB) - added by guest 5 years ago.
broken example using IconViews?

Change History

in reply to: ↑ description   Changed 5 years ago by guest

  • version changed from 0.11.0 to 0.10.1
  • milestone changed from 0.11.0 to 0.10.1

Fixed the version: I'm experiencing this behavior with 0.10.1.

Changed 5 years ago by guest

successful example using TreeViews?

Changed 5 years ago by guest

broken example using IconViews?

  Changed 5 years ago by guest

  • summary changed from drag-and-drop doesn't work with empty destination store to drag-and-drop with IconViews doesn't work with empty destination store

Whoops, had a typo in my TreeView? example where both TreeViews? were set as drag sources. Now the TreeView? example works fine with an empty destination store. However, the IconView? example still does not add elements with an empty destination store.

Note: See TracTickets for help on using tickets.