summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-22 22:00:43 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-22 22:00:43 +0000
commit08b22ddebf7d47062c6670dfca90915d52f02e75 (patch)
tree5ef3b2d6912ad0c7785cec93c9aa68b8129b434c
parent1f8fd8871bccd2da7a2fa2f656aa432e3900a96c (diff)
downloadgdk-pixbuf-08b22ddebf7d47062c6670dfca90915d52f02e75.tar.gz
Request XmTRANFER_FAILURE on Motif drops not within a drop zone. I don't
Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Request XmTRANFER_FAILURE on Motif drops not within a drop zone. I don't know why this is necessary, but it is. * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where Motif flag field in response was getting wrong values.
-rw-r--r--ChangeLog11
-rw-r--r--ChangeLog.pre-2-011
-rw-r--r--ChangeLog.pre-2-1011
-rw-r--r--ChangeLog.pre-2-211
-rw-r--r--ChangeLog.pre-2-411
-rw-r--r--ChangeLog.pre-2-611
-rw-r--r--ChangeLog.pre-2-811
-rw-r--r--gdk/gdkdnd.c4
-rw-r--r--gdk/x11/gdkdnd-x11.c4
-rw-r--r--gtk/gtkdnd.c6
10 files changed, 86 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 4d3f601f7..921525fc3 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkdnd.c (gtk_drag_dest_handle_event):
+ Request XmTRANFER_FAILURE on Motif drops not within
+ a drop zone. I don't know why this is necessary,
+ but it is.
+
+ * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+ Motif flag field in response was getting wrong
+ values.
+
Tue Dec 22 15:55:39 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c
index 9c088cbc6..0578a8108 100644
--- a/gdk/gdkdnd.c
+++ b/gdk/gdkdnd.c
@@ -2852,12 +2852,12 @@ gdk_drop_reply (GdkDragContext *context,
xev.xclient.data.b[0] = XmDROP_START | 0x80;
xev.xclient.data.b[1] = local_byte_order;
if (ok)
- xev.xclient.data.s[2] = XmDROP_COPY |
+ xev.xclient.data.s[1] = XmDROP_COPY |
(XmDROP_SITE_VALID << 4) |
(XmDROP_NOOP << 8) |
(XmDROP << 12);
else
- xev.xclient.data.s[2] = XmDROP_NOOP |
+ xev.xclient.data.s[1] = XmDROP_NOOP |
(XmNO_DROP_SITE << 4) |
(XmDROP_NOOP << 8) |
(XmDROP_CANCEL << 12);
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index 9c088cbc6..0578a8108 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -2852,12 +2852,12 @@ gdk_drop_reply (GdkDragContext *context,
xev.xclient.data.b[0] = XmDROP_START | 0x80;
xev.xclient.data.b[1] = local_byte_order;
if (ok)
- xev.xclient.data.s[2] = XmDROP_COPY |
+ xev.xclient.data.s[1] = XmDROP_COPY |
(XmDROP_SITE_VALID << 4) |
(XmDROP_NOOP << 8) |
(XmDROP << 12);
else
- xev.xclient.data.s[2] = XmDROP_NOOP |
+ xev.xclient.data.s[1] = XmDROP_NOOP |
(XmNO_DROP_SITE << 4) |
(XmDROP_NOOP << 8) |
(XmDROP_CANCEL << 12);
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 68379c958..1aa4bbcbc 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -896,7 +896,11 @@ gtk_drag_dest_handle_event (GtkWidget *toplevel,
gdk_drag_status (context, 0, event->dnd.time);
}
else if (event->type == GDK_DROP_START)
- gdk_drop_reply (context, data.found, event->dnd.time);
+ {
+ gdk_drop_reply (context, data.found, event->dnd.time);
+ if (context->protocol == GDK_DRAG_PROTO_MOTIF)
+ gtk_drag_finish (context, FALSE, FALSE, event->dnd.time);
+ }
}
break;