#include <Elementary.h>
#define TABLE "example/table"
#define BOX "example/box"
#define TITLE "example/title"
#define SWALLOW "example/custom"
static const char *images[] = { "home", "close", "arrow_up", "arrow_down", NULL };
struct _App {
     int current;
};
static void
_signal_cb(void *data, Evas_Object *o, const char *emission, const char *source)
{
   struct _App *app = data;
   printf("signal received\n");
   if (!strcmp("elm,action,back", emission))
     app->current--;
   else if (!strcmp("elm,action,next", emission))
     app->current++;
   if (app->current < 0)
     app->current = (sizeof(images) / sizeof(images[0])) - 2;
   else if (images[app->current] == NULL)
     app->current = 0;
}
EAPI_MAIN int
elm_main(int argc, char **argv)
{
   Evas_Object *win, *layout, *icon;
   struct _App app;
   app.current = 0;
   
   evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
         layout, "layout", "application", "content-back-next"))
     fprintf(stderr, "Failed to set layout");
   evas_object_show(layout);
   evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   evas_object_resize(win, 320, 320);
   evas_object_show(win);
   return 0;
}