forked from enlightenment/enlightenment
add function for finding a gadcon client from its config
SVN revision: 74439
This commit is contained in:
parent
512f48014c
commit
f8b1dbf2e3
|
@ -829,6 +829,20 @@ e_gadcon_client_config_del(E_Config_Gadcon *cf_gc, E_Config_Gadcon_Client *cf_gc
|
||||||
free(cf_gcc);
|
free(cf_gcc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI E_Gadcon_Client *
|
||||||
|
e_gadcon_client_find(E_Config_Gadcon_Client *cf_gcc)
|
||||||
|
{
|
||||||
|
E_Gadcon *gc;
|
||||||
|
E_Gadcon_Client *gcc;
|
||||||
|
Eina_List *l, *ll;
|
||||||
|
|
||||||
|
if (!cf_gcc) return NULL;
|
||||||
|
EINA_LIST_FOREACH(gadcons, l, gc)
|
||||||
|
EINA_LIST_FOREACH(gc->clients, ll, gcc)
|
||||||
|
if (gcc->cf == cf_gcc) return gcc;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new gadget
|
* Creates a new gadget
|
||||||
*
|
*
|
||||||
|
|
|
@ -276,6 +276,7 @@ EAPI void e_gadcon_shelf_set(E_Gadcon *gc, E_Shelf *shelf);
|
||||||
EAPI E_Shelf *e_gadcon_shelf_get(E_Gadcon *gc);
|
EAPI E_Shelf *e_gadcon_shelf_get(E_Gadcon *gc);
|
||||||
EAPI void e_gadcon_toolbar_set(E_Gadcon *gc, E_Toolbar *toolbar);
|
EAPI void e_gadcon_toolbar_set(E_Gadcon *gc, E_Toolbar *toolbar);
|
||||||
EAPI E_Toolbar *e_gadcon_toolbar_get(E_Gadcon *gc);
|
EAPI E_Toolbar *e_gadcon_toolbar_get(E_Gadcon *gc);
|
||||||
|
EAPI E_Gadcon_Client *e_gadcon_client_find(E_Config_Gadcon_Client *cf_gcc);
|
||||||
EAPI E_Config_Gadcon_Client *e_gadcon_client_config_new(E_Gadcon *gc, const char *name);
|
EAPI E_Config_Gadcon_Client *e_gadcon_client_config_new(E_Gadcon *gc, const char *name);
|
||||||
EAPI void e_gadcon_client_config_del(E_Config_Gadcon *cf_gc, E_Config_Gadcon_Client *cf_gcc);
|
EAPI void e_gadcon_client_config_del(E_Config_Gadcon *cf_gc, E_Config_Gadcon_Client *cf_gcc);
|
||||||
EAPI E_Gadcon_Client *e_gadcon_client_new(E_Gadcon *gc, const char *name, const char *id, const char *style, Evas_Object *base_obj);
|
EAPI E_Gadcon_Client *e_gadcon_client_new(E_Gadcon *gc, const char *name, const char *id, const char *style, Evas_Object *base_obj);
|
||||||
|
|
Loading…
Reference in New Issue