static void engy_resize(Ecore_Evas * ee) { Evas_Coord w, h; if (!shell->evas) return; evas_output_viewport_get(shell->evas, NULL, NULL, &w, &h); shell->w = (int)w; shell->h = (int)h; evas_object_resize(shell->o_bg, shell->w, shell->h); cl_configure(w,h); log_configure(); info_configure(); panel_configure(); gui_put_string(DUP("_zoom_in|_zoom_out")); }
int main(int ac, char *av[]) { WORD version = MAKEWORD(2, 0) ; WSADATA wsaData ; /* * check 1st option */ if (ac >= 2) { if (strcmp(av[1], "-service") == 0) { serviceRun(ac, av) ; return 0 ; } if (strcmp(av[1], "-install") == 0) { serviceInstall(ac, av) ; return 0 ; } if (strcmp(av[1], "-remove") == 0) { serviceRemove(ac, av) ; return 0 ; } } /* * otherwise run as normal application */ if (config_load(ac, av) != TRUE) { printf("cannot load configration\n") ; return 1 ; } log_configure(ac, av) ; if (WSAStartup(version, &wsaData) != 0) { printf("cannot startup WinSock\n") ; return FALSE ; } if (server_init(ac, av) != TRUE) { printf("cannot initialize server\n") ; WSACleanup() ; return 1 ; } signal(SIGINT, handler) ; signal(SIGTERM, handler) ; signal(SIGBREAK, handler) ; printf("Service Started\n") ; server_loop() ; printf("Service Termiating...\n") ; server_done() ; printf("Service Terminated\n") ; WSACleanup() ; log_terminate() ; return 0 ; }