From 187d7f4e4d1636c4ad78ffb14703f93c278cc474 Mon Sep 17 00:00:00 2001 From: raster Date: Mon, 31 Jan 2011 08:47:19 +0000 Subject: [PATCH] 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 --- src/lib/elc_ctxpopup.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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) { -- 2.7.4