if (strcmp(ev->keyname, "h") == 0) /* print help */
{
- fprintf(stdout, commands);
+ fprintf(stdout, "%s", commands);
return;
}
evas_object_show(win);
- fprintf(stdout, commands);
+ fprintf(stdout, "%s", commands);
elm_run();
return 0;
}
static void
_del_it(void *data, Evas_Object *obj, void *event_info)
{
- Eina_List *l;
+ const Eina_List *l;
Elm_Object_Item *menu_it = elm_menu_first_item_get(data);
menu_it = elm_menu_item_next_get(menu_it);
l = elm_menu_item_subitems_get(menu_it);
printf("Delay changed to %1.2f\n", val);
}
-static char*
+static const char*
_indicator_format(double val)
{
char *indicator = malloc(sizeof(char) * 32);
/*
* gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE
*/
+
+#define _GNU_SOURCE
#include <Elementary.h>
#ifdef HAVE_ELEMENTARY_WEB
#include <EWebKit.h>
{
Eina_Bool back, fwd;
- back = !elm_web_back_possible(ad->current_tab->web);
+ back = !elm_web_back_possible_get(ad->current_tab->web);
fwd = !elm_web_forward_possible_get(ad->current_tab->web);
elm_object_disabled_set(ad->nav.back, back);