[ctxpopup] apply nbeat theme - default
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 18 Feb 2011 01:50:17 +0000 (10:50 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 18 Feb 2011 01:50:17 +0000 (10:50 +0900)
Change-Id: I15c76c8d388946df5b4118459836618e19d1969d

src/lib/elc_ctxpopup.c

index 6449c9c..976456d 100644 (file)
@@ -1249,9 +1249,11 @@ elm_ctxpopup_clear(Evas_Object * obj)
 EAPI void
 elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
-
+       ELM_CHECK_WIDTYPE(obj, widtype);
+   
    Widget_Data *wd;
+   Eina_List *elist;
+        Elm_Ctxpopup_Item *item;
 
    wd = elm_widget_data_get(obj);
    if (!wd)
@@ -1266,12 +1268,24 @@ elm_ctxpopup_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
      {
         elm_box_horizontal_set(wd->box, EINA_FALSE);
         elm_scroller_bounce_set(wd->scr, EINA_FALSE, EINA_TRUE);
+
+                               edje_object_signal_emit(wd->base, "elm,state,vertical", "elm");
+                               EINA_LIST_FOREACH(wd->items, elist, item)
+                               {
+                                       edje_object_signal_emit(item->base.view, "elm,state,vertical", "elm");
+                               }
      }
    else
      {
         elm_box_horizontal_set(wd->box, EINA_TRUE);
         elm_scroller_bounce_set(wd->scr, EINA_TRUE, EINA_FALSE);
-     }
+               
+                               edje_object_signal_emit(wd->base, "elm,state,horizontal", "elm");
+                               EINA_LIST_FOREACH(wd->items, elist, item)
+                               {
+                                       edje_object_signal_emit(item->base.view, "elm,state,horizontal", "elm");
+                               }
+                }
 
    if (wd->visible)
       _sizing_eval(obj);