/** * Module specific face freeing. * * It is called when a face is freed. * * @param data the pointer you passed to e_gadget_new(). * @param face a pointer to your E_Gadget_Face. * @ingroup Emu_Module_Gadget_Group */ static void _gc_shutdown(E_Gadcon_Client *gcc) { Emu_Face *emu_face; emu_face = gcc->data; if (emu_face) { eina_hash_foreach(emu_face->menus, _emu_menus_hash_cb_free, NULL); eina_hash_free(emu_face->menus); emu_face->menus = NULL; if (emu_face->read) ecore_event_handler_del(emu_face->read); if (emu_face->add) ecore_event_handler_del(emu_face->add); if (emu_face->del) ecore_event_handler_del(emu_face->del); if (emu_face->exe) ecore_exe_terminate(emu_face->exe); if (emu_face->command) eina_stringshare_del(emu_face->command); evas_object_del(emu_face->o_button); E_FREE(emu_face); } }
static void _signal_cb(int sig) { fprintf(stderr, PACKAGE": signal %d received\n", sig); //FIXME if I don't have main loop at this time ? if (_elsa_client) ecore_exe_terminate(_elsa_client); /* elsa_session_shutdown(); elsa_xserver_shutdown(); exit(1); */ }
static void _signal_cb(int sig) { char buf[1024]; snprintf(buf, sizeof(buf), "signal %d received\n", sig); PT(buf); //FIXME if I don't have main loop at this time ? if (_entrance_client) ecore_exe_terminate(_entrance_client); /* entrance_session_shutdown(); entrance_xserver_shutdown(); exit(1); */ }
void _wkb_ibus_disconnect_free(void *data, void *func_data) { DBG("Finishing Eldbus Connection"); eldbus_connection_unref(wkb_ibus->conn); wkb_ibus->conn = NULL; if (wkb_ibus->ibus_daemon) { DBG("Terminating ibus-daemon"); ecore_exe_terminate(wkb_ibus->ibus_daemon); ecore_exe_free(wkb_ibus->ibus_daemon); wkb_ibus->ibus_daemon = NULL; } if (wkb_ibus->shutting_down) _wkb_ibus_shutdown_finish(); }
EAPI void e_init_hide(void) { if (init_exe) ecore_exe_terminate(init_exe); }