From 0b69b73baa1e6fb2380e86aa5fab89d5f3a5b061 Mon Sep 17 00:00:00 2001 From: Yuuki Harano Date: Tue, 29 Sep 2020 18:38:41 +0900 Subject: [PATCH] Fix crash when child frame updates toolbar * src/gtkutil.c (update_frame_tool_bar): Do nothing when child frame. --- src/gtkutil.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gtkutil.c b/src/gtkutil.c index 0f1a51fbbbb..56d415887d0 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -5348,6 +5348,11 @@ update_frame_tool_bar (struct frame *f) if (! FRAME_GTK_WIDGET (f)) return; +#ifdef HAVE_PGTK + if (! FRAME_GTK_OUTER_WIDGET (f)) + return; +#endif + block_input (); if (RANGED_FIXNUMP (1, Vtool_bar_button_margin, INT_MAX)) -- 2.39.5