On Sun, 30 Jul 2006 17:52:05 +1000, "Neil Hodgson"
<[EMAIL PROTECTED]> wrote:

Hi,

>    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;
> }

I guess, you refer to my feature request. But why can we have a simple
property or a message to change the behaviour?
With a property or a message applications can change the action
according to the users desire (the better way would be to change it in
GTK but this doesn't seem to be possible). I like to use a "vanilla"
Scintilla in my application without hacking the sources.

Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.key

Attachment: pgpPoE0KQYWgb.pgp
Description: PGP signature

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

Reply via email to