From a72b88c0e78a7423668afab267903a1bd6f85714 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 25 Aug 2017 14:47:05 -0400 Subject: [PATCH] handle bryce setup when theme is broken fix T5889 --- src/bin/e_bryce.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c index 5387466a4..5bc7f6524 100644 --- a/src/bin/e_bryce.c +++ b/src/bin/e_bryce.c @@ -369,7 +369,11 @@ _bryce_style(Evas_Object *site, Eina_Stringshare *name, Evas_Object *g) ly = elm_layout_add(b->site); snprintf(buf, sizeof(buf), "e/bryce/%s/%s", b->style ?: "default", name ?: "plain"); - e_theme_edje_object_set(ly, NULL, buf); + if (!e_theme_edje_object_set(ly, NULL, buf)) + { + evas_object_del(ly); + return; + } prev = e_gadget_util_layout_style_init(g, ly); elm_object_part_content_set(ly, "e.swallow.content", g); evas_object_smart_callback_call(g, "gadget_reparent", ly);