* If some decoration is required, a label can be set, and icon before and
* after the bar as well. On the second slider will add a @c home icon
* and a @c folder icon at @c end.
- * @skipline text_set
- * @until end_set
+ * @skip elm_object_text_set
+ * @until elm_object_part_content_set(sl, "end", ic)
*
* If the bar size need to be changed, it can be done with span set function,
* that doesn't accounts other widget's parts size. Also the bar can starts
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` bg_example_01.c -o bg_example_01
+//gcc -o bg_example_01 bg_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
//Compile with:
-//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` bg_example_02.c -o bg_example_02
-// where directory is the a path where images/plant_01.jpg can be found.
+//gcc -o bg_example_02 bg_example_02.c -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
+//where directory is the a path where images/plant_01.jpg can be found.
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
//Compile with:
-//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` bg_example_03.c -o bg_example_03
-// where directory is the a path where images/plant_01.jpg can be found.
+//gcc -o bg_example_03 bg_example_03.c -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
+//where directory is the a path where images/plant_01.jpg can be found.
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\"" bubble_example_01.c -o bubble_example_01
+//gcc -o bubble_example_01 bubble_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_win_title_set(win, "Bubble");
elm_win_autodel_set(win, EINA_TRUE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
+ evas_object_resize(win, 300, 200);
+ evas_object_show(win);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
evas_object_move(bubble, 0, 110);
evas_object_show(bubble);
- evas_object_resize(win, 300, 200);
- evas_object_show(win);
-
elm_run();
evas_object_del(icon);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` calendar_example_01.c -o calendar_example_01
+ * gcc -o calendar_example_01 calendar_example_01.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
elm_win_title_set(win, "Calendar Creation Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` calendar_example_02.c -o calendar_example_02
+ * gcc -o calendar_example_02 calendar_example_02.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
elm_win_title_set(win, "Calendar Layout Formatting Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` calendar_example_03.c -o calendar_example_03
+ * gcc -o calendar_example_03 calendar_example_03.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
elm_win_title_set(win, "Calendar Min/Max Year Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` calendar_example_04.c -o calendar_example_04
+ * gcc -o calendar_example_04 calendar_example_04.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
elm_win_title_set(win, "Calendar Day Selection Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` calendar_example_05.c -o calendar_example_05
+ * gcc -o calendar_example_05 calendar_example_05.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
elm_win_title_set(win, "Calendar Getters Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` calendar_example_06.c -o calendar_example_06
+ * gcc -o calendar_example_06 calendar_example_06.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
elm_win_title_set(win, "Calendar Marks Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` check_example_01.c -o check_example_01
+//gcc -o check_example_01 check_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` conformant_example_01.c -o conformant_example_01
+ * gcc -o conformant_example_01 conformant_example_01.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC);
elm_win_title_set(win, "Conformant Example");
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` ctxpopup_example_01.c -o ctxpopup_example_01
+//gcc -o ctxpopup_example_01 ctxpopup_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
+#else
+# define __UNUSED__
#endif
static void
elm_win_title_set(win, "Contextual Popup");
elm_win_autodel_set(win, EINA_TRUE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
+ evas_object_resize(win, 400, 400);
+ evas_object_show(win);
bg = elm_bg_add(win);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
list = elm_list_add(win);
+ evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, list);
elm_list_mode_set(list, ELM_LIST_COMPRESS);
evas_object_show(list);
elm_list_go(list);
- evas_object_resize(win, 400, 400);
- evas_object_show(win);
-
elm_run();
}
ELM_MAIN()
+//Compile with:
+//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
win = elm_win_add(NULL, "efl-thread-1", ELM_WIN_BASIC);
elm_win_title_set(win, "EFL Thread 1");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
o = evas_object_rectangle_add(evas_object_evas_get(win));
+//Compile with:
+//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
win = elm_win_add(NULL, "efl-thread-2", ELM_WIN_BASIC);
elm_win_title_set(win, "EFL Thread 2");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
o = evas_object_rectangle_add(evas_object_evas_get(win));
+//Compile with:
+//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
win = elm_win_add(NULL, "efl-thread-3", ELM_WIN_BASIC);
elm_win_title_set(win, "EFL Thread 3");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
o = evas_object_rectangle_add(evas_object_evas_get(win));
+//Compile with:
+//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
win = elm_win_add(NULL, "efl-thread-4", ELM_WIN_BASIC);
elm_win_title_set(win, "EFL Thread 4");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
o = evas_object_rectangle_add(evas_object_evas_get(win));
+//Compile with:
+//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
static Ecore_Thread *th = NULL;
win = elm_win_add(NULL, "efl-thread-5", ELM_WIN_BASIC);
elm_win_title_set(win, "EFL Thread 5");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
o = evas_object_rectangle_add(evas_object_evas_get(win));
+//Compile with:
+//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
static Evas_Object *win = NULL;
win = elm_win_add(NULL, "efl-thread-6", ELM_WIN_BASIC);
elm_win_title_set(win, "EFL Thread 6");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
// queue up 64 mandel generation thread jobs
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` flip_example_01.c -o flip_example_01
+//gcc -o flip_example_01 flip_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` frame_example_01.c -o frame_example_01
+//gcc -o frame_example_01 frame_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` hover_example_01.c -o hover_example_01
+//gcc -o hover_example_01 hover_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` hoversel_example_01.c -o hoversel_example_01
+//gcc -o hoversel_example_01 hoversel_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` label_example_01.c -o label_example_01
+//gcc -o label_example_01 label_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` notify_example_01.c -o notify_example_01
+//gcc -o notify_example_01 notify_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\"" photocam_example_01.c -o photocam_example_01
+//gcc -o photocam_example_01 photocam_example_01.c -g `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
+//where directory is the path where images/insanely_huge_test_image.jpg can be found.
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` popup_example_01.c -o popup_example_01
+//gcc -o popup_example_01 popup_example_01.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
bg = elm_bg_add(win);
elm_bg_color_set(bg, 128, 128, 128);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` popup_example_02.c -o popup_example_02
+//gcc -o popup_example_02 popup_example_02.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
//Compile with:
-//gcc -g `pkg-config --cflags --libs elementary` popup_example_03.c -o popup_example_03
+//gcc -o popup_example_03 popup_example_03.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
* See stdout/stderr for output. Compile with:
*
* @verbatim
- * gcc -g `pkg-config --cflags --libs elementary` slideshow_example.c -o slideshow_example
+ * gcc -o slideshow_example slideshow_example.c -g `pkg-config --cflags --libs elementary`
* @endverbatim
*/
win = elm_win_add(NULL, "slideshow", ELM_WIN_BASIC);
elm_win_title_set(win, "Slideshow example");
evas_object_smart_callback_add(win, "delete,request", _on_done, NULL);
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
+ evas_object_resize(win, 600, 400);
+ evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
slideshow = elm_slideshow_add(win);
elm_slideshow_loop_set(slideshow, EINA_TRUE);
- elm_win_resize_object_add(win, slideshow);
evas_object_size_hint_weight_set(slideshow,
EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, slideshow);
evas_object_show(slideshow);
itc.func.get = _get;
notify = elm_notify_add(win);
elm_notify_orient_set(notify, ELM_NOTIFY_ORIENT_BOTTOM);
+ evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, notify);
elm_notify_timeout_set(notify, 3.0);
_notify_show(notify, NULL, NULL, NULL);
- evas_object_resize(win, 600, 400);
- evas_object_show(win);
-
elm_run();
return 0;
}
//Compile with:
-//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_01.c -o transit_example_01
-// where directory is the a path where images/plant_01.jpg can be found.
+//gcc -o transit_example_01 transit_example_01.c `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_win_title_set(win, "Transit - Basic");
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
elm_win_autodel_set(win, EINA_TRUE);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_resize(win, 400, 400);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
bt = elm_button_add(win);
//Compile with:
-//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_02.c -o transit_example_02
-// where directory is the a path where images/plant_01.jpg can be found.
+//gcc -o transit_example_02 transit_example_02.c `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
elm_win_title_set(win, "Transit 9");
elm_win_autodel_set(win, EINA_TRUE);
evas_object_resize(win, 400, 400);
+ elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
evas_object_show(win);
bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bg);
evas_object_show(bg);
bt = elm_button_add(win);
//Compile with:
-//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_03.c -o transit_example_03
-// where directory is the a path where images/plant_01.jpg can be found.
+//gcc -o transit_example_03 transit_example_03.c `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
+//where directory is the a path where images/icon_07.png can be found.
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
//Compile with:
-//gcc -g -DPACKAGE_DATA_DIR="\"<directory>\"" `pkg-config --cflags --libs elementary` transit_example_04.c -o transit_example_04
-// where directory is the a path where images/plant_01.jpg can be found.
-
+//gcc -o transit_example_04 transit_example_04.c `pkg-config --cflags --libs elementary` -DPACKAGE_DATA_DIR="\"<directory>\""
+//where directory is the a path where images/icon_07.png can be found.
#include <Elementary.h>
#ifdef HAVE_CONFIG_H