Re: [gtk-list] dnd internals questions.
- From: Xavier Fuentes <furax linuxfreak com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] dnd internals questions.
- Date: Wed, 02 Jun 1999 00:28:35 +0200
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??
>
> This seems to be where the icon is set if is not to be the
> default. I am not sure I understand exactly how the "no icon"
> mode of clist works. Anyone have a clear idea how this works?
>
cant help you here ...
>
> 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 .
hope it helps
Xavier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]