e17/evry-gadget use new gcc config macro
SVN revision: 63124
This commit is contained in:
parent
7b399e3b2c
commit
ca3dd76636
|
@ -53,8 +53,6 @@ static const E_Gadcon_Client_Class _gadcon_class =
|
||||||
E_GADCON_CLIENT_STYLE_PLAIN
|
E_GADCON_CLIENT_STYLE_PLAIN
|
||||||
};
|
};
|
||||||
|
|
||||||
static int uuid = 0;
|
|
||||||
|
|
||||||
static E_Gadcon_Client *
|
static E_Gadcon_Client *
|
||||||
_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
|
_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
|
||||||
{
|
{
|
||||||
|
@ -145,24 +143,12 @@ _gc_icon(E_Gadcon_Client_Class *client_class __UNUSED__, Evas *evas __UNUSED__)
|
||||||
static Gadget_Config *
|
static Gadget_Config *
|
||||||
_conf_item_get(const char *id)
|
_conf_item_get(const char *id)
|
||||||
{
|
{
|
||||||
Eina_List *l = NULL;
|
Gadget_Config *ci;
|
||||||
Gadget_Config *ci = NULL;
|
|
||||||
char buf[128];
|
GADCON_CLIENT_CONFIG_GET(Gadget_Config, evry_conf->gadgets, _gadcon_class, id);
|
||||||
|
|
||||||
if (!id)
|
|
||||||
{
|
|
||||||
snprintf(buf, sizeof(buf), "%s.%d", _gadcon_class.name, ++uuid);
|
|
||||||
id = buf;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
uuid++;
|
|
||||||
EINA_LIST_FOREACH(evry_conf->gadgets, l, ci)
|
|
||||||
if ((ci->id) && (!strcmp(ci->id, id))) return ci;
|
|
||||||
}
|
|
||||||
ci = E_NEW(Gadget_Config, 1);
|
ci = E_NEW(Gadget_Config, 1);
|
||||||
ci->id = eina_stringshare_add(id);
|
ci->id = eina_stringshare_add(id);
|
||||||
/* ci->plugin = eina_stringshare_add("Start"); */
|
|
||||||
|
|
||||||
evry_conf->gadgets = eina_list_append(evry_conf->gadgets, ci);
|
evry_conf->gadgets = eina_list_append(evry_conf->gadgets, ci);
|
||||||
|
|
||||||
|
@ -203,7 +189,7 @@ _cb_menu_post(void *data, E_Menu *m __UNUSED__)
|
||||||
Instance *inst = data;
|
Instance *inst = data;
|
||||||
|
|
||||||
if (!inst->menu) return;
|
if (!inst->menu) return;
|
||||||
e_object_del(E_OBJECT(inst->menu));
|
/* e_object_del(E_OBJECT(inst->menu)); */
|
||||||
inst->menu = NULL;
|
inst->menu = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue