comparison src/toolbar-msw.c @ 905:c15f25529e61

[xemacs-hg @ 2002-07-06 21:05:42 by andyp] toolbar redisplay patch
author andyp
date Sat, 06 Jul 2002 21:05:58 +0000
parents 79c6ff3eef26
children ccd0667b4764
comparison
equal deleted inserted replaced
904:47c30044fc4e 905:c15f25529e61
20 You should have received a copy of the GNU General Public License 20 You should have received a copy of the GNU General Public License
21 along with XEmacs; see the file COPYING. If not, write to 21 along with XEmacs; see the file COPYING. If not, write to
22 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA. */ 23 Boston, MA 02111-1307, USA. */
24 24
25 /* This implementation by Andy Piper <andyp@parallax.co.uk>, with bits 25 /* This implementation by Andy Piper <andy@xemacs.org>, with bits
26 borrowed from toolbar-x.c */ 26 borrowed from toolbar-x.c */
27 27
28 /* Synched up with: Not in FSF. */ 28 /* Synched up with: Not in FSF. */
29 29
30 /* This file essentially Mule-ized (except perhaps some Unicode splitting). 30 /* This file essentially Mule-ized (except perhaps some Unicode splitting).
548 { 548 {
549 assert (FRAME_MSWINDOWS_P (f)); 549 assert (FRAME_MSWINDOWS_P (f));
550 550
551 if (FRAME_REAL_TOP_TOOLBAR_VISIBLE (f)) 551 if (FRAME_REAL_TOP_TOOLBAR_VISIBLE (f))
552 mswindows_output_toolbar (f, TOP_TOOLBAR); 552 mswindows_output_toolbar (f, TOP_TOOLBAR);
553 else if (f->top_toolbar_was_visible)
554 mswindows_clear_toolbar (f, TOP_TOOLBAR, 0);
555
556 if (FRAME_REAL_BOTTOM_TOOLBAR_VISIBLE (f)) 553 if (FRAME_REAL_BOTTOM_TOOLBAR_VISIBLE (f))
557 mswindows_output_toolbar (f, BOTTOM_TOOLBAR); 554 mswindows_output_toolbar (f, BOTTOM_TOOLBAR);
558 else if (f->bottom_toolbar_was_visible)
559 mswindows_clear_toolbar (f, BOTTOM_TOOLBAR, 0);
560
561 if (FRAME_REAL_LEFT_TOOLBAR_VISIBLE (f)) 555 if (FRAME_REAL_LEFT_TOOLBAR_VISIBLE (f))
562 mswindows_output_toolbar (f, LEFT_TOOLBAR); 556 mswindows_output_toolbar (f, LEFT_TOOLBAR);
563 else if (f->left_toolbar_was_visible)
564 mswindows_clear_toolbar (f, LEFT_TOOLBAR, 0);
565
566 if (FRAME_REAL_RIGHT_TOOLBAR_VISIBLE (f)) 557 if (FRAME_REAL_RIGHT_TOOLBAR_VISIBLE (f))
567 mswindows_output_toolbar (f, RIGHT_TOOLBAR); 558 mswindows_output_toolbar (f, RIGHT_TOOLBAR);
568 else if (f->right_toolbar_was_visible) 559 }
560
561 static void
562 mswindows_clear_frame_toolbars (struct frame *f)
563 {
564 assert (FRAME_MSWINDOWS_P (f));
565
566 if (f->top_toolbar_was_visible
567 && !FRAME_REAL_TOP_TOOLBAR_VISIBLE (f))
568 mswindows_clear_toolbar (f, TOP_TOOLBAR, 0);
569 if (f->bottom_toolbar_was_visible
570 && !FRAME_REAL_BOTTOM_TOOLBAR_VISIBLE (f))
571 mswindows_clear_toolbar (f, BOTTOM_TOOLBAR, 0);
572 if (f->left_toolbar_was_visible
573 && !FRAME_REAL_LEFT_TOOLBAR_VISIBLE (f))
574 mswindows_clear_toolbar (f, LEFT_TOOLBAR, 0);
575 if (f->right_toolbar_was_visible
576 && !FRAME_REAL_RIGHT_TOOLBAR_VISIBLE (f))
569 mswindows_clear_toolbar (f, RIGHT_TOOLBAR, 0); 577 mswindows_clear_toolbar (f, RIGHT_TOOLBAR, 0);
570 } 578 }
571 579
572 static void 580 static void
573 mswindows_free_frame_toolbars (struct frame *f) 581 mswindows_free_frame_toolbars (struct frame *f)
638 646
639 void 647 void
640 console_type_create_toolbar_mswindows (void) 648 console_type_create_toolbar_mswindows (void)
641 { 649 {
642 CONSOLE_HAS_METHOD (mswindows, output_frame_toolbars); 650 CONSOLE_HAS_METHOD (mswindows, output_frame_toolbars);
651 CONSOLE_HAS_METHOD (mswindows, clear_frame_toolbars);
643 CONSOLE_HAS_METHOD (mswindows, initialize_frame_toolbars); 652 CONSOLE_HAS_METHOD (mswindows, initialize_frame_toolbars);
644 CONSOLE_HAS_METHOD (mswindows, free_frame_toolbars); 653 CONSOLE_HAS_METHOD (mswindows, free_frame_toolbars);
645 CONSOLE_HAS_METHOD (mswindows, redraw_exposed_toolbars); 654 CONSOLE_HAS_METHOD (mswindows, redraw_exposed_toolbars);
646 CONSOLE_HAS_METHOD (mswindows, redraw_frame_toolbars); 655 CONSOLE_HAS_METHOD (mswindows, redraw_frame_toolbars);
647 } 656 }