forked from enlightenment/efl
examples/edje: cosmetic fixes in a couple examples
Fix usage messages, remove unused defines
This commit is contained in:
parent
137dd4864d
commit
fcf9f55150
|
@ -30,8 +30,8 @@
|
|||
|
||||
static const char commands[] = \
|
||||
"commands are:\n"
|
||||
"\tShift - remove box\n"
|
||||
"\tCtrl - insert box\n"
|
||||
"\tShift + any key - remove box\n"
|
||||
"\tCtrl + any key - insert box\n"
|
||||
"\tEsc - exit\n"
|
||||
"\th - print help\n";
|
||||
|
||||
|
|
|
@ -26,14 +26,9 @@
|
|||
#define WIDTH 300
|
||||
#define HEIGHT 300
|
||||
|
||||
#define RECTW 30
|
||||
#define RECTH 30
|
||||
|
||||
#define NRECTS 20
|
||||
|
||||
static const char commands[] = \
|
||||
"commands are:\n"
|
||||
"\tDdown - set drag step to 1\n"
|
||||
"\tDown - set drag step to 1\n"
|
||||
"\tUp - set drag step to -1\n"
|
||||
"\tm - set drag value to 0.5\n"
|
||||
"\tPrior - set drag page to -1\n"
|
||||
|
@ -158,7 +153,9 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
|
|||
|
||||
edje_obj = edje_object_add(evas);
|
||||
|
||||
edje_object_file_set(edje_obj, edje_file, "example/group");
|
||||
if (!edje_object_file_set(edje_obj, edje_file, "example/group"))
|
||||
printf("failed to set file %s.\n", edje_file);
|
||||
|
||||
evas_object_move(edje_obj, 0, 0);
|
||||
evas_object_resize(edje_obj, WIDTH, HEIGHT);
|
||||
evas_object_show(edje_obj);
|
||||
|
|
Loading…
Reference in New Issue