}
}
+int gl_widget_file_exists(const char *path)
+{
+ struct stat info = {0,};
+
+ if (stat(path, &info) == 0) {
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
void _gl_launch_iv(void *data, Evas_Object *obj, void *event_info)
{
if (!obj) {
} else {
DbgPrint("ug already launched");
}
+ if (!gl_widget_file_exists(file_name)) {
+ DbgPrint("file deleted, resetting the flag");
+ widget_data->is_ug_launched = false;
+ }
} else {
ErrPrint("image path could not be retrieved");
}
}
-int gl_widget_file_exists(const char *path)
-{
- struct stat info = {0,};
-
- if (stat(path, &info) == 0) {
- return 1;
- } else {
- return 0;
- }
-}
-
static Eina_Bool gl_widget_animator_cb(void *data)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ENTRY gl_widget_animator_cb");