aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-02-23 08:26:33 +0000
committerYAMAMOTO Mitsuharu2007-02-23 08:26:33 +0000
commit0efdda2463aebf3f3d289f3181296af4a98ecf05 (patch)
tree6d9f6382b4aa833a040afad1697c71247204c05a /src
parente6509087afb424af7bcf3593b08dbdf16dd6f7c8 (diff)
downloademacs-0efdda2463aebf3f3d289f3181296af4a98ecf05.tar.gz
emacs-0efdda2463aebf3f3d289f3181296af4a98ecf05.zip
(x_display_info_for_display): Remove extern.
(SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit value to be unpacked to 32-bit on LP64 model.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog26
-rw-r--r--src/macterm.h23
2 files changed, 38 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dcb4d272561..d2a8113a429 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,29 @@
12007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
4 `menu_item_selection' as in W32 version.
5 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
6 braces to avoid ambiguous `else'.
7
8 * macterm.c (mac_display_info_for_display): Remove function.
9 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
10 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
11 flush_display_optional.
12 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press): New
13 argument MOUSE_POS. All uses changed. Set bar->dragging to
14 negative integer if scroll bar handle is pressed.
15 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release): Negative
16 bar->dragging means scroll bar handle is not dragged.
17 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
18 offset of scroll bar handle from negative bar->dragging.
19 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
20 bar click is compared against mapped one. Set down/up_modifier
21 for scroll bar click event with control key.
22
23 * macterm.h (x_display_info_for_display): Remove extern.
24 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
25 value to be unpacked to 32-bit on LP64 model.
26
12007-02-23 Kenichi Handa <handa@m17n.org> 272007-02-23 Kenichi Handa <handa@m17n.org>
2 28
3 * process.c (send_process_object_unwind): New function. 29 * process.c (send_process_object_unwind): New function.
diff --git a/src/macterm.h b/src/macterm.h
index 0447b41d908..d56287c348c 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -204,7 +204,6 @@ extern struct mac_display_info one_mac_display_info;
204 FONT-LIST-CACHE records previous values returned by x-list-fonts. */ 204 FONT-LIST-CACHE records previous values returned by x-list-fonts. */
205extern Lisp_Object x_display_name_list; 205extern Lisp_Object x_display_name_list;
206 206
207extern struct x_display_info *x_display_info_for_display P_ ((Display *));
208extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object)); 207extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object));
209 208
210extern struct mac_display_info *mac_term_init P_ ((Lisp_Object, char *, char *)); 209extern struct mac_display_info *mac_term_init P_ ((Lisp_Object, char *, char *));
@@ -404,8 +403,8 @@ struct scroll_bar {
404 /* The next and previous in the chain of scroll bars in this frame. */ 403 /* The next and previous in the chain of scroll bars in this frame. */
405 Lisp_Object next, prev; 404 Lisp_Object next, prev;
406 405
407 /* The Mac control handle of this scroll bar. Since this is a full 406 /* The Mac control handle of this scroll bar. Since this is a
408 32-bit quantity, we store it split into two 32-bit values. */ 407 pointer value, we store it split into two Lisp integers. */
409 Lisp_Object control_handle_low, control_handle_high; 408 Lisp_Object control_handle_low, control_handle_high;
410 409
411 /* The position and size of the scroll bar in pixels, relative to the 410 /* The position and size of the scroll bar in pixels, relative to the
@@ -427,7 +426,9 @@ struct scroll_bar {
427 426
428 /* If the scroll bar handle is currently being dragged by the user, 427 /* If the scroll bar handle is currently being dragged by the user,
429 this is the number of pixels from the top of the handle to the 428 this is the number of pixels from the top of the handle to the
430 place where the user grabbed it. If the handle isn't currently 429 place where the user grabbed it. If the handle is pressed but
430 not dragged yet, this is a negative integer whose absolute value
431 is the number of pixels plus 1. If the handle isn't currently
431 being dragged, this is Qnil. */ 432 being dragged, this is Qnil. */
432 Lisp_Object dragging; 433 Lisp_Object dragging;
433 434
@@ -448,13 +449,13 @@ struct scroll_bar {
448#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec)) 449#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec))
449 450
450 451
451/* Building a 32-bit C integer from two 16-bit lisp integers. */ 452/* Building a C long integer from two lisp integers. */
452#define SCROLL_BAR_PACK(low, high) (XINT (high) << 16 | XINT (low)) 453#define SCROLL_BAR_PACK(low, high) (XINT (high) << 16 | XINT (low))
453 454
454/* Setting two lisp integers to the low and high words of a 32-bit C int. */ 455/* Setting two lisp integers to two parts of a C unsigned long. */
455#define SCROLL_BAR_UNPACK(low, high, int32) \ 456#define SCROLL_BAR_UNPACK(low, high, ulong) \
456 (XSETINT ((low), (int32) & 0xffff), \ 457 (XSETINT ((low), (ulong) & 0xffff), \
457 XSETINT ((high), ((int32) >> 16) & 0xffff)) 458 XSETINT ((high), (ulong) >> 16))
458 459
459 460
460/* Extract the Mac control handle of the scroll bar from a struct 461/* Extract the Mac control handle of the scroll bar from a struct
@@ -464,9 +465,9 @@ struct scroll_bar {
464 (ptr)->control_handle_high)) 465 (ptr)->control_handle_high))
465 466
466/* Store a Mac control handle in a struct scroll_bar. */ 467/* Store a Mac control handle in a struct scroll_bar. */
467#define SET_SCROLL_BAR_CONTROL_HANDLE(ptr, id) \ 468#define SET_SCROLL_BAR_CONTROL_HANDLE(ptr, handle) \
468 (SCROLL_BAR_UNPACK ((ptr)->control_handle_low, \ 469 (SCROLL_BAR_UNPACK ((ptr)->control_handle_low, \
469 (ptr)->control_handle_high, (int) id)) 470 (ptr)->control_handle_high, (unsigned long) (handle)))
470 471
471/* Return the inside width of a vertical scroll bar, given the outside 472/* Return the inside width of a vertical scroll bar, given the outside
472 width. */ 473 width. */