void on_quit () { stop_web_server(); stop_ccnet (); if (applet->icon) trayicon_delete_icon(applet->icon); }
/* Kill ccnet/seaf/web, and restart them. */ void restart_all (void) { trayicon_set_tip ("Seafile"); applet_message ("Restarting ccnet ...\n"); stop_open_browser_timer(); stop_web_server(); if (applet->client->connected) { stop_ccnet(); } spawn_ccnet_daemon(); start_conn_daemon_timer (1000, NULL); }
void on_quit () { stop_ccnet (); stop_web_server (); gtk_main_quit (); }