viking

webkit based web browser for Enlightenment
Log | Files | Refs | LICENSE

commit 3ad1f7a60c2f4a8fda16b4343ede3c03d5a424e0
parent 9b7ae6d7220c6e86f5bda1009e0a5ba5f80bce75
Author: Kyle Milz <kmilz@ucalgary.ca>
Date:   Sat,  6 Oct 2012 15:51:07 -0600

get rid of some old commented code

Diffstat:
Msrc/main.c | 34+---------------------------------
1 file changed, 1 insertion(+), 33 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -260,50 +260,18 @@ static Searchengine searchengines[] = { { "dd", "https://duckduckgo.com/html/?q=%s&t=Vimprobable" }, }; -/* -static Eina_Bool -fd_handler_cb(void *data, Ecore_Fd_Handler *handler) -{ - printf("fd_handler()\n"); - return EINA_TRUE; -} -*/ - EAPI_MAIN int elm_main(int argc, char *argv[]) { App_Data *ad; - // Buffer_Data *bd; - // char path[PATH_MAX]; - // int dirlen; - - /* - dirlen = snprintf(path, sizeof(path), "%s/viking/lockfile", efreet_config_home_get()); - if (dirlen >= sizeof(path)) - printf("Path is too long: %s/viking/lockfile\n", efreet_config_home_get()); - - if (ecore_file_exists(path)) { - printf("lockfile detectd, exiting.\n"); - return -1; - } - */ - /* if (!elm_need_web()) return -1; - */ - ewk_init(); /* calloc zeros the memory!! */ ad = calloc(1, sizeof(App_Data)); if (!ad) return -1; - /* - int fd = creat(path, 0); - ecore_main_fd_handler_file_add(fd, ECORE_FD_ERROR, fd_handler_cb, ad, NULL, NULL); - - */ - ad->ewk_context = ewk_context_default_get(); ad->cookie_manager = ewk_context_cookie_manager_get(ad->ewk_context); @@ -361,7 +329,7 @@ elm_main(int argc, char *argv[]) free(ad->modkeys); free(ad); - ewk_shutdown(); + elm_shutdown(); viking_state_shutdown(); return 0;