char edj_path[PATH_MAX] = {0, };
app_get_resource(TELEGRAM_CUSTOM_WINSET_EDJ, edj_path, (int)PATH_MAX);
- elm_theme_extension_add(NULL, edj_path);
+ Elm_Theme *theme = elm_theme_new();
+ elm_theme_extension_add(theme, edj_path);
+ ad->theme = theme;
evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
ad->conform = elm_conformant_add(ad->win);
//elm_entry_magnifier_disabled_set(entry, EINA_TRUE);
// FIXME: Deprecated API
- elm_entry_selection_handler_disabled_set(entry, EINA_TRUE);
+ //elm_entry_selection_handler_disabled_set(entry, EINA_TRUE);
+
+ elm_object_theme_set(layout, ad->theme);
char *sender_name = NULL;
if(msg->out) {
static void on_voice_record_reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data)
{
if (result == APP_CONTROL_RESULT_SUCCEEDED) {
- Evas_Object *chat_list = user_data;
- char *file_name = NULL;
- app_control_get_extra_data(reply, APP_CONTROL_DATA_SELECTED, &file_name);
- if (file_name) {
- send_media_message_to_buddy(chat_list, file_name, tgl_message_media_document);
+ Evas_Object* chat_list = user_data;
+
+ char* file_path = NULL;
+ char** path_arryay = NULL;
+ int array_length = 0;
+ app_control_get_extra_data_array(reply, APP_CONTROL_DATA_SELECTED, &path_arryay, &array_length);
+
+ for(int i = 0 ; i < array_length ; i++) {
+ file_path = strdup(path_arryay[i]);
+ send_media_message_to_buddy(chat_list, file_path, tgl_message_media_document);
+ free(file_path);
+ break;
}
}
}