summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_photocam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_photocam.c')
-rw-r--r--src/bin/elementary/test_photocam.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/elementary/test_photocam.c b/src/bin/elementary/test_photocam.c
index c1e055e..cbfb79a 100644
--- a/src/bin/elementary/test_photocam.c
+++ b/src/bin/elementary/test_photocam.c
@@ -1,6 +1,7 @@
1#ifdef HAVE_CONFIG_H 1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h" 2# include "elementary_config.h"
3#endif 3#endif
4#include <Efl_Ui.h>
4#include <Elementary.h> 5#include <Elementary.h>
5 6
6static const struct { 7static const struct {
@@ -142,7 +143,7 @@ my_bt_open(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
142 if (eina_list_count(grps) > 0) 143 if (eina_list_count(grps) > 0)
143 { 144 {
144 const char *grp = eina_list_nth(grps, 0); 145 const char *grp = eina_list_nth(grps, 0);
145 efl_file_set(ph, file, grp); 146 efl_file_simple_load(ph, file, grp);
146 printf("Successfully set the edje file: %s, group: %s\n", file, grp); 147 printf("Successfully set the edje file: %s, group: %s\n", file, grp);
147 } 148 }
148 else printf("Failed to set edje file\n"); 149 else printf("Failed to set edje file\n");
@@ -805,7 +806,7 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
805 char buf[PATH_MAX]; 806 char buf[PATH_MAX];
806 807
807 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL, 808 win = efl_add_ref(EFL_UI_WIN_CLASS, NULL,
808 efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC), 809 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
809 efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"), 810 efl_text_set(efl_added, "Efl.Ui.Image_Zoomable animation"),
810 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 811 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
811 812
@@ -823,7 +824,8 @@ test_image_zoomable_animated(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSE
823 824
824 snprintf(buf, sizeof(buf), "%s/images/animated_logo.gif", elm_app_data_dir_get()); 825 snprintf(buf, sizeof(buf), "%s/images/animated_logo.gif", elm_app_data_dir_get());
825 zoomable = efl_add(EFL_UI_IMAGE_ZOOMABLE_CLASS, win, 826 zoomable = efl_add(EFL_UI_IMAGE_ZOOMABLE_CLASS, win,
826 efl_file_set(efl_added, buf, NULL), 827 efl_file_set(efl_added, buf),
828 efl_file_load(efl_added),
827 efl_pack(bx, efl_added), 829 efl_pack(bx, efl_added),
828 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _zoomable_clicked_cb, NULL) 830 efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _zoomable_clicked_cb, NULL)
829 ); 831 );