diff options
| author | Jason Rumney | 2008-07-15 15:45:05 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-07-15 15:45:05 +0000 |
| commit | 1391cd548782097e34d7856ec4f20ca90bdf2c26 (patch) | |
| tree | 4d6fa73ea6239aacf031d2f48795dd217542751a /src | |
| parent | 71f675e5e081c8f76dc95fb0483a4f838535cdac (diff) | |
| download | emacs-1391cd548782097e34d7856ec4f20ca90bdf2c26.tar.gz emacs-1391cd548782097e34d7856ec4f20ca90bdf2c26.zip | |
* w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
(w32_show_hourglass): Rename from show_hourglass.
(w32_hide_hourglass): Rename from hide_hourglass.
(DEFAULT_HOURGLASS_DELAY): Revert from last change.
(Vhourglass_delay): Declare extern.
(hourglass_started): Remove.
* xdisp.c (Vhourglass_delay): Remove static.
(hourglass_started, start_hourglass, cancel_hourglass):
Don't include these versions on WINDOWSNT.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/w32fns.c | 19 | ||||
| -rw-r--r-- | src/xdisp.c | 9 |
3 files changed, 31 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index be26da62521..848046ece79 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2008-07-15 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect. | ||
| 4 | (w32_show_hourglass): Rename from show_hourglass. | ||
| 5 | (w32_hide_hourglass): Rename from hide_hourglass. | ||
| 6 | (DEFAULT_HOURGLASS_DELAY): Revert from last change. | ||
| 7 | (Vhourglass_delay): Declare extern. | ||
| 8 | (hourglass_started): Remove. | ||
| 9 | |||
| 10 | * xdisp.c (Vhourglass_delay): Remove static. | ||
| 11 | (hourglass_started, start_hourglass, cancel_hourglass): | ||
| 12 | Don't include these versions on WINDOWSNT. | ||
| 13 | |||
| 1 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> | 14 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> |
| 2 | 15 | ||
| 3 | * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern | 16 | * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern |
diff --git a/src/w32fns.c b/src/w32fns.c index f01d7a56ce5..a12c349e4ca 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -307,8 +307,8 @@ extern void syms_of_w32uniscribe (); | |||
| 307 | extern int uniscribe_available; | 307 | extern int uniscribe_available; |
| 308 | 308 | ||
| 309 | /* Function prototypes for hourglass support. */ | 309 | /* Function prototypes for hourglass support. */ |
| 310 | static void show_hourglass P_ ((struct frame *)); | 310 | static void w32_show_hourglass P_ ((struct frame *)); |
| 311 | static void hide_hourglass P_ ((void)); | 311 | static void w32_hide_hourglass P_ ((void)); |
| 312 | 312 | ||
| 313 | 313 | ||
| 314 | 314 | ||
| @@ -3480,7 +3480,7 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 3480 | { | 3480 | { |
| 3481 | KillTimer (hwnd, hourglass_timer); | 3481 | KillTimer (hwnd, hourglass_timer); |
| 3482 | hourglass_timer = 0; | 3482 | hourglass_timer = 0; |
| 3483 | show_hourglass (x_window_to_frame (dpyinfo, hwnd)); | 3483 | w32_show_hourglass (x_window_to_frame (dpyinfo, hwnd)); |
| 3484 | } | 3484 | } |
| 3485 | return 0; | 3485 | return 0; |
| 3486 | 3486 | ||
| @@ -4350,7 +4350,6 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 4350 | (struct w32_output *) xmalloc (sizeof (struct w32_output)); | 4350 | (struct w32_output *) xmalloc (sizeof (struct w32_output)); |
| 4351 | bzero (f->output_data.w32, sizeof (struct w32_output)); | 4351 | bzero (f->output_data.w32, sizeof (struct w32_output)); |
| 4352 | FRAME_FONTSET (f) = -1; | 4352 | FRAME_FONTSET (f) = -1; |
| 4353 | record_unwind_protect (unwind_create_frame, frame); | ||
| 4354 | 4353 | ||
| 4355 | f->icon_name | 4354 | f->icon_name |
| 4356 | = x_get_arg (dpyinfo, parameters, Qicon_name, "iconName", "Title", | 4355 | = x_get_arg (dpyinfo, parameters, Qicon_name, "iconName", "Title", |
| @@ -5229,6 +5228,12 @@ value. */) | |||
| 5229 | Busy cursor | 5228 | Busy cursor |
| 5230 | ***********************************************************************/ | 5229 | ***********************************************************************/ |
| 5231 | 5230 | ||
| 5231 | /* Default number of seconds to wait before displaying an hourglass | ||
| 5232 | cursor. Duplicated from xdisp.c, but cannot use the version there | ||
| 5233 | due to lack of atimers on w32. */ | ||
| 5234 | #define DEFAULT_HOURGLASS_DELAY 1 | ||
| 5235 | extern Lisp_Object Vhourglass_delay; | ||
| 5236 | |||
| 5232 | /* Return non-zero if houglass timer has been started or hourglass is shown. */ | 5237 | /* Return non-zero if houglass timer has been started or hourglass is shown. */ |
| 5233 | /* PENDING: if W32 can use atimers (atimer.[hc]) then the common impl in | 5238 | /* PENDING: if W32 can use atimers (atimer.[hc]) then the common impl in |
| 5234 | xdisp.c could be used. */ | 5239 | xdisp.c could be used. */ |
| @@ -5287,7 +5292,7 @@ cancel_hourglass () | |||
| 5287 | } | 5292 | } |
| 5288 | 5293 | ||
| 5289 | if (hourglass_shown_p) | 5294 | if (hourglass_shown_p) |
| 5290 | hide_hourglass (); | 5295 | w32_hide_hourglass (); |
| 5291 | } | 5296 | } |
| 5292 | 5297 | ||
| 5293 | 5298 | ||
| @@ -5297,7 +5302,7 @@ cancel_hourglass () | |||
| 5297 | to indicate that an hourglass cursor is shown. */ | 5302 | to indicate that an hourglass cursor is shown. */ |
| 5298 | 5303 | ||
| 5299 | static void | 5304 | static void |
| 5300 | show_hourglass (f) | 5305 | w32_show_hourglass (f) |
| 5301 | struct frame *f; | 5306 | struct frame *f; |
| 5302 | { | 5307 | { |
| 5303 | if (!hourglass_shown_p) | 5308 | if (!hourglass_shown_p) |
| @@ -5313,7 +5318,7 @@ show_hourglass (f) | |||
| 5313 | /* Hide the hourglass cursor on all frames, if it is currently shown. */ | 5318 | /* Hide the hourglass cursor on all frames, if it is currently shown. */ |
| 5314 | 5319 | ||
| 5315 | static void | 5320 | static void |
| 5316 | hide_hourglass () | 5321 | w32_hide_hourglass () |
| 5317 | { | 5322 | { |
| 5318 | if (hourglass_shown_p) | 5323 | if (hourglass_shown_p) |
| 5319 | { | 5324 | { |
diff --git a/src/xdisp.c b/src/xdisp.c index f6d0d85ce6e..d6a96c4a72f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -865,7 +865,7 @@ int hourglass_shown_p; | |||
| 865 | struct atimer *hourglass_atimer; | 865 | struct atimer *hourglass_atimer; |
| 866 | 866 | ||
| 867 | /* Number of seconds to wait before displaying an hourglass cursor. */ | 867 | /* Number of seconds to wait before displaying an hourglass cursor. */ |
| 868 | static Lisp_Object Vhourglass_delay; | 868 | Lisp_Object Vhourglass_delay; |
| 869 | 869 | ||
| 870 | /* Default number of seconds to wait before displaying an hourglass | 870 | /* Default number of seconds to wait before displaying an hourglass |
| 871 | cursor. */ | 871 | cursor. */ |
| @@ -25229,6 +25229,10 @@ init_xdisp () | |||
| 25229 | help_echo_showing_p = 0; | 25229 | help_echo_showing_p = 0; |
| 25230 | } | 25230 | } |
| 25231 | 25231 | ||
| 25232 | /* Since w32 does not support atimers, it defines its own implementation of | ||
| 25233 | the following three functions in w32fns.c. */ | ||
| 25234 | #ifndef WINDOWSNT | ||
| 25235 | |||
| 25232 | /* Platform-independent portion of hourglass implementation. */ | 25236 | /* Platform-independent portion of hourglass implementation. */ |
| 25233 | 25237 | ||
| 25234 | /* Return non-zero if houglass timer has been started or hourglass is shown. */ | 25238 | /* Return non-zero if houglass timer has been started or hourglass is shown. */ |
| @@ -25238,7 +25242,6 @@ hourglass_started () | |||
| 25238 | return hourglass_shown_p || hourglass_atimer != NULL; | 25242 | return hourglass_shown_p || hourglass_atimer != NULL; |
| 25239 | } | 25243 | } |
| 25240 | 25244 | ||
| 25241 | |||
| 25242 | /* Cancel a currently active hourglass timer, and start a new one. */ | 25245 | /* Cancel a currently active hourglass timer, and start a new one. */ |
| 25243 | void | 25246 | void |
| 25244 | start_hourglass () | 25247 | start_hourglass () |
| @@ -25286,7 +25289,7 @@ cancel_hourglass () | |||
| 25286 | hide_hourglass (); | 25289 | hide_hourglass (); |
| 25287 | #endif | 25290 | #endif |
| 25288 | } | 25291 | } |
| 25289 | 25292 | #endif /* ! WINDOWSNT */ | |
| 25290 | 25293 | ||
| 25291 | /* arch-tag: eacc864d-bb6a-4b74-894a-1a4399a1358b | 25294 | /* arch-tag: eacc864d-bb6a-4b74-894a-1a4399a1358b |
| 25292 | (do not change this comment) */ | 25295 | (do not change this comment) */ |