Drag files into composer to attach
Bug #684542 reported by
Cris Dywan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Postler |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Dragging files into the composer, specifically the web view and the attachment area, should attach them.
Changed in postler: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Maybe adding something like
Gtk.
this. drag_data_ received. connect (on_drag_drop);
and then the function handling
private void on_drag_drop (Gdk.DragContext context, int x, int y, Gtk.SelectionData data, uint info, uint time_){
//stuff. .
//...
string[] uris= data.get_uris();
}
should do the job (some string manipulation on the uris and some checks to see if the dropped stuff is actually made of files could also be good).
on_drag_drop could basically do some checks and the call insert_attachment ( string path ) to add the dropped files to the attachments..
What do you think,postler- developers? =)