aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-25 14:47:05 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-25 14:55:59 -0400
commitdf69508d8993e77ba763b32de8194c1932189829 (patch)
tree5f8be71c1ad4d47304c7abc9643b8a52424d97b7
parenthandle xdg "autostart" directories in apps dialogs (diff)
downloadenlightenment-df69508d8993e77ba763b32de8194c1932189829.tar.gz
handle bryce setup when theme is broken
-rw-r--r--src/bin/e_bryce.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index 2087e972d..9e7032564 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_del(prev);