+Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testdnd.c: Use application/x-rootwindow-drop for
+ root window drops. (#108670, Alex Larsson)
+
+ * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
+ Accept either application/x-rootwin-drop (what GTK+ has always used)
+ or application/x-rootwindow-drop (what the XDND standard specifies).
+
Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (event_window_still_viewable):
+Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testdnd.c: Use application/x-rootwindow-drop for
+ root window drops. (#108670, Alex Larsson)
+
+ * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
+ Accept either application/x-rootwin-drop (what GTK+ has always used)
+ or application/x-rootwindow-drop (what the XDND standard specifies).
+
Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (event_window_still_viewable):
+Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testdnd.c: Use application/x-rootwindow-drop for
+ root window drops. (#108670, Alex Larsson)
+
+ * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
+ Accept either application/x-rootwin-drop (what GTK+ has always used)
+ or application/x-rootwindow-drop (what the XDND standard specifies).
+
Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (event_window_still_viewable):
+Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testdnd.c: Use application/x-rootwindow-drop for
+ root window drops. (#108670, Alex Larsson)
+
+ * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
+ Accept either application/x-rootwin-drop (what GTK+ has always used)
+ or application/x-rootwindow-drop (what the XDND standard specifies).
+
Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (event_window_still_viewable):
+Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
+
+ * tests/testdnd.c: Use application/x-rootwindow-drop for
+ root window drops. (#108670, Alex Larsson)
+
+ * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
+ Accept either application/x-rootwin-drop (what GTK+ has always used)
+ or application/x-rootwindow-drop (what the XDND standard specifies).
+
Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (event_window_still_viewable):
case GDK_DRAG_PROTO_ROOTWIN:
{
GdkEvent temp_event;
+ /* GTK+ traditionally has used application/x-rootwin-drop,
+ * but the XDND spec specifies x-rootwindow-drop.
+ */
+ GdkAtom target1 = gdk_atom_intern ("application/x-rootwindow-drop", FALSE);
+ GdkAtom target2 = gdk_atom_intern ("application/x-rootwin-drop", FALSE);
if (g_list_find (context->targets,
- GDK_ATOM_TO_POINTER (gdk_atom_intern ("application/x-rootwin-drop", FALSE))))
+ GDK_ATOM_TO_POINTER (target1)) ||
+ g_list_find (context->targets,
+ GDK_ATOM_TO_POINTER (target2)))
context->action = context->suggested_action;
else
context->action = 0;
{
GtkSelectionData selection_data;
GList *tmp_list;
- GdkAtom target = gdk_atom_intern ("application/x-rootwin-drop", FALSE);
+ /* GTK+ traditionally has used application/x-rootwin-drop, but the
+ * XDND spec specifies x-rootwindow-drop.
+ */
+ GdkAtom target1 = gdk_atom_intern ("application/x-rootwindow-drop", FALSE);
+ GdkAtom target2 = gdk_atom_intern ("application/x-rootwin-drop", FALSE);
tmp_list = info->target_list->list;
while (tmp_list)
{
GtkTargetPair *pair = tmp_list->data;
- if (pair->target == target)
+ if (pair->target == target1 || pair->target == target2)
{
selection_data.selection = GDK_NONE;
- selection_data.target = target;
+ selection_data.target = pair->target;
selection_data.data = NULL;
selection_data.length = -1;
static GtkTargetEntry target_table[] = {
{ "STRING", 0, TARGET_STRING },
{ "text/plain", 0, TARGET_STRING },
- { "application/x-rootwin-drop", 0, TARGET_ROOTWIN }
+ { "application/x-rootwindow-drop", 0, TARGET_ROOTWIN }
};
static guint n_targets = sizeof(target_table) / sizeof(target_table[0]);