aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 8bb8d17369c..e3f1a17fbce 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -627,7 +627,6 @@ update_frame_menubar (struct frame *f)
627 xg_update_frame_menubar (f); 627 xg_update_frame_menubar (f);
628#else 628#else
629 struct x_output *x; 629 struct x_output *x;
630/** int columns, rows; **/
631 630
632 eassert (FRAME_X_P (f)); 631 eassert (FRAME_X_P (f));
633 632
@@ -637,10 +636,6 @@ update_frame_menubar (struct frame *f)
637 return; 636 return;
638 637
639 block_input (); 638 block_input ();
640 /* Save the size of the frame because the pane widget doesn't accept
641 to resize itself. So force it. */
642/** columns = FRAME_COLS (f); **/
643/** rows = FRAME_LINES (f); **/
644 639
645 /* Do the voodoo which means "I'm changing lots of things, don't try 640 /* Do the voodoo which means "I'm changing lots of things, don't try
646 to refigure sizes until I'm done." */ 641 to refigure sizes until I'm done." */
@@ -661,8 +656,7 @@ update_frame_menubar (struct frame *f)
661 XtManageChild (x->edit_widget); 656 XtManageChild (x->edit_widget);
662 lw_refigure_widget (x->column_widget, True); 657 lw_refigure_widget (x->column_widget, True);
663 658
664 /* Force the pane widget to resize itself with the right values. */ 659 /* Force the pane widget to resize itself. */
665/** EmacsFrameSetCharSize (x->edit_widget, columns, rows); **/
666 adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 2, 0); 660 adjust_frame_size (f, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 2, 0);
667 unblock_input (); 661 unblock_input ();
668#endif 662#endif