From: raster Date: Mon, 31 Jan 2011 08:47:19 +0000 (+0000) Subject: From: ChunEon Park X-Git-Tag: REL_F_I9200_20110722_1~8^2~50^2~811 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=187d7f4e4d1636c4ad78ffb14703f93c278cc474;p=framework%2Fuifw%2Felementary.git From: ChunEon Park Subject: [E-devel] [PATCH] elc_ctxpopup only set style on scroller if it exists. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@56578 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 6454967..a3939c9 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -676,11 +676,14 @@ _theme_hook(Evas_Object *obj) _elm_theme_object_set(obj, wd->arrow, "ctxpopup", "arrow", elm_widget_style_get(obj)); - if (!strncmp(elm_object_style_get(obj), "default", - strlen("default"))) - elm_object_style_set(wd->scr, "ctxpopup"); - else - elm_object_style_set(wd->scr, elm_object_style_get(obj)); + if (wd->scr) + { + if (!strncmp(elm_object_style_get(obj), "default", + strlen("default"))) + elm_object_style_set(wd->scr, "ctxpopup"); + else + elm_object_style_set(wd->scr, elm_object_style_get(obj)); + } if (wd->visible) {