Ejemplo n.º 1
0
void
on_quit ()
{
    stop_web_server();
    stop_ccnet ();
    if (applet->icon)
        trayicon_delete_icon(applet->icon);
}
Ejemplo n.º 2
0
/* 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);
}
Ejemplo n.º 3
0
void on_quit ()
{
    stop_ccnet ();
    stop_web_server ();
    gtk_main_quit ();
}