parent
857baca433
commit
3bc257bf8d
|
@ -74,7 +74,7 @@ _e_int_menus_augmentation_find(const char *key)
|
|||
Eina_List *l;
|
||||
char *data;
|
||||
|
||||
if (!_e_int_menus_augmentation || !key) return NULL;
|
||||
if ((!_e_int_menus_augmentation) || (!key)) return NULL;
|
||||
|
||||
EINA_LIST_FOREACH(_e_int_menus_augmentation_disabled, l, data)
|
||||
if (!strcmp(data, key)) return NULL;
|
||||
|
@ -447,9 +447,15 @@ e_int_menus_menu_augmentation_point_disabled_set(const char *menu, Eina_Bool dis
|
|||
{
|
||||
if (!menu) return;
|
||||
if (disabled)
|
||||
_e_int_menus_augmentation_disabled = eina_list_append(_e_int_menus_augmentation_disabled, menu);
|
||||
{
|
||||
_e_int_menus_augmentation_disabled =
|
||||
eina_list_append(_e_int_menus_augmentation_disabled, menu);
|
||||
}
|
||||
else
|
||||
_e_int_menus_augmentation_disabled = eina_list_remove(_e_int_menus_augmentation_disabled, menu);
|
||||
{
|
||||
_e_int_menus_augmentation_disabled =
|
||||
eina_list_remove(_e_int_menus_augmentation_disabled, menu);
|
||||
}
|
||||
}
|
||||
|
||||
/* local subsystem functions */
|
||||
|
@ -1346,7 +1352,7 @@ _e_int_menus_augmentation_add(E_Menu *m, Eina_List *augmentation)
|
|||
Eina_List *l;
|
||||
char *data;
|
||||
|
||||
if (!augmentation || !m) return;
|
||||
if ((!augmentation) || (!m)) return;
|
||||
EINA_LIST_FOREACH(_e_int_menus_augmentation_disabled, l, data)
|
||||
if (eina_hash_find(_e_int_menus_augmentation, data) == augmentation)
|
||||
return;
|
||||
|
@ -1362,7 +1368,7 @@ _e_int_menus_augmentation_del(E_Menu *m, Eina_List *augmentation)
|
|||
Eina_List *l;
|
||||
char *data;
|
||||
|
||||
if (!augmentation || !m) return;
|
||||
if ((!augmentation) || (!m)) return;
|
||||
EINA_LIST_FOREACH(_e_int_menus_augmentation_disabled, l, data)
|
||||
if (eina_hash_find(_e_int_menus_augmentation, data) == augmentation)
|
||||
return;
|
||||
|
|
|
@ -31,7 +31,8 @@ typedef struct _E_Int_Menu_Augmentation E_Int_Menu_Augmentation;
|
|||
struct _E_Int_Menu_Augmentation
|
||||
{
|
||||
const char *sort_key;
|
||||
struct {
|
||||
struct
|
||||
{
|
||||
void (*func) (void *data, E_Menu *m);
|
||||
void *data;
|
||||
} add, del;
|
||||
|
|
Loading…
Reference in New Issue