3 * Teleport event management
7 * Copyright : (C) 2007 by Diogo Ferreira <diogo@underdev.org>
8 * (C) 2007 by João Oliveirinha <joliveirinha@floodbit.org>
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 3
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 #include "teleport-private.h"
26 static GMainLoop
*teleportMainLoop
= NULL
;
28 void teleport_trigger_query_update (GSList
* data
)
30 g_idle_add(_gui_update_list
,(gpointer
)data
);
32 /* TODO: add the items to a global list, so we can free them later on */
35 gboolean
teleport_init_main_loop(void)
37 teleportMainLoop
= g_main_loop_new (NULL
, FALSE
);
39 g_main_loop_run (teleportMainLoop
);
42 gboolean
teleport_fini_main_loop(void)
44 g_main_quit (teleportMainLoop
);