diff options
author | Jindřich Makovička <makovick@gmail.com> | 2021-05-29 14:53:20 +0200 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-06-13 18:11:57 +0900 |
commit | 83c35b86da233870231e30d114ffa4640eb10081 (patch) | |
tree | e8b988fb0062c8e3ea729a4e62740e2203937915 /src/pgtkfns.c | |
parent | 7d5e94bada09e642a8bfc4f66804f7948bad40bc (diff) | |
download | emacs-83c35b86da233870231e30d114ffa4640eb10081.tar.gz emacs-83c35b86da233870231e30d114ffa4640eb10081.tar.bz2 emacs-83c35b86da233870231e30d114ffa4640eb10081.zip |
* src/pgtkfns.c: Do not show an empty frame prematurely
Set only the child widgets visible, leave the outer window
to pgtk_make_frame_visible .
Diffstat (limited to 'src/pgtkfns.c')
-rw-r--r-- | src/pgtkfns.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c index ceff279ad02..0f9f2e4c83f 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c @@ -1693,8 +1693,13 @@ This function is an internal primitive--use `make-frame' instead. */ ) unblock_input (); } - if (FRAME_GTK_OUTER_WIDGET (f)) - gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f)); + if (FRAME_GTK_OUTER_WIDGET (f)) { + GList *w = gtk_container_get_children(GTK_CONTAINER(FRAME_GTK_OUTER_WIDGET (f))); + for (; w != NULL; w = w->next) + { + gtk_widget_show_all (GTK_WIDGET(w->data)); + } + } gui_default_parameter (f, parms, Qno_focus_on_map, Qnil, NULL, NULL, RES_TYPE_BOOLEAN); |