Stop using dragtracker (bug 43428)

This commit is contained in:
pinkerton%netscape.com 2000-08-09 07:43:12 +00:00
Родитель caf5042df2
Коммит 11b00bec15
1 изменённых файлов: 0 добавлений и 24 удалений

Просмотреть файл

@ -1853,20 +1853,6 @@ nsWidget::OnDragEnterSignal(GdkDragContext *aGdkDragContext,
nsWidget::OnDragLeaveSignal(GdkDragContext *context, nsWidget::OnDragLeaveSignal(GdkDragContext *context,
guint aTime) guint aTime)
{ {
// tell anyone who is interested to stop tracking drags, but only when
// we're leaving a window, not a child widget
nsCOMPtr<nsIWidget> parent ( dont_AddRef(GetParent()) );
if ( !parent ) {
printf("stopping\n");
nsCOMPtr<nsIDragService> dragServ ( do_GetService("component://netscape/widget/dragservice") );
if ( dragServ ) {
nsCOMPtr<nsIDragSession> session;
dragServ->GetCurrentSession ( getter_AddRefs(session) );
if ( session )
session->StopTracking();
}
}
// update our drag context // update our drag context
UpdateDragContext(NULL, NULL, aTime); UpdateDragContext(NULL, NULL, aTime);
@ -1918,16 +1904,6 @@ nsWidget::OnDragDropSignal(GtkWidget *aWidget,
gint y, gint y,
guint aTime) guint aTime)
{ {
// tell anyone who is interested to stop tracking drags, but only when
// we're leaving a window, not a child widget
nsCOMPtr<nsIDragService> dragServ ( do_GetService("component://netscape/widget/dragservice") );
if ( dragServ ) {
nsCOMPtr<nsIDragSession> session;
dragServ->GetCurrentSession ( getter_AddRefs(session) );
if ( session )
session->StopTracking();
}
UpdateDragContext(aWidget, aDragContext, aTime); UpdateDragContext(aWidget, aDragContext, aTime);
nsMouseEvent event; nsMouseEvent event;