aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2007-04-27 06:26:09 +0000
committerJan Djärv2007-04-27 06:26:09 +0000
commitf1f6b7692d3e9d8cde9e28719e0d9abc13e0c5bf (patch)
tree4de8035ac3f5884f7430b6619cb30c36e44b6158 /src
parent9d1536a63b09c27ba8450b9ca45e99aa7048ed2f (diff)
downloademacs-f1f6b7692d3e9d8cde9e28719e0d9abc13e0c5bf.tar.gz
emacs-f1f6b7692d3e9d8cde9e28719e0d9abc13e0c5bf.zip
(xdialog_show): Call Fredisplay before showing the dialog.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xmenu.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4282e904ff2..22055a99973 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12007-04-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 12007-04-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 2
3 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
4
3 * gtkutil.c (xg_update_menubar, create_menus): Create empty 5 * gtkutil.c (xg_update_menubar, create_menus): Create empty
4 submenu for menu bar items. 6 submenu for menu bar items.
5 7
diff --git a/src/xmenu.c b/src/xmenu.c
index b9aabd94ae1..fd6fc960739 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -3333,6 +3333,14 @@ xdialog_show (f, keymaps, title, header, error_name)
3333 /* No selection has been chosen yet. */ 3333 /* No selection has been chosen yet. */
3334 menu_item_selection = 0; 3334 menu_item_selection = 0;
3335 3335
3336 /* Force a redisplay before showing the dialog. If a frame is created
3337 just before showing the dialog, its contents may not have been fully
3338 drawn, as this depends on timing of events from the X server. Redisplay
3339 is not done when a dialog is shown. If redisplay could be done in the
3340 X event loop (i.e. the X event loop does not run in a signal handler)
3341 this would not be needed. */
3342 Fredisplay (Qt);
3343
3336 /* Actually create and show the dialog. */ 3344 /* Actually create and show the dialog. */
3337 create_and_show_dialog (f, first_wv); 3345 create_and_show_dialog (f, first_wv);
3338 3346