diff options
author | Tom Hacohen <tom@stosb.com> | 2016-03-23 10:59:41 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-03-23 10:59:41 +0000 |
commit | 9340855597e7e465435c69b6278650346688da14 (patch) | |
tree | 2e5cfa138107091924528bb39711a1f7679abbaa /legacy/elementary/src/examples/calendar_example_01.c | |
parent | 7e411ecf76a6a73fe37968cce99679c13990c234 (diff) | |
parent | f8d1db017edab8809e597591456751837deba68d (diff) | |
download | efl-9340855597e7e465435c69b6278650346688da14.tar.gz |
Merge elementary into the EFL.devs/tasn/elm_merge
This merges elementary into the efl repository while maintaining all of
Elementary's history.
Diffstat (limited to 'legacy/elementary/src/examples/calendar_example_01.c')
-rw-r--r-- | legacy/elementary/src/examples/calendar_example_01.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/legacy/elementary/src/examples/calendar_example_01.c b/legacy/elementary/src/examples/calendar_example_01.c new file mode 100644 index 0000000000..0ae9f3dc85 --- /dev/null +++ b/legacy/elementary/src/examples/calendar_example_01.c @@ -0,0 +1,34 @@ +/** + * Simple Elementary's <b>calendar widget</b> example, illustrating its + * creation. + * + * See stdout/stderr for output. Compile with: + * + * @verbatim + * gcc -o calendar_example_01 calendar_example_01.c -g `pkg-config --cflags --libs elementary` + * @endverbatim + */ + +#include <Elementary.h> + +EAPI_MAIN int +elm_main(int argc, char **argv) +{ + Evas_Object *win, *cal; + + win = elm_win_util_standard_add("calendar", "Calendar Creation Example"); + elm_win_autodel_set(win, EINA_TRUE); + elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); + + cal = elm_calendar_add(win); + evas_object_size_hint_weight_set(cal, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(win, cal); + evas_object_show(cal); + + evas_object_show(win); + + elm_run(); + + return 0; +} +ELM_MAIN() |