#define BUF_APPENDF(FMT, ...) \
ret &= eina_strbuf_append_printf(buf, FMT, ##__VA_ARGS__)
-static char *types[] = {"NONE", "RECT", "TEXT", "IMAGE", "SWALLOW", "TEXTBLOCK", "GRADIENT", "GROUP", "BOX", "TABLE", "EXTERNAL"};
-static char *effects[] = {"NONE", "PLAIN", "OUTLINE", "SOFT_OUTLINE", "SHADOW", "SOFT_SHADOW", "OUTLINE_SHADOW", "OUTLINE_SOFT_SHADOW ", "FAR_SHADOW ", "FAR_SOFT_SHADOW", "GLOW"};
-static char *prefers[] = {"NONE", "VERTICAL", "HORIZONTAL", "BOTH"};
+static const char *types[] = {"NONE", "RECT", "TEXT", "IMAGE", "SWALLOW", "TEXTBLOCK", "GRADIENT", "GROUP", "BOX", "TABLE", "EXTERNAL"};
+static const char *effects[] = {"NONE", "PLAIN", "OUTLINE", "SOFT_OUTLINE", "SHADOW", "SOFT_SHADOW", "OUTLINE_SHADOW", "OUTLINE_SOFT_SHADOW ", "FAR_SHADOW ", "FAR_SOFT_SHADOW", "GLOW"};
+static const char *prefers[] = {"NONE", "VERTICAL", "HORIZONTAL", "BOTH"};
static Eina_Bool
_edje_generate_source_of_colorclass(Edje * ed, const char *name, Eina_Strbuf *buf)
len = 200 + strlen(n);
buf = alloca(len);
if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK)
- snprintf(buf, len, "anchor,mouse,down,%i,%s,triple", ev->button, an->name);
+ snprintf(buf, len, "anchor,mouse,down,%i,%s,triple", ev->button, n);
else if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
- snprintf(buf, len, "anchor,mouse,down,%i,%s,double", ev->button, an->name);
+ snprintf(buf, len, "anchor,mouse,down,%i,%s,double", ev->button, n);
else
- snprintf(buf, len, "anchor,mouse,down,%i,%s", ev->button, an->name);
+ snprintf(buf, len, "anchor,mouse,down,%i,%s", ev->button, n);
_edje_emit(rp->edje, buf, rp->part->name);
}
}
if (!n) n = "";
len = 200 + strlen(n);
buf = alloca(len);
- snprintf(buf, len, "anchor,mouse,up,%i,%s", ev->button, an->name);
+ snprintf(buf, len, "anchor,mouse,up,%i,%s", ev->button, n);
_edje_emit(rp->edje, buf, rp->part->name);
}
}
if (!n) n = "";
len = 200 + strlen(n);
buf = alloca(len);
- snprintf(buf, len, "anchor,mouse,move,%s", an->name);
+ snprintf(buf, len, "anchor,mouse,move,%s", n);
_edje_emit(rp->edje, buf, rp->part->name);
}
}
if (!n) n = "";
len = 200 + strlen(n);
buf = alloca(len);
- snprintf(buf, len, "anchor,mouse,in,%s", an->name);
+ snprintf(buf, len, "anchor,mouse,in,%s", n);
_edje_emit(rp->edje, buf, rp->part->name);
}
}
if (!n) n = "";
len = 200 + strlen(n);
buf = alloca(len);
- snprintf(buf, len, "anchor,mouse,out,%s", an->name);
+ snprintf(buf, len, "anchor,mouse,out,%s", n);
_edje_emit(rp->edje, buf, rp->part->name);
}
}