diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-04-06 18:50:38 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-04-06 18:50:38 +0000 |
commit | 4361369939c3300b110bdab57fca5b4111236f06 (patch) | |
tree | d4c1f0cecb986daed26e3ee96091120b00400647 /gtk/testdnd.c | |
parent | 0d353949e2e8e767cb24bd62c820618432c2e318 (diff) | |
download | gdk-pixbuf-4361369939c3300b110bdab57fca5b4111236f06.tar.gz |
Only unhighlight when we've previously highlighted.
Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
when we've previously highlighted.
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
emit two "drag_leave" signals for Motif drops.
* gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
back the correct status messages when dropping from
Motif onto a proxy window that is rejecting the
drop.
* gdk/gdkdnd.c (gdk_drag_motion): Separate out the
dest_xid field into two fields - one for the window
to send in messages, one to indicate the last looked
up window for caching purposes. This is needed, so
that Leave messages get the correct window.
Diffstat (limited to 'gtk/testdnd.c')
-rw-r--r-- | gtk/testdnd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/testdnd.c b/gtk/testdnd.c index f258c1b97..684cf9bdf 100644 --- a/gtk/testdnd.c +++ b/gtk/testdnd.c @@ -274,12 +274,14 @@ gboolean have_drag; enum { TARGET_STRING, - TARGET_ROOTWIN + TARGET_ROOTWIN, + TARGET_URL }; static GtkTargetEntry target_table[] = { { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING }, + { "text/uri-list", 0, TARGET_URL }, { "application/x-rootwin-drop", 0, TARGET_ROOTWIN } }; @@ -390,6 +392,10 @@ source_drag_data_get (GtkWidget *widget, { if (info == TARGET_ROOTWIN) g_print ("I was dropped on the rootwin\n"); + else if (info == TARGET_URL) + gtk_selection_data_set (selection_data, + selection_data->target, + 8, "file:///home/otaylor/images/weave.png", 37); else gtk_selection_data_set (selection_data, selection_data->target, |