Re: drag_source_set() on EventBox and Button



On Sun, 2008-05-11 at 19:32 +0200, Johannes Schmid wrote:
> Hi!
> 
> I wanted to use a Gtk::Label as a drag source so I have put it inside an
> eventbox and called
> 
> eventbox->drag_source_set (my_targets, Gdk::BUTTON1_MASK|
> Gdk::BUTTON3_MASK, Gtk::ACTION_MOVE|Gdk::ACTION_COPY);
> 
> 
> Doing this for a Gtk::Entry does work and I get the drag_begin() signal,
> but for a Gdk::EventBox (or a Gtk::Button), nothing happens.

I'm pretty sure that the simple dnd example uses a button as a drag
source. Or is this just a problem with button3?

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]