From e657ba3ed89387998c2fe5380c8f7e0af89ddd8f Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Wed, 7 Jul 1999 09:05:44 +0000 Subject: [PATCH] Adding drag & drop event support. --- widget/src/gtk/nsWindow.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/widget/src/gtk/nsWindow.cpp b/widget/src/gtk/nsWindow.cpp index 78233a7f5cc..055f098f606 100644 --- a/widget/src/gtk/nsWindow.cpp +++ b/widget/src/gtk/nsWindow.cpp @@ -246,15 +246,14 @@ NS_METHOD nsWindow::CreateNative(GtkWidget *parentWidget) GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK | + GDK_LEAVE_NOTIFY_MASK | GDK_EXPOSURE_MASK | GDK_FOCUS_CHANGE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | - GDK_LEAVE_NOTIFY_MASK | GDK_POINTER_MOTION_MASK); - if (mBorderStyle == GTK_WINDOW_POPUP) { mShell = gtk_window_new(GTK_WINDOW_POPUP); @@ -338,6 +337,12 @@ void nsWindow::InitCallbacks(char * aName) InstallEnterNotifySignal(mWidget); InstallLeaveNotifySignal(mWidget); + // Drag & Drop events. + InstallDragBeginSignal(mWidget); + InstallDragMotionSignal(mWidget); + InstallDragDropSignal(mWidget); + + gtk_signal_connect(GTK_OBJECT(mWidget), "draw", GTK_SIGNAL_FUNC(nsWindow::DrawSignal),