From 11b00bec1587fabda72fb915da5f2d4babe07168 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Wed, 9 Aug 2000 07:43:12 +0000 Subject: [PATCH] Stop using dragtracker (bug 43428) --- widget/src/gtk/nsWidget.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/widget/src/gtk/nsWidget.cpp b/widget/src/gtk/nsWidget.cpp index 59abe767a08..3b4b7858b11 100644 --- a/widget/src/gtk/nsWidget.cpp +++ b/widget/src/gtk/nsWidget.cpp @@ -1853,20 +1853,6 @@ nsWidget::OnDragEnterSignal(GdkDragContext *aGdkDragContext, nsWidget::OnDragLeaveSignal(GdkDragContext *context, guint aTime) { - // tell anyone who is interested to stop tracking drags, but only when - // we're leaving a window, not a child widget - nsCOMPtr parent ( dont_AddRef(GetParent()) ); - if ( !parent ) { - printf("stopping\n"); - nsCOMPtr dragServ ( do_GetService("component://netscape/widget/dragservice") ); - if ( dragServ ) { - nsCOMPtr session; - dragServ->GetCurrentSession ( getter_AddRefs(session) ); - if ( session ) - session->StopTracking(); - } - } - // update our drag context UpdateDragContext(NULL, NULL, aTime); @@ -1918,16 +1904,6 @@ nsWidget::OnDragDropSignal(GtkWidget *aWidget, gint y, guint aTime) { - // tell anyone who is interested to stop tracking drags, but only when - // we're leaving a window, not a child widget - nsCOMPtr dragServ ( do_GetService("component://netscape/widget/dragservice") ); - if ( dragServ ) { - nsCOMPtr session; - dragServ->GetCurrentSession ( getter_AddRefs(session) ); - if ( session ) - session->StopTracking(); - } - UpdateDragContext(aWidget, aDragContext, aTime); nsMouseEvent event;