зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
dda84d3a46
Коммит
d583d4569b
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче