uint32_t conf_type;
Eina_List *l;
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
if ((g_conf->part[type].state.visible == visible) &&
(g_conf->part[type].state.x == x) && (g_conf->part[type].state.x == y) &&
(g_conf->part[type].state.x == w) && (g_conf->part[type].state.x == h))
{
Conformant_Type type = (Conformant_Type)data;
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
CFDBG("PART %s ec(%p) Deleted", _conf_type_to_str(type), g_conf->part[type].ec);
g_conf->part[type].ec = NULL;
Conformant_Type type = (Conformant_Type)data;
E_Client *owner = NULL;
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
CFDBG("PART %s ec(%p) Show", _conf_type_to_str(type), g_conf->part[type].ec);
owner = _conf_part_owner_find(g_conf->part[type].ec, type);
{
Conformant_Type type = (Conformant_Type)data;
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
CFDBG("PART %s ec(%p) Hide", _conf_type_to_str(type), g_conf->part[type].ec);
_conf_state_update(type,
EINA_FALSE,
{
Conformant_Type type = (Conformant_Type)data;
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
CFDBG("PART %s ec(%p) Move", _conf_type_to_str(type), g_conf->part[type].ec);
g_conf->part[type].changed = 1;
{
Conformant_Type type = (Conformant_Type)data;
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
CFDBG("PART %s ec(%p) Resize", _conf_type_to_str(type), g_conf->part[type].ec);
g_conf->part[type].changed = 1;
static void
_conf_part_register(E_Client *ec, Conformant_Type type)
{
- EINA_SAFETY_ON_TRUE_RETURN(type >= CONFORMANT_TYPE_MAX);
-
if (g_conf->part[type].ec)
{
CFERR("Can't register ec(%p) for %s. ec(%p) was already registered.",
type = _conf_client_type_get(ev->ec);
if (type >= CONFORMANT_TYPE_MAX)
- return ECORE_CALLBACK_PASS_ON;
+ goto end;
_conf_part_register(ev->ec, type);
-
+end:
return ECORE_CALLBACK_PASS_ON;
}
type = _conf_client_type_get(ev->ec);
if (type >= CONFORMANT_TYPE_MAX)
- return ECORE_CALLBACK_PASS_ON;
+ goto end;
/* set conformant area to non-visible state before starting rotation.
* this is to prevent to apply wrong area of conformant area after rotation.
g_conf->part[type].state.h);
g_conf->part[type].state.restore = EINA_TRUE;
}
-
+end:
return ECORE_CALLBACK_PASS_ON;
}
type = _conf_client_type_get(ev->ec);
if (type >= CONFORMANT_TYPE_MAX)
- return ECORE_CALLBACK_PASS_ON;
+ goto end;
if (g_conf->part[type].state.restore)
{
g_conf->part[type].state.h);
g_conf->part[type].state.restore = EINA_TRUE;
}
-
+end:
return ECORE_CALLBACK_PASS_ON;
}
type = _conf_client_type_get(ev->ec);
if (type >= CONFORMANT_TYPE_MAX)
- return ECORE_CALLBACK_PASS_ON;
+ goto end;
g_conf->part[type].state.restore = EINA_FALSE;
-
+end:
return ECORE_CALLBACK_PASS_ON;
}
Conformant_Client *cfc;
Eina_Iterator *itr;
- if (!g_conf)
- return;
+ EINA_SAFETY_ON_NULL_RETURN(g_conf);
CFINF("Conformant Module Shutdown");