diff options
| author | Eli Zaretskii | 2012-08-04 17:36:36 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-08-04 17:36:36 +0300 |
| commit | 8da0576b32428d46919ee50bf266a489b62d154f (patch) | |
| tree | 7ddd44324cd67b93c18f8ccc0430a9ffb2c43b09 /src | |
| parent | 02676e5d3d035963b9f0ac51e0bd6c4722e90e31 (diff) | |
| download | emacs-8da0576b32428d46919ee50bf266a489b62d154f.tar.gz emacs-8da0576b32428d46919ee50bf266a489b62d154f.zip | |
Fix compilation --with-x-toolkit=no.
stc/xfns.c (x_set_menu_bar_lines): Fix compilation error in
--with-x-toolkit=no builds by using FVAR.
Reported by Carsten Mattner <carstenmattner@gmail.com>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xfns.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2a9d4c50ae2..4b60dd07e73 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-08-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xfns.c (x_set_menu_bar_lines): Fix compilation error in | ||
| 4 | --with-x-toolkit=no builds. | ||
| 5 | Reported by Carsten Mattner <carstenmattner@gmail.com>. | ||
| 6 | |||
| 1 | 2012-08-04 Chong Yidong <cyd@gnu.org> | 7 | 2012-08-04 Chong Yidong <cyd@gnu.org> |
| 2 | 8 | ||
| 3 | * syntax.c (Fmodify_syntax_entry): Doc fix. | 9 | * syntax.c (Fmodify_syntax_entry): Doc fix. |
diff --git a/src/xfns.c b/src/xfns.c index 5e92fe9b187..8bbb4e1ca51 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1253,8 +1253,8 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | |||
| 1253 | UNBLOCK_INPUT; | 1253 | UNBLOCK_INPUT; |
| 1254 | } | 1254 | } |
| 1255 | 1255 | ||
| 1256 | if (nlines == 0 && WINDOWP (f->menu_bar_window)) | 1256 | if (nlines == 0 && WINDOWP (FVAR (f, menu_bar_window))) |
| 1257 | clear_glyph_matrix (XWINDOW (f->menu_bar_window)->current_matrix); | 1257 | clear_glyph_matrix (XWINDOW (FVAR (f, menu_bar_window))->current_matrix); |
| 1258 | } | 1258 | } |
| 1259 | #endif /* not USE_X_TOOLKIT && not USE_GTK */ | 1259 | #endif /* not USE_X_TOOLKIT && not USE_GTK */ |
| 1260 | adjust_glyphs (f); | 1260 | adjust_glyphs (f); |