Add elm quit policy to conformant_example_02.
authorChris Michael <cp.michael@samsung.com>
Tue, 23 Jul 2013 06:31:23 +0000 (07:31 +0100)
committerChris Michael <cp.michael@samsung.com>
Tue, 23 Jul 2013 06:35:02 +0000 (07:35 +0100)
NB: In the future, can we please add this to any new examples also ?
so that we do not have to waste time chasing down stupid phab tickets
about apps not closing when the 'X' is pressed...

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/examples/conformant_example_02.c

index e1208ee..e901ba6 100644 (file)
@@ -16,6 +16,8 @@ elm_main(int argc, char **argv)
 {
    Evas_Object *win, *conform, *btn, *bx, *en;
 
+   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
+
    win = elm_win_util_standard_add("conformant", "Conformant Example");
    elm_win_autodel_set(win, EINA_TRUE);