diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1998-04-01 19:46:06 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-04-01 19:46:06 +0000 |
commit | acb95ed9dadba8b31ba1569227937c1f30aa370f (patch) | |
tree | 90ef6a0074e9e3ece25a432cf8918a293fbdc1dd | |
parent | c36ca76bb84879ed1e2ba51541c95eacd56e550e (diff) | |
download | gtk+-acb95ed9dadba8b31ba1569227937c1f30aa370f.tar.gz |
a little more debugging code.
-rw-r--r-- | gdk/gdk.c | 3 | ||||
-rw-r--r-- | gdk/gdkdnd.c | 5 | ||||
-rw-r--r-- | gdk/x11/gdkdnd-x11.c | 5 | ||||
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 3 |
4 files changed, 16 insertions, 0 deletions
@@ -3163,6 +3163,9 @@ static void gdk_dnd_drag_begin (GdkWindow *initial_window) { GdkEventDragBegin tev; + + GDK_NOTE(DND, g_print("------- STARTING DRAG from %p\n", initial_window)); + tev.type = GDK_DRAG_BEGIN; tev.window = initial_window; tev.u.allflags = 0; diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c index cc039392c7..b29bbcf2fd 100644 --- a/gdk/gdkdnd.c +++ b/gdk/gdkdnd.c @@ -98,6 +98,7 @@ gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, { gdk_window_hide(gdk_dnd.c->drag_pm_ok); gdk_window_hide(gdk_dnd.c->drag_pm_default); + GDK_NOTE(DND, g_print("Hiding both drag cursors\n")); return; } @@ -107,18 +108,22 @@ gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, if(drag_ok) { + GDK_NOTE(DND, g_print("Switching to drag_ok cursor\n")); mypix = gdk_dnd.c->drag_pm_ok; opix = gdk_dnd.c->drag_pm_default; myhotspot = &gdk_dnd.c->ok_hotspot; } else { + GDK_NOTE(DND, g_print("Switching to drag_default cursor\n")); mypix = gdk_dnd.c->drag_pm_default; opix = gdk_dnd.c->drag_pm_ok; myhotspot = &gdk_dnd.c->default_hotspot; } + gdk_window_move(mypix, x - myhotspot->x, y - myhotspot->y); if(change_made) { + GDK_NOTE(DND, g_print("Cursors switched, hide & show\n")); gdk_window_hide(opix); } gdk_window_move(mypix, x - myhotspot->x, y - myhotspot->y); diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index cc039392c7..b29bbcf2fd 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -98,6 +98,7 @@ gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, { gdk_window_hide(gdk_dnd.c->drag_pm_ok); gdk_window_hide(gdk_dnd.c->drag_pm_default); + GDK_NOTE(DND, g_print("Hiding both drag cursors\n")); return; } @@ -107,18 +108,22 @@ gdk_dnd_display_drag_cursor(gint x, gint y, gboolean drag_ok, if(drag_ok) { + GDK_NOTE(DND, g_print("Switching to drag_ok cursor\n")); mypix = gdk_dnd.c->drag_pm_ok; opix = gdk_dnd.c->drag_pm_default; myhotspot = &gdk_dnd.c->ok_hotspot; } else { + GDK_NOTE(DND, g_print("Switching to drag_default cursor\n")); mypix = gdk_dnd.c->drag_pm_default; opix = gdk_dnd.c->drag_pm_ok; myhotspot = &gdk_dnd.c->default_hotspot; } + gdk_window_move(mypix, x - myhotspot->x, y - myhotspot->y); if(change_made) { + GDK_NOTE(DND, g_print("Cursors switched, hide & show\n")); gdk_window_hide(opix); } gdk_window_move(mypix, x - myhotspot->x, y - myhotspot->y); diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index fb0d44bfe7..d50781677e 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -3163,6 +3163,9 @@ static void gdk_dnd_drag_begin (GdkWindow *initial_window) { GdkEventDragBegin tev; + + GDK_NOTE(DND, g_print("------- STARTING DRAG from %p\n", initial_window)); + tev.type = GDK_DRAG_BEGIN; tev.window = initial_window; tev.u.allflags = 0; |