Re: Drag and Drop issue.
- From: <learfox furry ao net>
- To: CALMELS Clement <calmels stna dgac fr>
- Cc: <gtk-app-devel-list gnome org>
- Subject: Re: Drag and Drop issue.
- Date: Fri, 23 Mar 2001 18:19:34 -0800 (PST)
Hello.
I have added drag&drop functionnalities in a Gtk program and now I want
to change the default grab icon into a widget. I think that
gtk_drag_set_icon_widget is the function I need. But in fact, strange
thinks are happening.
I connect the "drag_begin" signal to:
void DNDBegin(GtkWidget *widget, GdkDragContext *dc, gpointer data)
{
GtkWidget * truc= gtk_window_new( GTK_WINDOW_POPUP );
gtk_window_set_title(GTK_WINDOW(truc),"Truc");
gtk_widget_realize(truc);
gtk_drag_set_icon_widget(dc,truc,0,0);
}
And as a result, I saw my widget, but the default grab icon replaces it
(nearly) instantaneously. I don't have any warning so I don't know
what's happening. If anyone has a clue, thanks for help!
Oh I've always set the drag icon on a select_row signal, what kind of
widget are you dragging from? (type of yer source widget).
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]