+#define GENLIST_PROGRAM_FOCUS_DIALOGUE \
+ program { name: "focused"; \
+ signal: "elm,state,focused"; \
+ source: "elm"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"bg_dialogue", st, 30, vl); \
+ if (!strcmp(st, "top") || !strcmp(st, "top_selected") || !strcmp(st, "2depth_top")) \
+ set_state(PART:"focus_part_dialogue", "top_focused", 0.0); \
+ else if (!strcmp(st, "center") || !strcmp(st, "center_selected") || !strcmp(st, "2depth_center")) \
+ set_state(PART:"focus_part_dialogue", "center_focused", 0.0); \
+ else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected") || !strcmp(st, "2depth_bottom")) \
+ set_state(PART:"focus_part_dialogue", "bottom_focused", 0.0); \
+ else if (!strcmp(st, "default") || !strcmp(st, "selected") || !strcmp(st, "2depth")) \
+ set_state(PART:"focus_part_dialogue", "focused", 0.0); \
+ } \
+ } \
+ program { name: "unfocused"; \
+ signal: "elm,state,unfocused"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_part_dialogue"; \
+ }
+