Re: [gtk-list] Re: dnd internals questions.



Xavier Fuentes wrote:
> 
> Hi,
> 
> > I want to change the drag icon used by clist for drags.
> >
> > I noticed only a few of the widget implement drag_begin.
> 
> why don't you use the "button_press_event" and change the drag icon here??
> 

The button_press_event will come before the drag_begin. clist will
set the drag icon back to the default when it gets the drag_begin
event.

> >
> > Also, is it possible to control the drag icon used by which modifiers
> > ( ctrl, alt, shift ) are held down when the drag begins?
> >
> 
> yes all is in the event parameter of your button press event handler, have a
> look at GdkEvent union in gdk/gdktypes.h
> then i think you can get key state with a GdkEventKey *evk=(GdkEventKey *)
> event;
> the GdkEventKey struct is in gdk/gdktypes.h too .
> 

Thanks, I'll look into this.

> hope it helps
> Xavier


Todd.
-- 
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net



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