in the event proc for the NavServices dialogs, tell the watch task that we've hit an event loop so that it doesn't change the cursor to a watch. r=hyatt, bug# 53121

This commit is contained in:
pinkerton%netscape.com 2000-09-22 04:27:24 +00:00
Родитель 0c0fbf51b9
Коммит e8c27a8e0c
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -39,6 +39,7 @@
#include "nsFilePicker.h"
#include "nsMacWindow.h"
#include "nsMacMessageSink.h"
#include "nsWatchTask.h"
@ -170,6 +171,8 @@ NS_IMETHODIMP nsFilePicker::Show(PRInt16 *retval)
//
static pascal void FileDialogEventHandlerProc( NavEventCallbackMessage msg, NavCBRecPtr cbRec, NavCallBackUserData data )
{
nsWatchTask::GetTask().EventLoopReached();
switch ( msg ) {
case kNavCBEvent:
switch ( cbRec->eventData.eventDataParms.event->what ) {

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

@ -28,7 +28,7 @@
#endif
#include "nsMacControl.h"
#include "nsCarbonHelpers.h"
#include "nsWatchTask.h"
#include "nsFileSpec.h"
#define DBG 0
@ -205,6 +205,8 @@ PRBool nsFileWidget::Show()
//-------------------------------------------------------------------------
static pascal void myProc ( NavEventCallbackMessage msg, NavCBRecPtr cbRec, NavCallBackUserData data )
{
nsWatchTask::GetTask().EventLoopReached();
switch ( msg ) {
case kNavCBEvent:
switch ( cbRec->eventData.eventDataParms.event->what ) {