Mercurial > emacs
comparison src/dispnew.c @ 49322:2cbb0b823e83
GTK version
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Sun, 19 Jan 2003 21:50:03 +0000 |
parents | 227785e3e29f |
children | 23a1cea22d13 |
comparison
equal
deleted
inserted
replaced
49321:2b92ca3f78f6 | 49322:2cbb0b823e83 |
---|---|
2369 /* Allocate/reallocate window matrices. */ | 2369 /* Allocate/reallocate window matrices. */ |
2370 allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); | 2370 allocate_matrices_for_window_redisplay (XWINDOW (FRAME_ROOT_WINDOW (f))); |
2371 | 2371 |
2372 /* Allocate/ reallocate matrices of the dummy window used to display | 2372 /* Allocate/ reallocate matrices of the dummy window used to display |
2373 the menu bar under X when no X toolkit support is available. */ | 2373 the menu bar under X when no X toolkit support is available. */ |
2374 #ifndef USE_X_TOOLKIT | 2374 #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
2375 { | 2375 { |
2376 /* Allocate a dummy window if not already done. */ | 2376 /* Allocate a dummy window if not already done. */ |
2377 if (NILP (f->menu_bar_window)) | 2377 if (NILP (f->menu_bar_window)) |
2378 { | 2378 { |
2379 f->menu_bar_window = make_window (); | 2379 f->menu_bar_window = make_window (); |
2392 XSETFASTINT (w->width, FRAME_WINDOW_WIDTH (f)); | 2392 XSETFASTINT (w->width, FRAME_WINDOW_WIDTH (f)); |
2393 allocate_matrices_for_window_redisplay (w); | 2393 allocate_matrices_for_window_redisplay (w); |
2394 } | 2394 } |
2395 #endif /* not USE_X_TOOLKIT */ | 2395 #endif /* not USE_X_TOOLKIT */ |
2396 | 2396 |
2397 #ifndef USE_GTK | |
2397 /* Allocate/ reallocate matrices of the tool bar window. If we | 2398 /* Allocate/ reallocate matrices of the tool bar window. If we |
2398 don't have a tool bar window yet, make one. */ | 2399 don't have a tool bar window yet, make one. */ |
2399 if (NILP (f->tool_bar_window)) | 2400 if (NILP (f->tool_bar_window)) |
2400 { | 2401 { |
2401 f->tool_bar_window = make_window (); | 2402 f->tool_bar_window = make_window (); |
2409 XSETFASTINT (w->top, FRAME_MENU_BAR_LINES (f)); | 2410 XSETFASTINT (w->top, FRAME_MENU_BAR_LINES (f)); |
2410 XSETFASTINT (w->left, 0); | 2411 XSETFASTINT (w->left, 0); |
2411 XSETFASTINT (w->height, FRAME_TOOL_BAR_LINES (f)); | 2412 XSETFASTINT (w->height, FRAME_TOOL_BAR_LINES (f)); |
2412 XSETFASTINT (w->width, FRAME_WINDOW_WIDTH (f)); | 2413 XSETFASTINT (w->width, FRAME_WINDOW_WIDTH (f)); |
2413 allocate_matrices_for_window_redisplay (w); | 2414 allocate_matrices_for_window_redisplay (w); |
2415 #endif | |
2414 } | 2416 } |
2415 | 2417 |
2416 | 2418 |
2417 /* Adjust/ allocate message buffer of frame F. | 2419 /* Adjust/ allocate message buffer of frame F. |
2418 | 2420 |