mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Use gdk_window_get_origin() instead of gdk_window_get_position, because
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use gdk_window_get_origin() instead of gdk_window_get_position, because get_position is unreliable for plugs. This is a bad hack, maybe we need GDK_WINDOW_PLUG?
This commit is contained in:
parent
3821880398
commit
ba17081caa
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -1,3 +1,11 @@
|
||||
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
|
||||
gdk_window_get_origin() instead of gdk_window_get_position,
|
||||
because get_position is unreliable for plugs.
|
||||
|
||||
This is a bad hack, maybe we need GDK_WINDOW_PLUG?
|
||||
|
||||
Thu Dec 10 17:58:49 GMT 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* docs/gtk_tut.sgml:
|
||||
|
@ -59,6 +59,3 @@
|
||||
|
||||
/* Define if you have the <wctype.h> header file. */
|
||||
#undef HAVE_WCTYPE_H
|
||||
|
||||
/* Define if you have the X11 library (-lX11). */
|
||||
#undef HAVE_LIBX11
|
||||
|
@ -864,7 +864,7 @@ gtk_drag_dest_handle_event (GtkWidget *toplevel,
|
||||
if (event->type == GDK_DROP_START)
|
||||
info->dropped = TRUE;
|
||||
|
||||
gdk_window_get_position (toplevel->window, &tx, &ty);
|
||||
gdk_window_get_origin (toplevel->window, &tx, &ty);
|
||||
|
||||
data.x = event->dnd.x_root - tx;
|
||||
data.y = event->dnd.y_root - ty;
|
||||
|
Loading…
Reference in New Issue
Block a user