[Genlist] Fix entry dialouge bg programs
authorTae-Hwan Kim <the81.kim@samsung.com>
Fri, 31 May 2013 10:50:28 +0000 (19:50 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:36:45 +0000 (20:36 +0900)
Change-Id: Ic47fe0b2aaa5cfc63ee94f93fa56ed9f7bb02db1

themes/widgets/genlist/genlist_macro.edc

index 03b3f8e..763eece 100755 (executable)
             TARGET \
          }
 
+#define GENLIST_PROGRAM_BG_DIALOGUE \
+         program { name: "bg_default"; \
+            signal: "elm,state,default"; \
+            source: "*"; \
+            action: STATE_SET "default" 0.0; \
+            target: "bg_dialogue"; \
+         } \
+         program { name: "bg_top"; \
+            signal: "elm,state,top"; \
+            source: "*"; \
+            action: STATE_SET "top" 0.0; \
+            target: "bg_dialogue"; \
+         } \
+         program { name: "bg_center"; \
+            signal: "elm,state,center"; \
+            source: "*"; \
+            action: STATE_SET "center" 0.0; \
+            target: "bg_dialogue"; \
+         } \
+         program { name: "bg_bottom"; \
+            signal: "elm,state,bottom"; \
+            source: "*"; \
+            action: STATE_SET "bottom" 0.0; \
+            target: "bg_dialogue"; \
+         }
+
 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
          program { name: "selected"; \
             signal: "elm,state,selected"; \
          program { name: "target_unselected"; \
             action: STATE_SET "default" 0.0; \
             TARGET \
-         }\
-         program { name: "bg_default"; \
-            signal: "elm,state,default"; \
-            source: "*"; \
-            action: STATE_SET "default" 0.0; \
-            target: "bg_dialogue"; \
          } \
-         program { name: "bg_top"; \
-            signal: "elm,state,top"; \
-            source: "*"; \
-            action: STATE_SET "top" 0.0; \
-            target: "bg_dialogue"; \
-         } \
-         program { name: "bg_center"; \
-            signal: "elm,state,center"; \
-            source: "*"; \
-            action: STATE_SET "center" 0.0; \
-            target: "bg_dialogue"; \
-         } \
-         program { name: "bg_bottom"; \
-            signal: "elm,state,bottom"; \
-            source: "*"; \
-            action: STATE_SET "bottom" 0.0; \
-            target: "bg_dialogue"; \
-         }
+         GENLIST_PROGRAM_BG_DIALOGUE
+
 
 #define GENLIST_PROGRAM_SELECT_ARROW \
          program { name: "selected_arrow"; \
       GENLIST_PROGRAM_FLIP \
    }
 
-// FIXME: inheritance !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
-// if GENLIST_PROGRAM_EXPAND is here, expanda effect is something wrong.
-// because after can be duplicated when program inheriting.
 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
    programs { \
       GENLIST_PROGRAM_DEFAULT( TARGET \
       action: STATE_SET "2depth" 0.0; \
       target: "bg_dialogue_clip"; \
    } \
+   GENLIST_PROGRAM_BG_DIALOGUE \
    GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
       target: "elm.padding.left"; \
       target: "elm.padding.right"; \