From 9dc431462ee868048dbe88284c0a38f510871ee8 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sat, 21 Sep 2013 19:20:52 +0900 Subject: [PATCH] elm_hover.c: adopted new signal macro before adding a new callback. --- legacy/elementary/src/lib/elm_hover.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/lib/elm_hover.c b/legacy/elementary/src/lib/elm_hover.c index 55453c0..0e4c49c 100644 --- a/legacy/elementary/src/lib/elm_hover.c +++ b/legacy/elementary/src/lib/elm_hover.c @@ -44,11 +44,14 @@ const Elm_Layout_Part_Alias_Description _content_aliases[] = {NULL, NULL} }; -static const char SIG_CLICKED[] = "clicked"; -static const char SIG_SMART_LOCATION_CHANGED[] = "smart,changed"; +#define ELM_PRIV_HOVER_SIGNALS(cmd) \ + cmd(SIG_CLICKED, "clicked", "") \ + cmd(SIG_SMART_LOCATION_CHANGED, "smart,changed", "") + +ELM_PRIV_HOVER_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE); + static const Evas_Smart_Cb_Description _smart_callbacks[] = { - {SIG_CLICKED, ""}, - {SIG_SMART_LOCATION_CHANGED, ""}, + ELM_PRIV_HOVER_SIGNALS(ELM_PRIV_SMART_CALLBACKS_DESC) {"focused", ""}, /**< handled by elm_widget */ {"unfocused", ""}, /**< handled by elm_widget */ {NULL, NULL} -- 2.7.4