{
setting_main_appdata *ad = (setting_main_appdata *)data;
- Setting_GenGroupItem_Data * obj = setting_create_Gendial_field_groupitem(genlist,
+ ad->data_network = setting_create_Gendial_field_groupitem(genlist,
&(ad->itc[GENDIAL_Type_1text_1icon_2]),
NULL,
setting_main_click_list_network_ug_cb,
NULL,
NULL);
- return obj;
+ return ad->data_network;
}
static Setting_GenGroupItem_Data * __nfc_handler(void* data, char* keyStr, char* icon_path, char* ug_args, Evas_Object *genlist)
// /opt/apps/
char path[512];
- SETTING_TRACE("1");
if (snprintf(path, 512, "/opt/apps/%s/setting/setting.xml", pkgname) < 0)
return false;
static void draw_3rdapp(void* data, char* name, char* pkgname)
{
SETTING_TRACE_BEGIN;
+ SETTING_TRACE(" name : %s", name);
+ SETTING_TRACE(" pkgname : %s", pkgname);
+
setting_main_appdata *ad = data;
//3rd cfg
if (ad)
{
+ if (ad->plugin_path)
+ {
+ free(ad->plugin_path);
+ ad->plugin_path = NULL;
+ }
+ ad->plugin_path = strdup(fullpath);
+
setting_create_Gendial_field_groupitem(ad->main_genlist,
&(ad->itc[GENDIAL_Type_1text_1icon_2]),
NULL,
setting_main_click_list_plugin_cb,
- strdup(fullpath),
+ ad,
SWALLOW_Type_INVALID,
IMG_DefaultIcon, NULL,
0, name, NULL,
*/
static ail_cb_ret_e __download_apps_cb(ail_appinfo_h ai, void* data)
{
- SETTING_TRACE_BEGIN;
-
DrawAppInfo* pinfo = (DrawAppInfo*)data;
char *id;
//SETTING_TRACE("installed_time = %d ", installed_time);
if (installed_time != 0 && is_3rdapp_installed_setting_cfg(id) == true )
{
- SETTING_TRACE(" 3rd party - app name : ----> %s ", id);
+ SETTING_TRACE(" 3rd party - app name : ----> id : %s --- name : %s ", id, name);
+ SETTING_TRACE(" 3rd party - icon : ----> %s ", icon);
+ SETTING_TRACE(" 3rd party - nodisplay : ----> %d ", nodisplay);
pinfo->ncount++;
// draw code here
if (pinfo->draw_app != NULL)
{
SETTING_TRACE(">>> pkg name --> %s ", id);
- // draw !!!
- pinfo->draw_app(pinfo->data, strdup(id)/* appname*/, strdup(id)/* pkg_name*/);
+ pinfo->draw_app(pinfo->data, strdup(name)/* appname*/, strdup(id)/* pkg_name*/);
}
-
}
}
-
SETTING_TRACE_END;
return AIL_CB_RET_CONTINUE;
}
setting_create_Gendial_itc("dialogue/2text.3", &(ad->itc[GENDIAL_Type_2text_3]));
ad->view_type = SETTING_VIEW_MAIN;
- __setting_create_main_view(ad);
+ bool ret = __setting_create_main_view(ad);
+ SETTING_TRACE(" >>>> ret = %d ", ret);
setting_view_main.is_create = 1;
return SETTING_RETURN_SUCCESS;
evas_object_del(ad->flight_popup);
ad->flight_popup = NULL;
}
+
+#if 0
+ if (ad->plugin_node)
+ {
+ setting_plugin_destroy(ad->plugin_node);
+ }
+#endif
+
setting_view_main.is_create = 0;
SETTING_TRACE_END;
return SETTING_RETURN_SUCCESS;
}
if (item_to_update) {
+ SETTING_TRACE("gl update [%s], bGlUpdate:%d", _(item_to_update->keyStr), bGlUpdate);
if(bGlUpdate) {
SETTING_TRACE("gl update:%d", nDx);
elm_object_item_data_set(item_to_update->item, item_to_update);
retm_if(event_info == NULL, "Invalid argument: event info is NULL");
Elm_Object_Item *item = (Elm_Object_Item *) event_info;
elm_genlist_item_selected_set(item, EINA_FALSE);
+
+ setting_main_appdata *ad = data;
#ifdef PLUGIN
- setting_plugin_load((const char *)data);
+ if (ad->plugin_path)
+ {
+ PluginNode* plugin_node = setting_plugin_create();
+
+ plugin_node->plugin_path = strdup(ad->plugin_path);
+
+ setting_plugin_load(plugin_node, (const char *)ad->plugin_path);
+ ad->plugin_node = (void*)plugin_node;
+
+ #if 0
+ if(ad->plugin_path)
+ {
+ free(ad->plugin_path);
+ ad->plugin_path = NULL;
+ }
+ #endif
+ }
#endif
}