[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    Canceling a DnD
From:       Ian Liu Rodrigues <ian.liu88 () gmail ! com>
Date:       2011-12-13 13:43:03
Message-ID: CAD+ArX3WPTaoUtuuj=nvX_dY62ZNcYRLD7Uh0PBKpPQmT9auaA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello list!

How can I abort a DnD operation?

I have a GtkTreeView as a DnD source, but I want to disallow DnD on some
special
rows. For that I connected to the "drag-begin" signal and there I check the
selected
row to be dragged. If it is a special row, I call

gdk_drag_abort(context, GDK_CURRENT_TIME);

but that seems to do nothing at all.

Thanks,
Ian L. Rodrigues.

[Attachment #5 (text/html)]

Hello list!<br><br>How can I abort a DnD operation?<br><br>I have a GtkTreeView as a \
DnD source, but I want to disallow DnD on some special<br>rows. For that I connected \
to the &quot;drag-begin&quot; signal and there I check the selected<br>

row to be dragged. If it is a special row, I call<br><br><div \
style="margin-left:40px">gdk_drag_abort(context, GDK_CURRENT_TIME);<br></div><br>but \
that seems to do nothing at all.<br><br>Thanks,<br>Ian L. Rodrigues.<br>



_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic