static void
_gc_shutdown(E_Gadcon_Client *gcc)
{
    Instance *inst;

    inst = gcc->data;

    exalt_config->instances = evas_list_remove(exalt_config->instances, inst);

    if (exalt_config->menu)
    {
        e_menu_post_deactivate_callback_set(exalt_config->menu, NULL, NULL);
        e_menu_pre_activate_callback_set(exalt_config->menu, NULL, NULL);
        e_object_del(E_OBJECT(exalt_config->menu));
        exalt_config->menu = NULL;
    }

    if (inst->o_button)
    {
        evas_object_event_callback_del(inst->o_button, EVAS_CALLBACK_MOUSE_DOWN,
                _cb_mouse_down);

        evas_object_del(inst->o_button);
    }

    exalt_dbus_notify_set( exalt_config->conn, NULL, NULL);
    E_FREE(inst);
}
Exemple #2
0
void
e_entry_free(E_Entry *entry)
{
   entries = evas_list_remove(entries, entry);
   e_entry_unrealize(entry);
   IF_FREE(entry->buffer);
   FREE(entry);
}
/*
 * @brief remove a interface in the list
 * @param l the list of interface
 * @param eth the interface
 */
void waiting_iface_done(Boot_Process_List* l,const Exalt_Ethernet* eth)
{
    int find = 0;
    Evas_List *elt;
    Boot_Process_Elt *data;

    EXALT_ASSERT_RETURN_VOID(l!=NULL);

    elt = l->l;

    while(!find && elt)
    {
        data = evas_list_data(elt);
        if(data->interface && strcmp(exalt_eth_get_name(eth),data->interface) == 0)
            find = 1;
        else
            elt = evas_list_next(elt);
    }
    if(!find)
        //the iface is not in the list
        return ;

    l->l = evas_list_remove(l->l,evas_list_data(elt));
}
Exemple #4
0
void midi_delete(void *data){
	midi_t * midibinding;
	midibinding = (live_plugin_state_t *)evas_list_nth(live_plugin->midi_data, (int)data-1);
	live_plugin->midi_data = evas_list_remove(live_plugin->midi_data, midibinding);
}