diff options
| author | Eli Zaretskii | 2012-08-06 19:36:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-08-06 19:36:47 +0300 |
| commit | 5f50daf249281ef6ffbd11b5e89c36c4b8235851 (patch) | |
| tree | 98f52284a04e565e194f70497be6fceab44ced9a /src | |
| parent | cbcc70072ca522afbf01a6bcd0890a5ffaa730aa (diff) | |
| download | emacs-5f50daf249281ef6ffbd11b5e89c36c4b8235851.tar.gz emacs-5f50daf249281ef6ffbd11b5e89c36c4b8235851.zip | |
Fix usage of FRAME_MENU_BAR_ITEMS in w32menu.c.
src/w32menu.c (set_frame_menubar, initialize_frame_menubar): Don't
use FRAME_MENU_BAR_ITEMS as an lvalue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32menu.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e33a080cdda..8a2334804f1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-06 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32menu.c (set_frame_menubar, initialize_frame_menubar): Don't | ||
| 4 | use FRAME_MENU_BAR_ITEMS as an lvalue. | ||
| 5 | |||
| 1 | 2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * buffer.h (struct buffer): Revert `indirections' to a simple int; | 8 | * buffer.h (struct buffer): Revert `indirections' to a simple int; |
diff --git a/src/w32menu.c b/src/w32menu.c index 80f48bdf705..7ea4633235e 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -413,7 +413,7 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p) | |||
| 413 | /* Run the hooks. */ | 413 | /* Run the hooks. */ |
| 414 | safe_run_hooks (Qactivate_menubar_hook); | 414 | safe_run_hooks (Qactivate_menubar_hook); |
| 415 | safe_run_hooks (Qmenu_bar_update_hook); | 415 | safe_run_hooks (Qmenu_bar_update_hook); |
| 416 | FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f)); | 416 | FSET (f, menu_bar_items, menu_bar_items (FRAME_MENU_BAR_ITEMS (f))); |
| 417 | 417 | ||
| 418 | items = FRAME_MENU_BAR_ITEMS (f); | 418 | items = FRAME_MENU_BAR_ITEMS (f); |
| 419 | 419 | ||
| @@ -615,7 +615,7 @@ initialize_frame_menubar (FRAME_PTR f) | |||
| 615 | { | 615 | { |
| 616 | /* This function is called before the first chance to redisplay | 616 | /* This function is called before the first chance to redisplay |
| 617 | the frame. It has to be, so the frame will have the right size. */ | 617 | the frame. It has to be, so the frame will have the right size. */ |
| 618 | FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f)); | 618 | FSET (f, menu_bar_items, menu_bar_items (FRAME_MENU_BAR_ITEMS (f))); |
| 619 | set_frame_menubar (f, 1, 1); | 619 | set_frame_menubar (f, 1, 1); |
| 620 | } | 620 | } |
| 621 | 621 | ||