comparison plugins/timestamp.c @ 4168:ebfb80bbe1ed

[gaim-migrate @ 4397] (00:16:51) faceprint: apply my g-signal patch too! </whine> (00:17:02) ChipX86: the what? (00:17:20) faceprint: sorry (00:17:23) faceprint: g-timeout, rather (00:17:28) ChipX86: ah good (00:17:33) faceprint: http://faceprint.com/code/gaim/g-timeout.20030101.1301.diff (00:17:33) ChipX86: yes, APPLY THAT (00:17:38) ChipX86: I need that (00:17:40) LSchiere: one at a time (00:17:51) faceprint: ChipX86: you need that? (00:17:56) ChipX86: for the conversation rewrite (00:17:59) faceprint: ahh (00:18:08) faceprint: it also fixes a memleak for msn users committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 02 Jan 2003 05:20:55 +0000
parents 74d27aa5b686
children 511c2b63caa4
comparison
equal deleted inserted replaced
4167:7002b6f16bdf 4168:ebfb80bbe1ed
29 29
30 void timestamp_new_convo(char *name) 30 void timestamp_new_convo(char *name)
31 { 31 {
32 struct conversation *c = find_conversation(name); 32 struct conversation *c = find_conversation(name);
33 do_timestamp(c); 33 do_timestamp(c);
34 34
35 timestamp_timeouts = g_slist_append(timestamp_timeouts, 35 timestamp_timeouts = g_slist_append(timestamp_timeouts,
36 GINT_TO_POINTER(gtk_timeout_add(TIMESTAMP_DELAY, 36 GINT_TO_POINTER(g_timeout_add(TIMESTAMP_DELAY, do_timestamp, c)));
37 (GtkFunction)do_timestamp, c)));
38 37
39 } 38 }
40 char *gaim_plugin_init(GModule *h) { 39 char *gaim_plugin_init(GModule *h) {
41 GList *cnvs = conversations; 40 GList *cnvs = conversations;
42 struct conversation *c; 41 struct conversation *c;
54 53
55 void gaim_plugin_remove() { 54 void gaim_plugin_remove() {
56 GSList *to; 55 GSList *to;
57 to = timestamp_timeouts; 56 to = timestamp_timeouts;
58 while (to) { 57 while (to) {
59 gtk_timeout_remove(GPOINTER_TO_INT(to->data)); 58 g_source_remove(GPOINTER_TO_INT(to->data));
60 to = to->next; 59 to = to->next;
61 } 60 }
62 g_slist_free(timestamp_timeouts); 61 g_slist_free(timestamp_timeouts);
63 } 62 }
64 63