|
|
|
@ -47,7 +47,6 @@ static Eina_Bool _entrance_tp_login_timer(void *data); |
|
|
|
|
static void _entrance_tp_animation_reset(void *data); |
|
|
|
|
static void _entrance_tp_animation_init(Entrance_Theme_Preview *l); |
|
|
|
|
static Evas_Object* _entrance_tp_add(Evas_Object *par, const char *name); |
|
|
|
|
static void _entrance_tp_del(Evas_Object *par); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void |
|
|
|
@ -66,7 +65,7 @@ _entrance_conf_theme_update_preview(const char *name) |
|
|
|
|
|
|
|
|
|
o = elm_object_part_content_get(_entrance_int_conf_theme->preview, "default"); |
|
|
|
|
if (o) |
|
|
|
|
_entrance_tp_del(o); |
|
|
|
|
evas_object_del(o); |
|
|
|
|
|
|
|
|
|
o = _entrance_tp_add(_entrance_int_conf_theme->preview, name); |
|
|
|
|
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); |
|
|
|
@ -79,10 +78,6 @@ _entrance_conf_theme_update_preview(const char *name) |
|
|
|
|
static void |
|
|
|
|
_entrance_conf_theme_end(void) |
|
|
|
|
{ |
|
|
|
|
Evas_Object *o; |
|
|
|
|
o = elm_object_part_content_get(_entrance_int_conf_theme->preview, "default"); |
|
|
|
|
if (o) |
|
|
|
|
_entrance_tp_del(o); |
|
|
|
|
free(_entrance_int_conf_theme); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -175,7 +170,7 @@ _entrance_conf_theme_apply(void) |
|
|
|
|
Entrance_Conf_Gui_Event conf; |
|
|
|
|
|
|
|
|
|
conf.vkbd_enabled = entrance_gui_vkbd_enabled_get(); |
|
|
|
|
conf.theme = eina_stringshare_add(_entrance_int_conf_theme->theme); |
|
|
|
|
conf.theme = _entrance_int_conf_theme->theme; |
|
|
|
|
entrance_gui_background_get(&conf.bg.path, &conf.bg.group); |
|
|
|
|
|
|
|
|
|
entrance_connect_conf_gui_send(&conf); |
|
|
|
@ -183,6 +178,10 @@ _entrance_conf_theme_apply(void) |
|
|
|
|
entrance_conf_changed(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
_entrance_conf_theme_renew(void) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
entrance_conf_theme_init(void) |
|
|
|
@ -193,7 +192,8 @@ entrance_conf_theme_init(void) |
|
|
|
|
_entrance_conf_theme_end, |
|
|
|
|
_entrance_conf_theme_build, |
|
|
|
|
_entrance_conf_theme_check, |
|
|
|
|
_entrance_conf_theme_apply); |
|
|
|
|
_entrance_conf_theme_apply, |
|
|
|
|
_entrance_conf_theme_renew); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
@ -338,11 +338,17 @@ _entrance_tp_login_timer(void *data) |
|
|
|
|
return ECORE_CALLBACK_CANCEL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
_animation_free(String_Animation *ani){ |
|
|
|
|
eina_stringshare_del(ani->text); |
|
|
|
|
free(ani); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
_entrance_tp_animation_reset(void *data) |
|
|
|
|
{ |
|
|
|
|
String_Animation *ani = data; |
|
|
|
|
free(ani); |
|
|
|
|
_animation_free(ani); |
|
|
|
|
} |
|
|
|
|
static void |
|
|
|
|
_entrance_tp_animation_init(Entrance_Theme_Preview *p) |
|
|
|
@ -389,15 +395,30 @@ _entrance_tp_random_bg(Evas_Object *par, char *theme_path) |
|
|
|
|
res = elm_layout_add(par); |
|
|
|
|
elm_layout_file_set(res, theme_path, buf); |
|
|
|
|
evas_object_del(o); |
|
|
|
|
// for (i = 0; user_bg[i]; i++)
|
|
|
|
|
//free(user_bg[i]);
|
|
|
|
|
//free(user_bg);
|
|
|
|
|
free(user_bg[0]); |
|
|
|
|
free(user_bg); |
|
|
|
|
return res; |
|
|
|
|
bad_end: |
|
|
|
|
evas_object_del(o); |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
_entrance_tp_del_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) |
|
|
|
|
{ |
|
|
|
|
Entrance_Theme_Preview *pre = evas_object_smart_data_get(obj); |
|
|
|
|
String_Animation *ani; |
|
|
|
|
|
|
|
|
|
if (!pre) |
|
|
|
|
return; |
|
|
|
|
if (pre->active_timer) |
|
|
|
|
{ |
|
|
|
|
ani = ecore_timer_del(pre->active_timer); |
|
|
|
|
_animation_free(ani); |
|
|
|
|
} |
|
|
|
|
free(pre); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static Evas_Object* |
|
|
|
|
_entrance_tp_add(Evas_Object *par, const char *name) |
|
|
|
|
{ |
|
|
|
@ -468,20 +489,9 @@ _entrance_tp_add(Evas_Object *par, const char *name) |
|
|
|
|
|
|
|
|
|
_entrance_tp_animation_init(pre); |
|
|
|
|
evas_object_smart_data_set(pre->transition, pre); |
|
|
|
|
return pre->transition; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
_entrance_tp_del(Evas_Object *obj) |
|
|
|
|
{ |
|
|
|
|
Entrance_Theme_Preview *pre = evas_object_smart_data_get(obj); |
|
|
|
|
String_Animation *ani; |
|
|
|
|
|
|
|
|
|
if ((pre) && pre->active_timer) |
|
|
|
|
{ |
|
|
|
|
ani = ecore_timer_del(pre->active_timer); |
|
|
|
|
free(ani); |
|
|
|
|
} |
|
|
|
|
evas_object_event_callback_add(pre->transition, EVAS_CALLBACK_DEL, _entrance_tp_del_cb, NULL); |
|
|
|
|
|
|
|
|
|
evas_object_del(obj); |
|
|
|
|
return pre->transition; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|