comparison src/idle.c @ 6485:70d5122bc3ff

[gaim-migrate @ 6999] Removed the old event system and replaced it with a much better signal system. There will most likely be some bugs in this, but it seems to be working for now. Plugins can now generate their own signals, and other plugins can find those plugins and connect to them. This could give plugins a form of IPC. It's also useful for other things. It's rather flexible, except for the damn marshalling, but there's no way around that that I or the glib people can see. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 18 Aug 2003 01:03:43 +0000
parents 8f94cce8faa5
children 643cbc9a6035
comparison
equal deleted inserted replaced
6484:5ced8e111473 6485:70d5122bc3ff
35 #include "debug.h" 35 #include "debug.h"
36 #include "log.h" 36 #include "log.h"
37 #include "multi.h" 37 #include "multi.h"
38 #include "prefs.h" 38 #include "prefs.h"
39 #include "prpl.h" 39 #include "prpl.h"
40 #include "signals.h"
40 41
41 #include "ui.h" 42 #include "ui.h"
42 43
43 #include "gtkprefs.h" 44 #include "gtkprefs.h"
44 45
60 #endif 61 #endif
61 int idle_time; 62 int idle_time;
62 63
63 account = gaim_connection_get_account(gc); 64 account = gaim_connection_get_account(gc);
64 65
65 gaim_event_broadcast(event_blist_update); 66 gaim_signal_emit(gaim_blist_get_handle(), "update-idle");
66 67
67 time(&t); 68 time(&t);
68 69
69 report_idle = gaim_prefs_get_string("/gaim/gtk/idle/reporting_method"); 70 report_idle = gaim_prefs_get_string("/gaim/gtk/idle/reporting_method");
70 71