p = ug->parent;
if (!p) {
- _ERR("ug_relation_del failed: no parent\n");
+ _ERR("ug_relation_del failed: no parent");
return -1;
}
p->children = g_slist_remove(p->children, ug);
name = ug->name;
if (ug == ug_man.root) {
i = 0;
- _DBG("\n============== TREE_DUMP =============\n");
- _DBG("ROOT: Manager\n");
+ _DBG("============== TREE_DUMP =============");
+ _DBG("ROOT: Manager");
name = "Manager";
}
while (child) {
c = child->data;
- _DBG("[%d] %s [%c] (%p) (PARENT: %s)\n",
+ _DBG("[%d] %s [%c] (%p) (PARENT: %s)",
lv,
c && c->name ? c->name : "NO CHILD INFO FIXIT!!!",
c && c->mode == UG_MODE_FULLVIEW ? 'F' : 'f', c, name);
int cur_state;
if (!ug_man.win) {
- _ERR("ugman_indicator_update failed: no window\n");
+ _ERR("ugman_indicator_update failed: no window");
return -1;
}
case UG_OPT_INDICATOR_MANUAL:
return 0;
default:
- _ERR("ugman_indicator_update failed: Invalid opt\n");
+ _ERR("ugman_indicator_update failed: Invalid opt");
return -1;
}
int ugman_ug_add(ui_gadget_h parent, ui_gadget_h ug)
{
if (!ug_man.is_initted) {
- _ERR("ugman_ug_add failed: manager is not initted\n");
+ _ERR("ugman_ug_add failed: manager is not initted");
return -1;
}
if (!ug_man.root) {
if (parent) {
- _ERR("ugman_ug_add failed: parent has to be NULL w/o root\n");
+ _ERR("ugman_ug_add failed: parent has to be NULL w/o root");
errno = EINVAL;
return -1;
}
ug = calloc(1, sizeof(struct ui_gadget_s));
if (!ug) {
- _ERR("ug_create() failed: Memory allocation failed\n");
+ _ERR("ug_create() failed: Memory allocation failed");
return NULL;
}
ug->module = ug_module_load(name);
if (!ug->module) {
- _ERR("ug_create() failed: Module loading failed\n");
+ _ERR("ug_create() failed: Module loading failed");
goto load_fail;
}
r = ugman_ug_add(parent, ug);
if (r) {
- _ERR("ug_create() failed: Tree update failed\n");
+ _ERR("ug_create() failed: Tree update failed");
goto load_fail;
}
struct ug_engine_ops *eng_ops = NULL;
if (!ug || !ugman_ug_exist(ug) || ug->state == UG_STATE_DESTROYED) {
- _ERR("ugman_ug_del failed: Invalid ug\n");
+ _ERR("ugman_ug_del failed: Invalid ug");
errno = EINVAL;
return -1;
}
if (ug->destroy_me) {
- _ERR("ugman_ug_del failed: ug is alreay on destroying\n");
+ _ERR("ugman_ug_del failed: ug is alreay on destroying");
return -1;
}
if (!ug_man.is_initted) {
- _ERR("ugman_ug_del failed: manager is not initted\n");
+ _ERR("ugman_ug_del failed: manager is not initted");
return -1;
}
if (!ug_man.root) {
- _ERR("ugman_ug_del failed: no root\n");
+ _ERR("ugman_ug_del failed: no root");
return -1;
}
{
/* Terminate */
if (!ug_man.is_initted) {
- _ERR("ugman_ug_del_all failed: manager is not initted\n");
+ _ERR("ugman_ug_del_all failed: manager is not initted");
return -1;
}
if (!ug_man.root) {
- _ERR("ugman_ug_del_all failed: no root\n");
+ _ERR("ugman_ug_del_all failed: no root");
return -1;
}
{
/* RESUME */
if (!ug_man.is_initted) {
- _ERR("ugman_resume failed: manager is not initted\n");
+ _ERR("ugman_resume failed: manager is not initted");
return -1;
}
if (!ug_man.root) {
- _ERR("ugman_resume failed: no root\n");
+ _ERR("ugman_resume failed: no root");
return -1;
}
{
/* PAUSE (Background) */
if (!ug_man.is_initted) {
- _ERR("ugman_pause failed: manager is not initted\n");
+ _ERR("ugman_pause failed: manager is not initted");
return -1;
}
if (!ug_man.root) {
- _ERR("ugman_pause failed: no root\n");
+ _ERR("ugman_pause failed: no root");
return -1;
}
/* Propagate event */
if (!ug_man.is_initted) {
- _ERR("ugman_send_event failed: manager is not initted\n");
+ _ERR("ugman_send_event failed: manager is not initted");
return -1;
}
if (!ug)
return;
- _DBG("\t[%s][%d] obj=%p ug=%p state=%d\n", __FUNCTION__, __LINE__, obj,
- ug, ug->layout_state);
+ _DBG("\t obj=%p ug=%p state=%d", obj, ug, ug->layout_state);
evas_object_intercept_hide_callback_del(ug->layout, _on_hideonly_cb);
if (!ug)
return;
- _DBG("\t[%s][%d] ug=%p state=%d\n", __FUNCTION__, __LINE__, ug,
- ug->layout_state);
+ _DBG("\t ug=%p state=%d", ug, ug->layout_state);
evas_object_intercept_hide_callback_del(ug->layout, _on_hideonly_cb);
/* effect_layout of frameview is null */
/* remove navi item */
if (ug->effect_layout) {
- _DBG("\t[%s][%d] remove navi tiem: ug=%p\n", __FUNCTION__,
- __LINE__,ug);
+ _DBG("\t remove navi tiem: ug=%p", ug);
if (ug->layout_state == UG_LAYOUT_HIDEEFFECT) {
- _DBG("\t del cb, ug=%p\n", ug);
+ _DBG("\t del cb, ug=%p", ug);
evas_object_smart_callback_del(navi, "transition,finished",
__hide_finished);
}
Elm_Object_Item *t = elm_naviframe_top_item_get(navi);
Elm_Object_Item *b = elm_naviframe_bottom_item_get(navi);
if (t == b) {
- _DBG("\t[%s][%d]remove navi\n", __FUNCTION__, __LINE__);
+ _DBG("\t remove navi");
evas_object_del(navi);
navi = NULL;
}
__hide_finished);
ui_gadget_h ug = cb_d->ug;
- _DBG("\t[%s][%d] obj=%p ug=%p state=%d\n", __FUNCTION__, __LINE__, obj,
- ug, ug->layout_state);
+ _DBG("\t obj=%p ug=%p state=%d", obj, ug, ug->layout_state);
ug->effect_layout = NULL;
_del_effect_layout(ug);
if (!ug)
return;
- _DBG("\t[%s][%d] ug=%p tug=%p state=%d\n", __FUNCTION__, __LINE__, ug,
- t_ug, ug->layout_state);
+ _DBG("\t ug=%p tug=%p state=%d", ug, t_ug, ug->layout_state);
evas_object_intercept_hide_callback_del(ug->layout,
_on_hideonly_cb);
cb_d->ug = ug;
cb_d->hide_end_cb = hide_end_cb;
- _DBG("\t[%s][%d]cb add ug=%p\n", __FUNCTION__, __LINE__, ug);
+ _DBG("\t cb add ug=%p", ug);
evas_object_smart_callback_add(navi, "transition,finished",
__hide_finished, cb_d);
ui_gadget_h ug = (ui_gadget_h) data;
if (!ug)
return;
- _DBG("\t[%s][%d] obj=%p ug=%p state=%d\n", __FUNCTION__, __LINE__, obj,
- ug, ug->layout_state);
+ _DBG("\t obj=%p ug=%p state=%d", obj, ug, ug->layout_state);
evas_object_smart_callback_del(obj, "transition,finished",
__show_finished);
ui_gadget_h ug = (ui_gadget_h)data;
if (!ug)
return;
- _DBG("\t[%s][%d] obj=%p ug=%p state=%d\n", __FUNCTION__, __LINE__, obj,
- ug, ug->layout_state);
+ _DBG("\t obj=%p ug=%p state=%d", obj, ug, ug->layout_state);
evas_object_intercept_hide_callback_add(ug->layout,
_on_hideonly_cb, ug);
if (ug->layout_state == UG_LAYOUT_HIDE
|| ug->layout_state == UG_LAYOUT_INIT) {
- _DBG("\t UG_LAYOUT_Init obj=%p\n", obj);
+ _DBG("\t UG_LAYOUT_Init obj=%p", obj);
ug->layout_state = UG_LAYOUT_SHOWEFFECT;
evas_object_smart_callback_add(navi, "transition,finished",
__show_finished, ug);
ug->effect_layout = elm_naviframe_item_push(navi, NULL, NULL, NULL,
ug->layout, NULL);
} else if (ug->layout_state == UG_LAYOUT_NOEFFECT) {
- _DBG("\t UG_LAYOUT_NOEFFECT obj=%p\n", obj);
+ _DBG("\t UG_LAYOUT_NOEFFECT obj=%p", obj);
Elm_Object_Item *navi_top = elm_naviframe_top_item_get(navi);
ug->effect_layout = elm_naviframe_item_insert_after(navi,
navi_top, NULL, NULL, NULL, ug->layout, NULL);
} else {
- _ERR("\t [%s][%d] layout state error!! state=%d\n",
- __FUNCTION__, __LINE__, ug->layout_state);
+ _ERR("\t layout state error!! state=%d\n", ug->layout_state);
}
}
Evas_Object *con = NULL;
static const char *ug_effect_edj_name = "/usr/share/edje/ug_effect.edj";
- _DBG("[%s][%d] START==========>\n", __FUNCTION__, __LINE__);
-
con = evas_object_data_get(win, "\377 elm,conformant");
if (con) {
conform = con;
- _DBG("\t There is conformant\n");
+ _DBG("\t There is conformant");
}
else
- _DBG("\t There is NO conformant\n");
+ _DBG("\t There is NO conformant");
if (!navi) {
navi = elm_naviframe_add(conform);
elm_object_style_set(navi, "uglib");
elm_naviframe_content_preserve_on_pop_set(navi, EINA_TRUE);
- _DBG("\t new navi first navi=%p\n", navi);
+ _DBG("\t new navi first navi=%p", navi);
elm_naviframe_prev_btn_auto_pushed_set(navi, EINA_FALSE);
navi_bg = evas_object_rectangle_add(evas_object_evas_get(navi));