It looks like the default drag action on GTK+ can be changed from
copy to move with this changed method.

gboolean ScintillaGTK::DragMotion(GtkWidget *widget, GdkDragContext *context,
                                 gint x, gint y, guint dragtime) {
        ScintillaGTK *sciThis = ScintillaFromWidget(widget);
        Point npt(x, y);
        sciThis->inDragDrop = true;
        sciThis->SetDragPosition(sciThis->PositionFromLocation(npt));
        GdkDragAction preferredAction = context->suggested_action;
        if (context->actions == static_cast<GdkDragAction>
               (GDK_ACTION_COPY | GDK_ACTION_MOVE)) {
                preferredAction = GDK_ACTION_MOVE;
        }
        gdk_drag_status(context, preferredAction, dragtime);
        return FALSE;
}

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to