forked from enlightenment/efl
elm examples: Fixed some meaningful build warnings.
SVN revision: 69680
This commit is contained in:
parent
dc89723cc7
commit
d50b73d22e
|
@ -87,7 +87,7 @@ _on_keydown(void *data,
|
|||
|
||||
if (strcmp(ev->keyname, "h") == 0) /* print help */
|
||||
{
|
||||
fprintf(stdout, commands);
|
||||
fprintf(stdout, "%s", commands);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
|
||||
evas_object_show(win);
|
||||
|
||||
fprintf(stdout, commands);
|
||||
fprintf(stdout, "%s", commands);
|
||||
elm_run();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
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);
|
||||
|
|
|
@ -38,7 +38,7 @@ _delay_changed_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __UN
|
|||
printf("Delay changed to %1.2f\n", val);
|
||||
}
|
||||
|
||||
static char*
|
||||
static const char*
|
||||
_indicator_format(double val)
|
||||
{
|
||||
char *indicator = malloc(sizeof(char) * 32);
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/*
|
||||
* 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>
|
||||
|
@ -50,7 +52,7 @@ nav_button_update(App_Data *ad)
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue