mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
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:
parent
0c0fbf51b9
commit
e8c27a8e0c
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user