From a9895a0df2abc14e4d9134cb9dd17fcfdbd67bcb Mon Sep 17 00:00:00 2001 From: Bert Burgemeister Date: Wed, 8 Jun 2016 19:09:11 +0200 Subject: [PATCH] Don't core dump when trying to take snapshots of menu items --- pipeglade.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipeglade.c b/pipeglade.c index a7efc84..794234f 100644 --- a/pipeglade.c +++ b/pipeglade.c @@ -2706,7 +2706,8 @@ take_snapshot(struct ui_data *ud) int height; int width; - if (!GTK_IS_WIDGET(ud->obj)) { + if (!GTK_IS_WIDGET(ud->obj) || + !gtk_widget_is_drawable(GTK_WIDGET(ud->obj))) { ign_cmd(ud->type, ud->cmd); return; } -- 2.11.4.GIT