fix for bug #27295. don't listen for the drag_leave signal. the problem was that the drag_leave signal was getting sent before the drag_drop signal causing the state machine in the tree widget to set tree elements as invalid drag targets. we aren't using the drag_leave signal for anything anyway so this isn't hurting anything. this gets drags working to mail folders and folders in the bookmark windows.

This commit is contained in:
blizzard%redhat.com 2000-04-15 05:45:21 +00:00
Родитель dda84d3a46
Коммит d583d4569b
2 изменённых файлов: 0 добавлений и 12 удалений

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

@ -1156,16 +1156,6 @@ nsWindow::ToplevelDragBeginSignal(GtkWidget *aWidget,
return PR_FALSE;
}
void
nsWindow::InstallToplevelDragLeaveSignal(void)
{
NS_ASSERTION( nsnull != mShell, "mShell is null");
InstallSignal(mShell,
(gchar *)"drag_leave",
GTK_SIGNAL_FUNC(nsWindow::ToplevelDragLeaveSignal));
}
/* static */
gint
nsWindow::ToplevelDragLeaveSignal(GtkWidget * aWidget,
@ -1704,7 +1694,6 @@ NS_METHOD nsWindow::CreateNative(GtkObject *parentWidget)
if (mShell) {
// install the drag and drop signals for the toplevel window.
InstallToplevelDragBeginSignal();
InstallToplevelDragLeaveSignal();
InstallToplevelDragMotionSignal();
InstallToplevelDragDropSignal();
InstallToplevelDragDataReceivedSignal();

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

@ -103,7 +103,6 @@ public:
void HandleGDKEvent(GdkEvent *event);
void InstallToplevelDragBeginSignal (void);
void InstallToplevelDragLeaveSignal (void);
void InstallToplevelDragMotionSignal(void);
void InstallToplevelDragDropSignal (void);
void InstallToplevelDragDataReceivedSignal(void);