diff options
| author | Andreas Schwab | 2008-07-11 11:20:21 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2008-07-11 11:20:21 +0000 |
| commit | e7c9048f9d548c4dd01853692dfec74d514b5820 (patch) | |
| tree | ee1c147b306f435e37a72f775e8db756c2c33ce6 /src | |
| parent | 38aaf336a128d023147f798fc52c16d9797ff693 (diff) | |
| download | emacs-e7c9048f9d548c4dd01853692dfec74d514b5820.tar.gz emacs-e7c9048f9d548c4dd01853692dfec74d514b5820.zip | |
* menu.h: New file.
* menu.c: Include it.
* xmenu.c: Likewise.
* Makefile.in: Update dependencies.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 5 | ||||
| -rw-r--r-- | src/menu.c | 1 | ||||
| -rw-r--r-- | src/menu.h | 36 | ||||
| -rw-r--r-- | src/xmenu.c | 7 |
5 files changed, 53 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0580e59f318..5c5e673f2c0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-07-11 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * menu.h: New file. | ||
| 4 | * menu.c: Include it. | ||
| 5 | * xmenu.c: Likewise. | ||
| 6 | * Makefile.in: Update dependencies. | ||
| 7 | |||
| 1 | 2008-07-11 Kenichi Handa <handa@m17n.org> | 8 | 2008-07-11 Kenichi Handa <handa@m17n.org> |
| 2 | 9 | ||
| 3 | * fontset.c (fontset_from_font): Cancel the previous change. | 10 | * fontset.c (fontset_from_font): Cancel the previous change. |
diff --git a/src/Makefile.in b/src/Makefile.in index 29a4881d012..9fc66979f25 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -1176,10 +1176,11 @@ xftfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \ | |||
| 1176 | ftxfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \ | 1176 | ftxfont.o: dispextern.h xterm.h frame.h blockinput.h character.h charset.h \ |
| 1177 | font.h $(config_h) | 1177 | font.h $(config_h) |
| 1178 | menu.o: menu.c lisp.h keyboard.h keymap.h frame.h termhooks.h blockinput.h \ | 1178 | menu.o: menu.c lisp.h keyboard.h keymap.h frame.h termhooks.h blockinput.h \ |
| 1179 | dispextern.h $(srcdir)/../lwlib/lwlib.h xterm.h gtkutil.h $(config_h) | 1179 | dispextern.h $(srcdir)/../lwlib/lwlib.h xterm.h gtkutil.h menu.h \ |
| 1180 | $(config_h) | ||
| 1180 | xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \ | 1181 | xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \ |
| 1181 | charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \ | 1182 | charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \ |
| 1182 | systime.h gtkutil.h msdos.h coding.h $(config_h) | 1183 | systime.h gtkutil.h msdos.h coding.h menu.h $(config_h) |
| 1183 | xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \ | 1184 | xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \ |
| 1184 | dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \ | 1185 | dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \ |
| 1185 | keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \ | 1186 | keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \ |
diff --git a/src/menu.c b/src/menu.c index 52c721891f7..e8bc8de1bfc 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -47,6 +47,7 @@ extern AppendMenuW_Proc unicode_append_menu; | |||
| 47 | 47 | ||
| 48 | #endif /* HAVE_NTGUI */ | 48 | #endif /* HAVE_NTGUI */ |
| 49 | 49 | ||
| 50 | #include "menu.h" | ||
| 50 | 51 | ||
| 51 | /* Define HAVE_BOXES if menus can handle radio and toggle buttons. */ | 52 | /* Define HAVE_BOXES if menus can handle radio and toggle buttons. */ |
| 52 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI) | 53 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI) |
diff --git a/src/menu.h b/src/menu.h new file mode 100644 index 00000000000..ed552e80e90 --- /dev/null +++ b/src/menu.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Functions to manipulate menus. | ||
| 2 | Copyright (C) 2008 Free Software Foundation, Inc. | ||
| 3 | |||
| 4 | This file is part of GNU Emacs. | ||
| 5 | |||
| 6 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 7 | it under the terms of the GNU General Public License as published by | ||
| 8 | the Free Software Foundation, either version 3 of the License, or | ||
| 9 | (at your option) any later version. | ||
| 10 | |||
| 11 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | ||
| 18 | |||
| 19 | #ifndef MENU_H | ||
| 20 | #define MENU_H | ||
| 21 | |||
| 22 | extern void init_menu_items P_ ((void)); | ||
| 23 | extern void finish_menu_items P_ ((void)); | ||
| 24 | extern void discard_menu_items P_ ((void)); | ||
| 25 | extern void save_menu_items P_ ((void)); | ||
| 26 | extern int parse_single_submenu P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | ||
| 27 | extern void keymap_panes P_ ((Lisp_Object *, int, int)); | ||
| 28 | extern void list_of_panes P_ ((Lisp_Object)); | ||
| 29 | #if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI) | ||
| 30 | extern void free_menubar_widget_value_tree P_ ((widget_value *)); | ||
| 31 | extern void update_submenu_strings P_ ((widget_value *)); | ||
| 32 | extern void find_and_call_menu_selection P_ ((FRAME_PTR, EMACS_INT, | ||
| 33 | Lisp_Object, void *)); | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #endif /* MENU_H */ | ||
diff --git a/src/xmenu.c b/src/xmenu.c index bba202e4504..ca0bcdf7d23 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -94,6 +94,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 94 | #endif /* not USE_X_TOOLKIT */ | 94 | #endif /* not USE_X_TOOLKIT */ |
| 95 | #endif /* HAVE_X_WINDOWS */ | 95 | #endif /* HAVE_X_WINDOWS */ |
| 96 | 96 | ||
| 97 | #ifdef USE_GTK | ||
| 98 | #include "gtkutil.h" | ||
| 99 | #endif | ||
| 100 | |||
| 101 | #include "menu.h" | ||
| 102 | |||
| 97 | #ifndef TRUE | 103 | #ifndef TRUE |
| 98 | #define TRUE 1 | 104 | #define TRUE 1 |
| 99 | #define FALSE 0 | 105 | #define FALSE 0 |
| @@ -125,7 +131,6 @@ static void popup_get_selection P_ ((XEvent *, struct x_display_info *, | |||
| 125 | #endif /* USE_X_TOOLKIT */ | 131 | #endif /* USE_X_TOOLKIT */ |
| 126 | 132 | ||
| 127 | #ifdef USE_GTK | 133 | #ifdef USE_GTK |
| 128 | #include "gtkutil.h" | ||
| 129 | extern void set_frame_menubar P_ ((FRAME_PTR, int, int)); | 134 | extern void set_frame_menubar P_ ((FRAME_PTR, int, int)); |
| 130 | static Lisp_Object xdialog_show P_ ((FRAME_PTR, int, Lisp_Object, Lisp_Object, | 135 | static Lisp_Object xdialog_show P_ ((FRAME_PTR, int, Lisp_Object, Lisp_Object, |
| 131 | char **)); | 136 | char **)); |