+2006-06-20 [colin] 2.3.0cvs26
+
+ * src/compose.c
+ When dragging a file to the text of the compose
+ window, ask whether we want to insert or attach
+ (I know lots of people who do that to attach)
+
2006-06-20 [colin] 2.3.0cvs25
* src/etpan/imap-thread.c
( cvs diff -u -r 1.382.2.279 -r 1.382.2.280 src/compose.c; cvs diff -u -r 1.179.2.120 -r 1.179.2.121 src/imap.c; cvs diff -u -r 1.9.2.25 -r 1.9.2.26 src/common/defs.h; cvs diff -u -r 1.1.4.40 -r 1.1.4.41 src/etpan/imap-thread.c; ) > 2.3.0cvs23.patchset
( cvs diff -u -r 1.179.2.121 -r 1.179.2.122 src/imap.c; cvs diff -u -r 1.1.4.41 -r 1.1.4.42 src/etpan/imap-thread.c; ) > 2.3.0cvs24.patchset
( cvs diff -u -r 1.1.4.42 -r 1.1.4.43 src/etpan/imap-thread.c; ) > 2.3.0cvs25.patchset
+( cvs diff -u -r 1.382.2.280 -r 1.382.2.281 src/compose.c; ) > 2.3.0cvs26.patchset
{
Compose *compose = (Compose *)user_data;
GList *list, *tmp;
+ AlertValue val = alertpanel(_("Insert or attach?"),
+ _("Do you want to insert the contents of this file in the email body,"
+ "or rather attach it to the email?"),
+ GTK_STOCK_CANCEL, _("+_Insert"), _("_Attach"));
+
+ if (val == G_ALERTDEFAULT) {
+ gtk_drag_finish(drag_context, FALSE, FALSE, time);
+ return;
+ } else if (val == G_ALERTOTHER) {
+ compose_attach_drag_received_cb(widget, drag_context, x, y, data, info, time, user_data);
+ return;
+ }
/* strangely, testing data->type == gdk_atom_intern("text/uri-list", TRUE)
* does not work */