I am again posting this problem.
I am implementing Drag and Drop using gtk api.
I am setting source and destinations using,
void gtk_drag_dest_set ( GtkWidget *widget,
GtkDestDefaults flags,
const GtkTargetEntry *targets, gint n_targets,
GdkDragAction actions );
void gtk_drag_source_set ( GtkWidget
*widget,
GdkModifierType start_button_mask,
const GtkTargetEntry *targets, gint
n_targets,
GdkDragAction actions ) ;
and now connecting signals to source and destinations as,
gtk_signal_connect ( GTK_OBJECT( source ), "drag_begin",
GTK_SIGNAL_FUNC (source_drag_begin), NULL );
gtk_signal_connect ( GTK_OBJECT(source), "drag_data_get",
GTK_SIGNAL_FUNC (source_drag_data_get), NULL );
gtk_signal_connect ( GTK_OBJECT ( destination ), "drag_data_received",
GTK_SIGNAL_FUNC (target_drag_data_received), NULL );
gtk_signal_connect ( GTK_OBJECT (destination), "drag_drop",
GTK_SIGNAL_FUNC (target_drag_drop), NULL );
Now when I start dragging Source it shows me dragging (mouse)
pointer/cursor depending on
GdkDragAction.
But I want to set dragging pointer/cursor of my choice
and not related with any drag action.
As suggested by one of our member, I have seen gtkdnd.c, but I could not get it.
Is there any function or method to set cursor. Or shall I ungrab source
widget and grab it again
passing cursor of my choice. But where to ungrab and grab
source?
Any help in this regard will be appriciated.
Expecting reply from gtk gurus.
Thanx.
-- --------------------------------------------------------------------- VIJAYKUMAR S. KALE ESG, TTIL, Telco Campus,PUNE - 411 018 email: vskale telco co in phone: (off.) +91-212-7402049 (Direct) +91-212-7402947 (Direct) (resi.) +91-212-4358085 ---------------------------------------------------------------------- ~
Attachment:
vsk.vcf
Description: Card for VijayaKumar S. Kale