aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFred Pierresteguy1994-03-31 14:50:46 +0000
committerFred Pierresteguy1994-03-31 14:50:46 +0000
commit706aa2f2e7d574ace98f141809c4f6af06377246 (patch)
treeac1b1a746a517c09228ad43223395516d166deea /src
parenta7f7d5508cc8fdcacfc8dd4493af5d7694f226e8 (diff)
downloademacs-706aa2f2e7d574ace98f141809c4f6af06377246.tar.gz
emacs-706aa2f2e7d574ace98f141809c4f6af06377246.zip
(set_frame_menubar): New arg, first_time.
Don't update the menubar the first time it is created via x_window. (initialize_frame_menubar): Pass 1 to set_frame_menubar.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 1d0a400c28c..9ce7335fbba 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1145,8 +1145,9 @@ update_frame_menubar (f)
1145} 1145}
1146 1146
1147void 1147void
1148set_frame_menubar (f) 1148set_frame_menubar (f, first_time)
1149 FRAME_PTR f; 1149 FRAME_PTR f;
1150 int first_time;
1150{ 1151{
1151 Widget menubar_widget = f->display.x->menubar_widget; 1152 Widget menubar_widget = f->display.x->menubar_widget;
1152 int id = (int) f; 1153 int id = (int) f;
@@ -1203,7 +1204,9 @@ set_frame_menubar (f)
1203 1204
1204 free_menubar_widget_value_tree (first_wv); 1205 free_menubar_widget_value_tree (first_wv);
1205 1206
1206 update_frame_menubar (f); 1207 /* Don't update the menubar the first time it is created via x_window. */
1208 if (!first_time)
1209 update_frame_menubar (f);
1207 1210
1208 UNBLOCK_INPUT; 1211 UNBLOCK_INPUT;
1209} 1212}
@@ -1233,7 +1236,7 @@ void
1233initialize_frame_menubar (f) 1236initialize_frame_menubar (f)
1234 FRAME_PTR f; 1237 FRAME_PTR f;
1235{ 1238{
1236 set_frame_menubar (f); 1239 set_frame_menubar (f, 1);
1237} 1240}
1238 1241
1239/* Nonzero if position X, Y relative to inside of frame F 1242/* Nonzero if position X, Y relative to inside of frame F