summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoão Paulo Fernandes Ventura <ventura@profusion.mobi>2012-03-19 12:58:07 +0000
committerJonas M. Gastal <jgastal@profusion.mobi>2012-03-19 12:58:07 +0000
commit1c17076655d04160c3cd572c42232ee9329320ba (patch)
tree394cca2904e3bcac4d3e0c2308b54f2dc2a659c5 /src
parentef3546ec9a095fae11bca1f52a568784b7b5fd3a (diff)
Fixing bugs in examples.
Patch by: João Paulo Fernandes Ventura<ventura@profusion.mobi> SVN revision: 69507
Diffstat (limited to 'src')
-rw-r--r--src/examples/bg_example_01.c2
-rw-r--r--src/examples/bg_example_02.c4
-rw-r--r--src/examples/bg_example_03.c4
-rw-r--r--src/examples/bubble_example_01.c8
-rw-r--r--src/examples/calendar_example_01.c3
-rw-r--r--src/examples/calendar_example_02.c3
-rw-r--r--src/examples/calendar_example_03.c3
-rw-r--r--src/examples/calendar_example_04.c3
-rw-r--r--src/examples/calendar_example_05.c3
-rw-r--r--src/examples/calendar_example_06.c3
-rw-r--r--src/examples/check_example_01.c3
-rw-r--r--src/examples/conformant_example_01.c3
-rw-r--r--src/examples/ctxpopup_example_01.c10
-rw-r--r--src/examples/efl_thread_1.c6
-rw-r--r--src/examples/efl_thread_2.c6
-rw-r--r--src/examples/efl_thread_3.c6
-rw-r--r--src/examples/efl_thread_4.c6
-rw-r--r--src/examples/efl_thread_5.c6
-rw-r--r--src/examples/efl_thread_6.c6
-rw-r--r--src/examples/flip_example_01.c3
-rw-r--r--src/examples/frame_example_01.c3
-rw-r--r--src/examples/hover_example_01.c3
-rw-r--r--src/examples/hoversel_example_01.c2
-rw-r--r--src/examples/label_example_01.c3
-rw-r--r--src/examples/notify_example_01.c3
-rw-r--r--src/examples/photocam_example_01.c4
-rw-r--r--src/examples/popup_example_01.c3
-rw-r--r--src/examples/popup_example_02.c3
-rw-r--r--src/examples/popup_example_03.c3
-rw-r--r--src/examples/slideshow_example.c14
-rw-r--r--src/examples/transit_example_01.c6
-rw-r--r--src/examples/transit_example_02.c6
-rw-r--r--src/examples/transit_example_03.c4
-rw-r--r--src/examples/transit_example_04.c5
34 files changed, 99 insertions, 54 deletions
diff --git a/src/examples/bg_example_01.c b/src/examples/bg_example_01.c
index 3811429..c168a9f 100644
--- a/src/examples/bg_example_01.c
+++ b/src/examples/bg_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` bg_example_01.c -o bg_example_01 2//gcc -o bg_example_01 bg_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
diff --git a/src/examples/bg_example_02.c b/src/examples/bg_example_02.c
index e34347e..368830f 100644
--- a/src/examples/bg_example_02.c
+++ b/src/examples/bg_example_02.c
@@ -1,6 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` bg_example_02.c -o bg_example_02 2//gcc -o bg_example_02 bg_example_02.c -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
3// where directory is the a path where images/plant_01.jpg can be found. 3//where directory is the a path where images/plant_01.jpg can be found.
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H
diff --git a/src/examples/bg_example_03.c b/src/examples/bg_example_03.c
index 8720254..5ee8fb4 100644
--- a/src/examples/bg_example_03.c
+++ b/src/examples/bg_example_03.c
@@ -1,6 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` bg_example_03.c -o bg_example_03 2//gcc -o bg_example_03 bg_example_03.c -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
3// where directory is the a path where images/plant_01.jpg can be found. 3//where directory is the a path where images/plant_01.jpg can be found.
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H
diff --git a/src/examples/bubble_example_01.c b/src/examples/bubble_example_01.c
index b3432af..b601b85 100644
--- a/src/examples/bubble_example_01.c
+++ b/src/examples/bubble_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\"" bubble_example_01.c -o bubble_example_01 2//gcc -o bubble_example_01 bubble_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -32,8 +32,11 @@ elm_main(int argc, char **argv)
32 elm_win_title_set(win, "Bubble"); 32 elm_win_title_set(win, "Bubble");
33 elm_win_autodel_set(win, EINA_TRUE); 33 elm_win_autodel_set(win, EINA_TRUE);
34 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 34 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
35 evas_object_resize(win, 300, 200);
36 evas_object_show(win);
35 37
36 bg = elm_bg_add(win); 38 bg = elm_bg_add(win);
39 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
37 elm_win_resize_object_add(win, bg); 40 elm_win_resize_object_add(win, bg);
38 evas_object_show(bg); 41 evas_object_show(bg);
39 42
@@ -65,9 +68,6 @@ elm_main(int argc, char **argv)
65 evas_object_move(bubble, 0, 110); 68 evas_object_move(bubble, 0, 110);
66 evas_object_show(bubble); 69 evas_object_show(bubble);
67 70
68 evas_object_resize(win, 300, 200);
69 evas_object_show(win);
70
71 elm_run(); 71 elm_run();
72 72
73 evas_object_del(icon); 73 evas_object_del(icon);
diff --git a/src/examples/calendar_example_01.c b/src/examples/calendar_example_01.c
index f22c284..e52afac 100644
--- a/src/examples/calendar_example_01.c
+++ b/src/examples/calendar_example_01.c
@@ -5,7 +5,7 @@
5 * See stdout/stderr for output. Compile with: 5 * See stdout/stderr for output. Compile with:
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -g `pkg-config --cflags --libs elementary` calendar_example_01.c -o calendar_example_01 8 * gcc -o calendar_example_01 calendar_example_01.c -g `pkg-config --cflags --libs elementary`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -24,6 +24,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
24 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 24 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
25 elm_win_title_set(win, "Calendar Creation Example"); 25 elm_win_title_set(win, "Calendar Creation Example");
26 elm_win_autodel_set(win, EINA_TRUE); 26 elm_win_autodel_set(win, EINA_TRUE);
27 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
27 28
28 bg = elm_bg_add(win); 29 bg = elm_bg_add(win);
29 elm_win_resize_object_add(win, bg); 30 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/calendar_example_02.c b/src/examples/calendar_example_02.c
index f16743b..0a0085b 100644
--- a/src/examples/calendar_example_02.c
+++ b/src/examples/calendar_example_02.c
@@ -6,7 +6,7 @@
6 * See stdout/stderr for output. Compile with: 6 * See stdout/stderr for output. Compile with:
7 * 7 *
8 * @verbatim 8 * @verbatim
9 * gcc -g `pkg-config --cflags --libs elementary` calendar_example_02.c -o calendar_example_02 9 * gcc -o calendar_example_02 calendar_example_02.c -g `pkg-config --cflags --libs elementary`
10 * @endverbatim 10 * @endverbatim
11 */ 11 */
12 12
@@ -38,6 +38,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
38 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 38 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
39 elm_win_title_set(win, "Calendar Layout Formatting Example"); 39 elm_win_title_set(win, "Calendar Layout Formatting Example");
40 elm_win_autodel_set(win, EINA_TRUE); 40 elm_win_autodel_set(win, EINA_TRUE);
41 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
41 42
42 bg = elm_bg_add(win); 43 bg = elm_bg_add(win);
43 elm_win_resize_object_add(win, bg); 44 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/calendar_example_03.c b/src/examples/calendar_example_03.c
index 989f776..9804dac 100644
--- a/src/examples/calendar_example_03.c
+++ b/src/examples/calendar_example_03.c
@@ -6,7 +6,7 @@
6 * See stdout/stderr for output. Compile with: 6 * See stdout/stderr for output. Compile with:
7 * 7 *
8 * @verbatim 8 * @verbatim
9 * gcc -g `pkg-config --cflags --libs elementary` calendar_example_03.c -o calendar_example_03 9 * gcc -o calendar_example_03 calendar_example_03.c -g `pkg-config --cflags --libs elementary`
10 * @endverbatim 10 * @endverbatim
11 */ 11 */
12 12
@@ -25,6 +25,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
25 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 25 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
26 elm_win_title_set(win, "Calendar Min/Max Year Example"); 26 elm_win_title_set(win, "Calendar Min/Max Year Example");
27 elm_win_autodel_set(win, EINA_TRUE); 27 elm_win_autodel_set(win, EINA_TRUE);
28 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
28 29
29 bg = elm_bg_add(win); 30 bg = elm_bg_add(win);
30 elm_win_resize_object_add(win, bg); 31 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/calendar_example_04.c b/src/examples/calendar_example_04.c
index 7221557..55978ac 100644
--- a/src/examples/calendar_example_04.c
+++ b/src/examples/calendar_example_04.c
@@ -6,7 +6,7 @@
6 * See stdout/stderr for output. Compile with: 6 * See stdout/stderr for output. Compile with:
7 * 7 *
8 * @verbatim 8 * @verbatim
9 * gcc -g `pkg-config --cflags --libs elementary` calendar_example_04.c -o calendar_example_04 9 * gcc -o calendar_example_04 calendar_example_04.c -g `pkg-config --cflags --libs elementary`
10 * @endverbatim 10 * @endverbatim
11 */ 11 */
12 12
@@ -29,6 +29,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
29 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 29 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
30 elm_win_title_set(win, "Calendar Day Selection Example"); 30 elm_win_title_set(win, "Calendar Day Selection Example");
31 elm_win_autodel_set(win, EINA_TRUE); 31 elm_win_autodel_set(win, EINA_TRUE);
32 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
32 33
33 bg = elm_bg_add(win); 34 bg = elm_bg_add(win);
34 elm_win_resize_object_add(win, bg); 35 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/calendar_example_05.c b/src/examples/calendar_example_05.c
index e48a9e8..0a676a8 100644
--- a/src/examples/calendar_example_05.c
+++ b/src/examples/calendar_example_05.c
@@ -5,7 +5,7 @@
5 * See stdout/stderr for output. Compile with: 5 * See stdout/stderr for output. Compile with:
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -g `pkg-config --cflags --libs elementary` calendar_example_05.c -o calendar_example_05 8 * gcc -o calendar_example_05 calendar_example_05.c -g `pkg-config --cflags --libs elementary`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -49,6 +49,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
49 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 49 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
50 elm_win_title_set(win, "Calendar Getters Example"); 50 elm_win_title_set(win, "Calendar Getters Example");
51 elm_win_autodel_set(win, EINA_TRUE); 51 elm_win_autodel_set(win, EINA_TRUE);
52 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
52 53
53 bg = elm_bg_add(win); 54 bg = elm_bg_add(win);
54 elm_win_resize_object_add(win, bg); 55 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/calendar_example_06.c b/src/examples/calendar_example_06.c
index 7a4cc1e..1cd5a85 100644
--- a/src/examples/calendar_example_06.c
+++ b/src/examples/calendar_example_06.c
@@ -4,7 +4,7 @@
4 * See stdout/stderr for output. Compile with: 4 * See stdout/stderr for output. Compile with:
5 * 5 *
6 * @verbatim 6 * @verbatim
7 * gcc -g `pkg-config --cflags --libs elementary` calendar_example_06.c -o calendar_example_06 7 * gcc -o calendar_example_06 calendar_example_06.c -g `pkg-config --cflags --libs elementary`
8 * @endverbatim 8 * @endverbatim
9 */ 9 */
10 10
@@ -43,6 +43,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
43 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 43 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
44 elm_win_title_set(win, "Calendar Marks Example"); 44 elm_win_title_set(win, "Calendar Marks Example");
45 elm_win_autodel_set(win, EINA_TRUE); 45 elm_win_autodel_set(win, EINA_TRUE);
46 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
46 47
47 bg = elm_bg_add(win); 48 bg = elm_bg_add(win);
48 elm_win_resize_object_add(win, bg); 49 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/check_example_01.c b/src/examples/check_example_01.c
index a796752..cec2096 100644
--- a/src/examples/check_example_01.c
+++ b/src/examples/check_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` check_example_01.c -o check_example_01 2//gcc -o check_example_01 check_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -21,6 +21,7 @@ elm_main(int argc, char **argv)
21 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 21 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
22 22
23 bg = elm_bg_add(win); 23 bg = elm_bg_add(win);
24 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
24 elm_win_resize_object_add(win, bg); 25 elm_win_resize_object_add(win, bg);
25 evas_object_show(bg); 26 evas_object_show(bg);
26 27
diff --git a/src/examples/conformant_example_01.c b/src/examples/conformant_example_01.c
index 0ec34fb..0ea316d 100644
--- a/src/examples/conformant_example_01.c
+++ b/src/examples/conformant_example_01.c
@@ -5,7 +5,7 @@
5 * See stdout/stderr for output. Compile with: 5 * See stdout/stderr for output. Compile with:
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -g `pkg-config --cflags --libs elementary` conformant_example_01.c -o conformant_example_01 8 * gcc -o conformant_example_01 conformant_example_01.c -g `pkg-config --cflags --libs elementary`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -24,6 +24,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
24 win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC); 24 win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC);
25 elm_win_title_set(win, "Conformant Example"); 25 elm_win_title_set(win, "Conformant Example");
26 elm_win_autodel_set(win, EINA_TRUE); 26 elm_win_autodel_set(win, EINA_TRUE);
27 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
27 28
28 bg = elm_bg_add(win); 29 bg = elm_bg_add(win);
29 elm_win_resize_object_add(win, bg); 30 elm_win_resize_object_add(win, bg);
diff --git a/src/examples/ctxpopup_example_01.c b/src/examples/ctxpopup_example_01.c
index 939920b..2930d9b 100644
--- a/src/examples/ctxpopup_example_01.c
+++ b/src/examples/ctxpopup_example_01.c
@@ -1,9 +1,11 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` ctxpopup_example_01.c -o ctxpopup_example_01 2//gcc -o ctxpopup_example_01 ctxpopup_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void 11static void
@@ -81,6 +83,8 @@ elm_main(int argc, char **argv)
81 elm_win_title_set(win, "Contextual Popup"); 83 elm_win_title_set(win, "Contextual Popup");
82 elm_win_autodel_set(win, EINA_TRUE); 84 elm_win_autodel_set(win, EINA_TRUE);
83 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 85 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
86 evas_object_resize(win, 400, 400);
87 evas_object_show(win);
84 88
85 bg = elm_bg_add(win); 89 bg = elm_bg_add(win);
86 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 90 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -88,6 +92,7 @@ elm_main(int argc, char **argv)
88 evas_object_show(bg); 92 evas_object_show(bg);
89 93
90 list = elm_list_add(win); 94 list = elm_list_add(win);
95 evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
91 elm_win_resize_object_add(win, list); 96 elm_win_resize_object_add(win, list);
92 elm_list_mode_set(list, ELM_LIST_COMPRESS); 97 elm_list_mode_set(list, ELM_LIST_COMPRESS);
93 98
@@ -98,9 +103,6 @@ elm_main(int argc, char **argv)
98 evas_object_show(list); 103 evas_object_show(list);
99 elm_list_go(list); 104 elm_list_go(list);
100 105
101 evas_object_resize(win, 400, 400);
102 evas_object_show(win);
103
104 elm_run(); 106 elm_run();
105} 107}
106ELM_MAIN() 108ELM_MAIN()
diff --git a/src/examples/efl_thread_1.c b/src/examples/efl_thread_1.c
index 98bc5e9..48ea3d2 100644
--- a/src/examples/efl_thread_1.c
+++ b/src/examples/efl_thread_1.c
@@ -1,3 +1,5 @@
1//Compile with:
2//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary`
1#include <Elementary.h> 3#include <Elementary.h>
2#include <pthread.h> 4#include <pthread.h>
3 5
@@ -50,12 +52,14 @@ elm_main(int argc, char **argv)
50 52
51 win = elm_win_add(NULL, "efl-thread-1", ELM_WIN_BASIC); 53 win = elm_win_add(NULL, "efl-thread-1", ELM_WIN_BASIC);
52 elm_win_title_set(win, "EFL Thread 1"); 54 elm_win_title_set(win, "EFL Thread 1");
55 elm_win_autodel_set(win, EINA_TRUE);
56 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
53 evas_object_resize(win, 400, 400); 57 evas_object_resize(win, 400, 400);
54 evas_object_show(win); 58 evas_object_show(win);
55 59
56 bg = elm_bg_add(win); 60 bg = elm_bg_add(win);
57 elm_win_resize_object_add(win, bg);
58 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 61 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
62 elm_win_resize_object_add(win, bg);
59 evas_object_show(bg); 63 evas_object_show(bg);
60 64
61 o = evas_object_rectangle_add(evas_object_evas_get(win)); 65 o = evas_object_rectangle_add(evas_object_evas_get(win));
diff --git a/src/examples/efl_thread_2.c b/src/examples/efl_thread_2.c
index a9da805..1bca6bc 100644
--- a/src/examples/efl_thread_2.c
+++ b/src/examples/efl_thread_2.c
@@ -1,3 +1,5 @@
1//Compile with:
2//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary`
1#include <Elementary.h> 3#include <Elementary.h>
2#include <pthread.h> 4#include <pthread.h>
3 5
@@ -66,12 +68,14 @@ elm_main(int argc, char **argv)
66 68
67 win = elm_win_add(NULL, "efl-thread-2", ELM_WIN_BASIC); 69 win = elm_win_add(NULL, "efl-thread-2", ELM_WIN_BASIC);
68 elm_win_title_set(win, "EFL Thread 2"); 70 elm_win_title_set(win, "EFL Thread 2");
71 elm_win_autodel_set(win, EINA_TRUE);
72 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
69 evas_object_resize(win, 400, 400); 73 evas_object_resize(win, 400, 400);
70 evas_object_show(win); 74 evas_object_show(win);
71 75
72 bg = elm_bg_add(win); 76 bg = elm_bg_add(win);
73 elm_win_resize_object_add(win, bg);
74 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 77 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
78 elm_win_resize_object_add(win, bg);
75 evas_object_show(bg); 79 evas_object_show(bg);
76 80
77 o = evas_object_rectangle_add(evas_object_evas_get(win)); 81 o = evas_object_rectangle_add(evas_object_evas_get(win));
diff --git a/src/examples/efl_thread_3.c b/src/examples/efl_thread_3.c
index 3019270..299776a 100644
--- a/src/examples/efl_thread_3.c
+++ b/src/examples/efl_thread_3.c
@@ -1,3 +1,5 @@
1//Compile with:
2//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary`
1#include <Elementary.h> 3#include <Elementary.h>
2#include <pthread.h> 4#include <pthread.h>
3 5
@@ -68,12 +70,14 @@ elm_main(int argc, char **argv)
68 70
69 win = elm_win_add(NULL, "efl-thread-3", ELM_WIN_BASIC); 71 win = elm_win_add(NULL, "efl-thread-3", ELM_WIN_BASIC);
70 elm_win_title_set(win, "EFL Thread 3"); 72 elm_win_title_set(win, "EFL Thread 3");
73 elm_win_autodel_set(win, EINA_TRUE);
74 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
71 evas_object_resize(win, 400, 400); 75 evas_object_resize(win, 400, 400);
72 evas_object_show(win); 76 evas_object_show(win);
73 77
74 bg = elm_bg_add(win); 78 bg = elm_bg_add(win);
75 elm_win_resize_object_add(win, bg);
76 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 79 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
80 elm_win_resize_object_add(win, bg);
77 evas_object_show(bg); 81 evas_object_show(bg);
78 82
79 o = evas_object_rectangle_add(evas_object_evas_get(win)); 83 o = evas_object_rectangle_add(evas_object_evas_get(win));
diff --git a/src/examples/efl_thread_4.c b/src/examples/efl_thread_4.c
index 2eee3b7..ddb2368 100644
--- a/src/examples/efl_thread_4.c
+++ b/src/examples/efl_thread_4.c
@@ -1,3 +1,5 @@
1//Compile with:
2//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary`
1#include <Elementary.h> 3#include <Elementary.h>
2#include <pthread.h> 4#include <pthread.h>
3 5
@@ -88,12 +90,14 @@ elm_main(int argc, char **argv)
88 90
89 win = elm_win_add(NULL, "efl-thread-4", ELM_WIN_BASIC); 91 win = elm_win_add(NULL, "efl-thread-4", ELM_WIN_BASIC);
90 elm_win_title_set(win, "EFL Thread 4"); 92 elm_win_title_set(win, "EFL Thread 4");
93 elm_win_autodel_set(win, EINA_TRUE);
94 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
91 evas_object_resize(win, 400, 400); 95 evas_object_resize(win, 400, 400);
92 evas_object_show(win); 96 evas_object_show(win);
93 97
94 bg = elm_bg_add(win); 98 bg = elm_bg_add(win);
95 elm_win_resize_object_add(win, bg);
96 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 99 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
100 elm_win_resize_object_add(win, bg);
97 evas_object_show(bg); 101 evas_object_show(bg);
98 102
99 o = evas_object_rectangle_add(evas_object_evas_get(win)); 103 o = evas_object_rectangle_add(evas_object_evas_get(win));
diff --git a/src/examples/efl_thread_5.c b/src/examples/efl_thread_5.c
index 7b3db3a..4f17ef5 100644
--- a/src/examples/efl_thread_5.c
+++ b/src/examples/efl_thread_5.c
@@ -1,3 +1,5 @@
1//Compile with:
2//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary`
1#include <Elementary.h> 3#include <Elementary.h>
2 4
3static Ecore_Thread *th = NULL; 5static Ecore_Thread *th = NULL;
@@ -68,12 +70,14 @@ elm_main(int argc, char **argv)
68 70
69 win = elm_win_add(NULL, "efl-thread-5", ELM_WIN_BASIC); 71 win = elm_win_add(NULL, "efl-thread-5", ELM_WIN_BASIC);
70 elm_win_title_set(win, "EFL Thread 5"); 72 elm_win_title_set(win, "EFL Thread 5");
73 elm_win_autodel_set(win, EINA_TRUE);
74 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
71 evas_object_resize(win, 400, 400); 75 evas_object_resize(win, 400, 400);
72 evas_object_show(win); 76 evas_object_show(win);
73 77
74 bg = elm_bg_add(win); 78 bg = elm_bg_add(win);
75 elm_win_resize_object_add(win, bg);
76 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 79 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
80 elm_win_resize_object_add(win, bg);
77 evas_object_show(bg); 81 evas_object_show(bg);
78 82
79 o = evas_object_rectangle_add(evas_object_evas_get(win)); 83 o = evas_object_rectangle_add(evas_object_evas_get(win));
diff --git a/src/examples/efl_thread_6.c b/src/examples/efl_thread_6.c
index 49efe05..2d47fb2 100644
--- a/src/examples/efl_thread_6.c
+++ b/src/examples/efl_thread_6.c
@@ -1,3 +1,5 @@
1//Compile with:
2//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary`
1#include <Elementary.h> 3#include <Elementary.h>
2 4
3static Evas_Object *win = NULL; 5static Evas_Object *win = NULL;
@@ -124,12 +126,14 @@ elm_main(int argc, char **argv)
124 126
125 win = elm_win_add(NULL, "efl-thread-6", ELM_WIN_BASIC); 127 win = elm_win_add(NULL, "efl-thread-6", ELM_WIN_BASIC);
126 elm_win_title_set(win, "EFL Thread 6"); 128 elm_win_title_set(win, "EFL Thread 6");
129 elm_win_autodel_set(win, EINA_TRUE);
130 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
127 evas_object_resize(win, 400, 400); 131 evas_object_resize(win, 400, 400);
128 evas_object_show(win); 132 evas_object_show(win);
129 133
130 bg = elm_bg_add(win); 134 bg = elm_bg_add(win);
131 elm_win_resize_object_add(win, bg);
132 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 135 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
136 elm_win_resize_object_add(win, bg);
133 evas_object_show(bg); 137 evas_object_show(bg);
134 138
135 // queue up 64 mandel generation thread jobs 139 // queue up 64 mandel generation thread jobs
diff --git a/src/examples/flip_example_01.c b/src/examples/flip_example_01.c
index 3de83df..a44504c 100644
--- a/src/examples/flip_example_01.c
+++ b/src/examples/flip_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` flip_example_01.c -o flip_example_01 2//gcc -o flip_example_01 flip_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -19,6 +19,7 @@ elm_main(int argc, char **argv)
19 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 19 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
20 20
21 bg = elm_bg_add(win); 21 bg = elm_bg_add(win);
22 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
22 elm_win_resize_object_add(win, bg); 23 elm_win_resize_object_add(win, bg);
23 evas_object_show(bg); 24 evas_object_show(bg);
24 25
diff --git a/src/examples/frame_example_01.c b/src/examples/frame_example_01.c
index d3e4b35..c58f858 100644
--- a/src/examples/frame_example_01.c
+++ b/src/examples/frame_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` frame_example_01.c -o frame_example_01 2//gcc -o frame_example_01 frame_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -19,6 +19,7 @@ elm_main(int argc, char **argv)
19 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 19 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
20 20
21 bg = elm_bg_add(win); 21 bg = elm_bg_add(win);
22 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
22 elm_win_resize_object_add(win, bg); 23 elm_win_resize_object_add(win, bg);
23 evas_object_show(bg); 24 evas_object_show(bg);
24 25
diff --git a/src/examples/hover_example_01.c b/src/examples/hover_example_01.c
index ec40f0b..3a337cb 100644
--- a/src/examples/hover_example_01.c
+++ b/src/examples/hover_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` hover_example_01.c -o hover_example_01 2//gcc -o hover_example_01 hover_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -29,6 +29,7 @@ elm_main(int argc, char **argv)
29 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 29 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
30 30
31 bg = elm_bg_add(win); 31 bg = elm_bg_add(win);
32 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
32 elm_win_resize_object_add(win, bg); 33 elm_win_resize_object_add(win, bg);
33 evas_object_show(bg); 34 evas_object_show(bg);
34 35
diff --git a/src/examples/hoversel_example_01.c b/src/examples/hoversel_example_01.c
index ed76d29..10cda69 100644
--- a/src/examples/hoversel_example_01.c
+++ b/src/examples/hoversel_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` hoversel_example_01.c -o hoversel_example_01 2//gcc -o hoversel_example_01 hoversel_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
diff --git a/src/examples/label_example_01.c b/src/examples/label_example_01.c
index d863655..b9e26a6 100644
--- a/src/examples/label_example_01.c
+++ b/src/examples/label_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` label_example_01.c -o label_example_01 2//gcc -o label_example_01 label_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -17,6 +17,7 @@ elm_main(int argc, char **argv)
17 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 17 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
18 18
19 bg = elm_bg_add(win); 19 bg = elm_bg_add(win);
20 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
20 elm_win_resize_object_add(win, bg); 21 elm_win_resize_object_add(win, bg);
21 evas_object_show(bg); 22 evas_object_show(bg);
22 23
diff --git a/src/examples/notify_example_01.c b/src/examples/notify_example_01.c
index 98f41c4..33c4b78 100644
--- a/src/examples/notify_example_01.c
+++ b/src/examples/notify_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` notify_example_01.c -o notify_example_01 2//gcc -o notify_example_01 notify_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -19,6 +19,7 @@ elm_main(int argc, char **argv)
19 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 19 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
20 20
21 bg = elm_bg_add(win); 21 bg = elm_bg_add(win);
22 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
22 elm_win_resize_object_add(win, bg); 23 elm_win_resize_object_add(win, bg);
23 evas_object_show(bg); 24 evas_object_show(bg);
24 25
diff --git a/src/examples/photocam_example_01.c b/src/examples/photocam_example_01.c
index a2ba742..4a5eba8 100644
--- a/src/examples/photocam_example_01.c
+++ b/src/examples/photocam_example_01.c
@@ -1,5 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\"" photocam_example_01.c -o photocam_example_01 2//gcc -o photocam_example_01 photocam_example_01.c -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
3//where directory is the path where images/insanely_huge_test_image.jpg can be found.
3 4
4#include <Elementary.h> 5#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H
@@ -22,6 +23,7 @@ elm_main(int argc, char **argv)
22 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 23 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
23 24
24 bg = elm_bg_add(win); 25 bg = elm_bg_add(win);
26 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
25 elm_win_resize_object_add(win, bg); 27 elm_win_resize_object_add(win, bg);
26 evas_object_show(bg); 28 evas_object_show(bg);
27 29
diff --git a/src/examples/popup_example_01.c b/src/examples/popup_example_01.c
index 27eb0e3..1d0747f 100644
--- a/src/examples/popup_example_01.c
+++ b/src/examples/popup_example_01.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` popup_example_01.c -o popup_example_01 2//gcc -o popup_example_01 popup_example_01.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -24,6 +24,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
24 24
25 bg = elm_bg_add(win); 25 bg = elm_bg_add(win);
26 elm_bg_color_set(bg, 128, 128, 128); 26 elm_bg_color_set(bg, 128, 128, 128);
27 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
27 elm_win_resize_object_add(win, bg); 28 elm_win_resize_object_add(win, bg);
28 evas_object_show(bg); 29 evas_object_show(bg);
29 30
diff --git a/src/examples/popup_example_02.c b/src/examples/popup_example_02.c
index 9ecd03a..48d0eba 100644
--- a/src/examples/popup_example_02.c
+++ b/src/examples/popup_example_02.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` popup_example_02.c -o popup_example_02 2//gcc -o popup_example_02 popup_example_02.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -23,6 +23,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
23 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 23 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
24 24
25 bg = elm_bg_add(win); 25 bg = elm_bg_add(win);
26 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
26 elm_win_resize_object_add(win, bg); 27 elm_win_resize_object_add(win, bg);
27 evas_object_show(bg); 28 evas_object_show(bg);
28 29
diff --git a/src/examples/popup_example_03.c b/src/examples/popup_example_03.c
index 92d598f..1f6993a 100644
--- a/src/examples/popup_example_03.c
+++ b/src/examples/popup_example_03.c
@@ -1,5 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` popup_example_03.c -o popup_example_03 2//gcc -o popup_example_03 popup_example_03.c -g `pkg-config --cflags --libs elementary`
3 3
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -25,6 +25,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
25 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 25 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
26 26
27 bg = elm_bg_add(win); 27 bg = elm_bg_add(win);
28 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
28 elm_win_resize_object_add(win, bg); 29 elm_win_resize_object_add(win, bg);
29 evas_object_show(bg); 30 evas_object_show(bg);
30 31
diff --git a/src/examples/slideshow_example.c b/src/examples/slideshow_example.c
index b97d859..4d2ba3d 100644
--- a/src/examples/slideshow_example.c
+++ b/src/examples/slideshow_example.c
@@ -5,7 +5,7 @@
5 * See stdout/stderr for output. Compile with: 5 * See stdout/stderr for output. Compile with:
6 * 6 *
7 * @verbatim 7 * @verbatim
8 * gcc -g `pkg-config --cflags --libs elementary` slideshow_example.c -o slideshow_example 8 * gcc -o slideshow_example slideshow_example.c -g `pkg-config --cflags --libs elementary`
9 * @endverbatim 9 * @endverbatim
10 */ 10 */
11 11
@@ -191,17 +191,21 @@ elm_main(int argc __UNUSED__,
191 win = elm_win_add(NULL, "slideshow", ELM_WIN_BASIC); 191 win = elm_win_add(NULL, "slideshow", ELM_WIN_BASIC);
192 elm_win_title_set(win, "Slideshow example"); 192 elm_win_title_set(win, "Slideshow example");
193 evas_object_smart_callback_add(win, "delete,request", _on_done, NULL); 193 evas_object_smart_callback_add(win, "delete,request", _on_done, NULL);
194 elm_win_autodel_set(win, EINA_TRUE);
195 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
196 evas_object_resize(win, 600, 400);
197 evas_object_show(win);
194 198
195 bg = elm_bg_add(win); 199 bg = elm_bg_add(win);
196 elm_win_resize_object_add(win, bg);
197 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 200 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
201 elm_win_resize_object_add(win, bg);
198 evas_object_show(bg); 202 evas_object_show(bg);
199 203
200 slideshow = elm_slideshow_add(win); 204 slideshow = elm_slideshow_add(win);
201 elm_slideshow_loop_set(slideshow, EINA_TRUE); 205 elm_slideshow_loop_set(slideshow, EINA_TRUE);
202 elm_win_resize_object_add(win, slideshow);
203 evas_object_size_hint_weight_set(slideshow, 206 evas_object_size_hint_weight_set(slideshow,
204 EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 207 EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
208 elm_win_resize_object_add(win, slideshow);
205 evas_object_show(slideshow); 209 evas_object_show(slideshow);
206 210
207 itc.func.get = _get; 211 itc.func.get = _get;
@@ -225,6 +229,7 @@ elm_main(int argc __UNUSED__,
225 229
226 notify = elm_notify_add(win); 230 notify = elm_notify_add(win);
227 elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_BOTTOM); 231 elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_BOTTOM);
232 evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
228 elm_win_resize_object_add(win, notify); 233 elm_win_resize_object_add(win, notify);
229 elm_notify_timeout_set(notify, 3.0); 234 elm_notify_timeout_set(notify, 3.0);
230 235
@@ -311,9 +316,6 @@ elm_main(int argc __UNUSED__,
311 316
312 _notify_show(notify, NULL, NULL, NULL); 317 _notify_show(notify, NULL, NULL, NULL);
313 318
314 evas_object_resize(win, 600, 400);
315 evas_object_show(win);
316
317 elm_run(); 319 elm_run();
318 return 0; 320 return 0;
319} 321}
diff --git a/src/examples/transit_example_01.c b/src/examples/transit_example_01.c
index 3696307..f6c93dc 100644
--- a/src/examples/transit_example_01.c
+++ b/src/examples/transit_example_01.c
@@ -1,6 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_01.c -o transit_example_01 2//gcc -o transit_example_01 transit_example_01.c `pkg-config --cflags --libs elementary`
3// where directory is the a path where images/plant_01.jpg can be found.
4 3
5#include <Elementary.h> 4#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -26,11 +25,12 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
26 elm_win_title_set(win, "Transit - Basic"); 25 elm_win_title_set(win, "Transit - Basic");
27 evas_object_smart_callback_add(win, "delete,request", on_done, NULL); 26 evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
28 elm_win_autodel_set(win, EINA_TRUE); 27 elm_win_autodel_set(win, EINA_TRUE);
28 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
29 evas_object_resize(win, 400, 400); 29 evas_object_resize(win, 400, 400);
30 30
31 bg = elm_bg_add(win); 31 bg = elm_bg_add(win);
32 elm_win_resize_object_add(win, bg);
33 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 32 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33 elm_win_resize_object_add(win, bg);
34 evas_object_show(bg); 34 evas_object_show(bg);
35 35
36 bt = elm_button_add(win); 36 bt = elm_button_add(win);
diff --git a/src/examples/transit_example_02.c b/src/examples/transit_example_02.c
index bc75b48..86b124e 100644
--- a/src/examples/transit_example_02.c
+++ b/src/examples/transit_example_02.c
@@ -1,6 +1,5 @@
1//Compile with: 1//Compile with:
2//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_02.c -o transit_example_02 2//gcc -o transit_example_02 transit_example_02.c `pkg-config --cflags --libs elementary`
3// where directory is the a path where images/plant_01.jpg can be found.
4 3
5#include <Elementary.h> 4#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
@@ -26,11 +25,12 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
26 elm_win_title_set(win, "Transit 9"); 25 elm_win_title_set(win, "Transit 9");
27 elm_win_autodel_set(win, EINA_TRUE); 26 elm_win_autodel_set(win, EINA_TRUE);
28 evas_object_resize(win, 400, 400); 27 evas_object_resize(win, 400, 400);
28 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
29 evas_object_show(win); 29 evas_object_show(win);
30 30
31 bg = elm_bg_add(win); 31 bg = elm_bg_add(win);
32 elm_win_resize_object_add(win, bg);
33 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 32 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33 elm_win_resize_object_add(win, bg);
34 evas_object_show(bg); 34 evas_object_show(bg);
35 35
36 bt = elm_button_add(win); 36 bt = elm_button_add(win);
diff --git a/src/examples/transit_example_03.c b/src/examples/transit_example_03.c
index a140788..a14078d 100644
--- a/src/examples/transit_example_03.c
+++ b/src/examples/transit_example_03.c
@@ -1,6 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_03.c -o transit_example_03 2//gcc -o transit_example_03 transit_example_03.c `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
3// where directory is the a path where images/plant_01.jpg can be found. 3//where directory is the a path where images/icon_07.png can be found.
4 4
5#include <Elementary.h> 5#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H
diff --git a/src/examples/transit_example_04.c b/src/examples/transit_example_04.c
index faf4fe5..5b73fd5 100644
--- a/src/examples/transit_example_04.c
+++ b/src/examples/transit_example_04.c
@@ -1,7 +1,6 @@
1//Compile with: 1//Compile with:
2//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_04.c -o transit_example_04 2//gcc -o transit_example_04 transit_example_04.c `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
3// where directory is the a path where images/plant_01.jpg can be found. 3//where directory is the a path where images/icon_07.png can be found.
4
5 4
6#include <Elementary.h> 5#include <Elementary.h>
7#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H