From: ChunEon Park <chuneon.park@samsung.com>
authorChunEon Park <chuneon.park@samsung.com>
Mon, 31 Jan 2011 08:47:19 +0000 (08:47 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 31 Jan 2011 08:47:19 +0000 (08:47 +0000)
Subject: [E-devel] [PATCH] elc_ctxpopup

only set style on scroller if it exists.

SVN revision: 56578

src/lib/elc_ctxpopup.c

index 6454967076f4486c19dc9e3f1297ebca04d62bf8..a3939c957a55a80c7a360ccb739f3abbb9d8862d 100644 (file)
@@ -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)
      {