From: ChunEon Park <chuneon.park@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Jan 2011 08:47:19 +0000 (08:47 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
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.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@56578 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_ctxpopup.c

index 6454967..a3939c9 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)
      {