#define APPID_POS_FROM_PATH 10
static char* s_pkg_name;
-
-#if 0
-static char* substring(const char* str, size_t begin, size_t len)
-{
- if (str == 0 || strlen(str) == 0 || strlen(str) < begin || strlen(str) < (begin+len))
- return 0;
-
- return strndup(str + begin, len);
-}
-#endif
+static char* s_plugin_path;
/**
* package ID
DBusError error;
dbus_error_init(&error);
- //setting_main_appdata *ad = user_data;
PluginNode* ad = (PluginNode*)user_data;
- char* plugin_path = ad->plugin_path;
+ //char* plugin_path = ad->plugin_path;
+ char* plugin_path = s_plugin_path;
char* pkg_name = get_app_string(plugin_path);
if (pkg_name == NULL)
bus = NULL;
return -1;
}
+ PluginNode* temp = (PluginNode*)user_data;
+ s_plugin_path = temp->plugin_path;
if (dbus_connection_add_filter(bus, __signal_filter, user_data, NULL) == FALSE)
{
ret_if(!data);
PluginNode* node = (PluginNode*)data;
+
Draw_Data *pd = node->pd;
- if (node->navi_bar)
- {
- elm_naviframe_item_pop(node->navi_bar);
- }
+ Evas_Object* temp = node->navi_bar;
ui_gadget_h ug = node->ug;
setting_plugin_destroy(node);
pd->cfg_file = NULL;
pd->root = NULL;
+#if 0
+ if (temp)
+ {
+ elm_naviframe_item_pop(temp);
+ }
+#endif
// ug --> destroy
if(ug)
{
+ SETTING_TRACE(" before ug_destory me ----<<<<<< ");
ug_destroy_me(ug);
+ SETTING_TRACE(" after ug_destory me ----<<<<<< ");
+ } else {
+ SETTING_TRACE(" UG is NULL now ----<<<<<< ");
}
}
// re-add filter
if (dbus_connection_add_filter(bus, __signal_filter, user_data, NULL) == FALSE)
{
+ SETTING_TRACE("Fail to add filter ----- ");
dbus_bus_remove_match(bus, rule, &error);
dbus_error_free(&error);
dbus_connection_close(bus);