changeset 4376:2c985a9e994c

[gaim-migrate @ 4642] The conversations list is no longer public, and shouldn't have been in aim.c. This should fix some crashes that may have resulted in the notify and timestamp plugins. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 21 Jan 2003 05:20:10 +0000
parents 90eaa3486949
children 0ffdb9b6a5e9
files plugins/notify.c plugins/timestamp.c src/aim.c src/gaim.h
diffstat 4 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/notify.c	Tue Jan 21 05:12:53 2003 +0000
+++ b/plugins/notify.c	Tue Jan 21 05:20:10 2003 +0000
@@ -508,7 +508,7 @@
 }
 
 void apply_options(GtkWidget *widget, gpointer data) {
-	GList *cnv = conversations;
+	GList *cnv = gaim_get_conversations();
 
 	while (cnv) {
 		guint notification;
--- a/plugins/timestamp.c	Tue Jan 21 05:12:53 2003 +0000
+++ b/plugins/timestamp.c	Tue Jan 21 05:20:10 2003 +0000
@@ -26,7 +26,7 @@
 	char mdate[6];
 	time_t tim = time(NULL);
 	
-	if (!g_list_find(conversations, c))
+	if (!g_list_find(gaim_get_conversations(), c))
 		return FALSE;
 
 	strftime(mdate, sizeof(mdate), "%H:%M", localtime(&tim));
@@ -99,7 +99,7 @@
 
 
 char *gaim_plugin_init(GModule *h) {
-	GList *cnvs = conversations;
+	GList *cnvs = gaim_get_conversations();
 	struct gaim_conversation *c;
 	handle = h;
 
--- a/src/aim.c	Tue Jan 21 05:12:53 2003 +0000
+++ b/src/aim.c	Tue Jan 21 05:20:10 2003 +0000
@@ -65,7 +65,6 @@
 GList *log_conversations = NULL;
 GList *buddy_pounces = NULL;
 GSList *away_messages = NULL;
-GList *conversations = NULL;
 GSList *message_queue = NULL;
 GSList *unread_message_queue = NULL;
 GSList *away_time_queue = NULL;
--- a/src/gaim.h	Tue Jan 21 05:12:53 2003 +0000
+++ b/src/gaim.h	Tue Jan 21 05:20:10 2003 +0000
@@ -200,7 +200,6 @@
 
 /* Globals in aim.c */
 extern GList *buddy_pounces;
-extern GList *conversations;
 extern int opt_away;
 extern char *opt_away_arg;
 extern char *opt_rcfile_arg;