Re: Which button is used on a drag?
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtkmm-list gnome org
- Subject: Re: Which button is used on a drag?
- Date: Wed, 9 Aug 2006 20:11:54 +0100
On Tuesday 08 August 2006 22:59, Mark Tilford wrote:
[snip]
> Also, what's the best way to limit a drag to being within a single
> application? I found the direct method of putting the PID in the
> TargetEntry; is there a better way?
The GTK+ function gtk_drag_dest_set() takes as its third argument an array of
GtkTargetEntry structs by pointer (one for each drag/mime type employed, such
as text/plain and STRING). Each struct has a member called "flag", which can
be passed (amongst other things) the GTK_TARGET_SAME_APP flag, which if
applied will cause the drag destination only to accept drops from the same
application.
I do not have easy access to gtkmm documentation at the moment but I assume
something similar can be done with Gtk::Widget::drag_dest_set().
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]