Mercurial > vim
comparison src/if_mzsch.c @ 575:f1d46f948241 v7.0163
updated for version 7.0163
author | vimboss |
---|---|
date | Tue, 06 Dec 2005 20:04:44 +0000 |
parents | 52e76e2b5b65 |
children | 9090f866cd57 |
comparison
equal
deleted
inserted
replaced
574:25a70b1cd2da | 575:f1d46f948241 |
---|---|
619 static XtIntervalId timer_id = (XtIntervalId)0; | 619 static XtIntervalId timer_id = (XtIntervalId)0; |
620 #elif defined(FEAT_GUI_MAC) | 620 #elif defined(FEAT_GUI_MAC) |
621 pascal void timer_proc(EventLoopTimerRef, void *); | 621 pascal void timer_proc(EventLoopTimerRef, void *); |
622 static EventLoopTimerRef timer_id = NULL; | 622 static EventLoopTimerRef timer_id = NULL; |
623 static EventLoopTimerUPP timerUPP; | 623 static EventLoopTimerUPP timerUPP; |
624 #elif defined(FEAT_GUI_KDE) | |
625 static int timer_id = 0; | |
626 #endif | 624 #endif |
627 | 625 |
628 #ifndef FEAT_GUI_W32 /* Win32 console and Unix */ | 626 #ifndef FEAT_GUI_W32 /* Win32 console and Unix */ |
629 void | 627 void |
630 mzvim_check_threads(void) | 628 mzvim_check_threads(void) |
662 static void | 660 static void |
663 timer_proc(XtPointer timed_out, XtIntervalId *interval_id) | 661 timer_proc(XtPointer timed_out, XtIntervalId *interval_id) |
664 # elif defined(FEAT_GUI_MAC) | 662 # elif defined(FEAT_GUI_MAC) |
665 pascal void | 663 pascal void |
666 timer_proc(EventLoopTimerRef theTimer, void *userData) | 664 timer_proc(EventLoopTimerRef theTimer, void *userData) |
667 #elif defined(FEAT_GUI_KDE) | |
668 void | |
669 timer_proc(void) | |
670 # endif | 665 # endif |
671 { | 666 { |
672 scheme_check_threads(); | 667 scheme_check_threads(); |
673 # if defined(FEAT_GUI_GTK) | 668 # if defined(FEAT_GUI_GTK) |
674 return TRUE; /* continue receiving notifications */ | 669 return TRUE; /* continue receiving notifications */ |
691 timer_id = XtAppAddTimeOut(app_context, p_mzq, timer_proc, NULL); | 686 timer_id = XtAppAddTimeOut(app_context, p_mzq, timer_proc, NULL); |
692 # elif defined(FEAT_GUI_MAC) | 687 # elif defined(FEAT_GUI_MAC) |
693 timerUPP = NewEventLoopTimerUPP(timer_proc); | 688 timerUPP = NewEventLoopTimerUPP(timer_proc); |
694 InstallEventLoopTimer(GetMainEventLoop(), p_mzq * kEventDurationMillisecond, | 689 InstallEventLoopTimer(GetMainEventLoop(), p_mzq * kEventDurationMillisecond, |
695 p_mzq * kEventDurationMillisecond, timerUPP, NULL, &timer_id); | 690 p_mzq * kEventDurationMillisecond, timerUPP, NULL, &timer_id); |
696 #elif defined(FEAT_GUI_KDE) | |
697 mzscheme_kde_start_timer(); | |
698 timer_id = 1; /* just signal that timer was started */ | |
699 # endif | 691 # endif |
700 } | 692 } |
701 | 693 |
702 static void | 694 static void |
703 remove_timer(void) | 695 remove_timer(void) |
709 # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) | 701 # elif defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA) |
710 XtRemoveTimeOut(timer_id); | 702 XtRemoveTimeOut(timer_id); |
711 # elif defined(FEAT_GUI_MAC) | 703 # elif defined(FEAT_GUI_MAC) |
712 RemoveEventLoopTimer(timer_id); | 704 RemoveEventLoopTimer(timer_id); |
713 DisposeEventLoopTimerUPP(timerUPP); | 705 DisposeEventLoopTimerUPP(timerUPP); |
714 #elif defined(FEAT_GUI_KDE) | |
715 mzscheme_kde_stop_timer(); | |
716 # endif | 706 # endif |
717 timer_id = 0; | 707 timer_id = 0; |
718 } | 708 } |
719 | 709 |
720 void | 710 void |