changeset 5607:eeba9205dd0f

[gaim-migrate @ 6011] that win32 stuff has gotten really old committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 31 May 2003 15:49:46 +0000
parents 328dde25685a
children bb8f0a149831
files plugins/autorecon.c plugins/docklet/docklet.c plugins/ticker/ticker.c
diffstat 3 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/autorecon.c	Sat May 31 15:43:38 2003 +0000
+++ b/plugins/autorecon.c	Sat May 31 15:49:46 2003 +0000
@@ -9,8 +9,6 @@
 
 #define AUTORECON_PLUGIN_ID "core-autorecon"
 
-G_MODULE_IMPORT GSList *gaim_accounts;
-
 #define INITIAL 8000
 #define MAXTIME 2048000
 
@@ -22,7 +20,7 @@
 	GaimAccount *account = data;
 	gaim_debug(GAIM_DEBUG_INFO, "autorecon", "do_signon called\n");
 
-	if (g_slist_index(gaim_accounts, account) < 0)
+	if (g_list_index(gaim_accounts_get_all(), account) < 0)
 		return FALSE;
 	gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling gaim_account_connect\n");
 	gaim_account_connect(account);
--- a/plugins/docklet/docklet.c	Sat May 31 15:43:38 2003 +0000
+++ b/plugins/docklet/docklet.c	Sat May 31 15:49:46 2003 +0000
@@ -158,7 +158,7 @@
 		case offline_connecting:
 			break;
 		default:
-			gaim_new_item_from_stock(menu, _("Signoff"), GTK_STOCK_CLOSE, G_CALLBACK(signoff_all), NULL, 0, 0, 0);
+			gaim_new_item_from_stock(menu, _("Signoff"), GTK_STOCK_CLOSE, G_CALLBACK(gaim_connections_disconnect_all), NULL, 0, 0, 0);
 			break;
 	}
 
--- a/plugins/ticker/ticker.c	Sat May 31 15:43:38 2003 +0000
+++ b/plugins/ticker/ticker.c	Sat May 31 15:49:46 2003 +0000
@@ -50,9 +50,6 @@
 
 GList *tickerbuds = NULL;
 
-/* for win32 compatability */
-G_MODULE_IMPORT GSList *connections;
-
 static gboolean buddy_ticker_destroy_window(GtkWidget *window,
 		GdkEventAny *event, gpointer data) {
 	if(window)
@@ -196,7 +193,7 @@
 }
 
 void signoff_cb(GaimConnection *gc) {
-	if (!connections) {
+	if (!gaim_connections_get_all()) {
 		while(tickerbuds) {
 			g_free(tickerbuds->data);
 			tickerbuds = g_list_delete_link(tickerbuds, tickerbuds);
@@ -246,7 +243,7 @@
 	gaim_signal_connect(plugin, event_buddy_away, away_cb, NULL);
 	gaim_signal_connect(plugin, event_buddy_back, away_cb, NULL);
 
-	if (connections)
+	if (gaim_connections_get_all())
 		buddy_ticker_show();
 
 	return TRUE;