diff options
| author | Jan Djärv | 2003-01-19 21:50:03 +0000 |
|---|---|---|
| committer | Jan Djärv | 2003-01-19 21:50:03 +0000 |
| commit | 488dd4c404eba70d48e4ee70141b8abcce2f863b (patch) | |
| tree | 741ec2bb5abe963b292521e3a478e716a4ebb999 /src/frame.h | |
| parent | 3c77dc44b8052a9bcb19486a605a861cf120b31e (diff) | |
| download | emacs-488dd4c404eba70d48e4ee70141b8abcce2f863b.tar.gz emacs-488dd4c404eba70d48e4ee70141b8abcce2f863b.zip | |
GTK version
Diffstat (limited to 'src/frame.h')
| -rw-r--r-- | src/frame.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h index 7db48632105..af2a66bad65 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -215,6 +215,11 @@ struct frame | |||
| 215 | be used for output. */ | 215 | be used for output. */ |
| 216 | unsigned glyphs_initialized_p : 1; | 216 | unsigned glyphs_initialized_p : 1; |
| 217 | 217 | ||
| 218 | #if defined (USE_GTK) | ||
| 219 | /* Nonzero means using a tool bar that comes from the toolkit. */ | ||
| 220 | int external_tool_bar; | ||
| 221 | #endif | ||
| 222 | |||
| 218 | /* Margin at the top of the frame. Used to display the tool-bar. */ | 223 | /* Margin at the top of the frame. Used to display the tool-bar. */ |
| 219 | int tool_bar_lines; | 224 | int tool_bar_lines; |
| 220 | 225 | ||
| @@ -270,7 +275,8 @@ struct frame | |||
| 270 | /* Number of lines of menu bar. */ | 275 | /* Number of lines of menu bar. */ |
| 271 | int menu_bar_lines; | 276 | int menu_bar_lines; |
| 272 | 277 | ||
| 273 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) | 278 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \ |
| 279 | || defined (USE_GTK) | ||
| 274 | /* Nonzero means using a menu bar that comes from the X toolkit. */ | 280 | /* Nonzero means using a menu bar that comes from the X toolkit. */ |
| 275 | int external_menu_bar; | 281 | int external_menu_bar; |
| 276 | #endif | 282 | #endif |
| @@ -457,10 +463,19 @@ typedef struct frame *FRAME_PTR; | |||
| 457 | These lines are counted in FRAME_HEIGHT. */ | 463 | These lines are counted in FRAME_HEIGHT. */ |
| 458 | #define FRAME_MENU_BAR_LINES(f) (f)->menu_bar_lines | 464 | #define FRAME_MENU_BAR_LINES(f) (f)->menu_bar_lines |
| 459 | 465 | ||
| 466 | /* Nonzero if this frame should display a tool bar | ||
| 467 | in a way that does not use any text lines. */ | ||
| 468 | #if defined (USE_GTK) | ||
| 469 | #define FRAME_EXTERNAL_TOOL_BAR(f) (f)->external_tool_bar | ||
| 470 | #else | ||
| 471 | #define FRAME_EXTERNAL_TOOL_BAR(f) 0 | ||
| 472 | #endif | ||
| 473 | |||
| 460 | /* Number of lines of frame F used for the tool-bar. */ | 474 | /* Number of lines of frame F used for the tool-bar. */ |
| 461 | 475 | ||
| 462 | #define FRAME_TOOL_BAR_LINES(f) (f)->tool_bar_lines | 476 | #define FRAME_TOOL_BAR_LINES(f) (f)->tool_bar_lines |
| 463 | 477 | ||
| 478 | |||
| 464 | /* Lines above the top-most window in frame F. */ | 479 | /* Lines above the top-most window in frame F. */ |
| 465 | 480 | ||
| 466 | #define FRAME_TOP_MARGIN(F) \ | 481 | #define FRAME_TOP_MARGIN(F) \ |
| @@ -468,7 +483,8 @@ typedef struct frame *FRAME_PTR; | |||
| 468 | 483 | ||
| 469 | /* Nonzero if this frame should display a menu bar | 484 | /* Nonzero if this frame should display a menu bar |
| 470 | in a way that does not use any text lines. */ | 485 | in a way that does not use any text lines. */ |
| 471 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) | 486 | #if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \ |
| 487 | || defined (USE_GTK) | ||
| 472 | #define FRAME_EXTERNAL_MENU_BAR(f) (f)->external_menu_bar | 488 | #define FRAME_EXTERNAL_MENU_BAR(f) (f)->external_menu_bar |
| 473 | #else | 489 | #else |
| 474 | #define FRAME_EXTERNAL_MENU_BAR(f) 0 | 490 | #define FRAME_EXTERNAL_MENU_BAR(f) 0 |