changeset 941:0c3bdd59f983

[gaim-migrate @ 951] this shouldn't do anything committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 01 Oct 2000 02:42:54 +0000
parents 9fca1293f871
children e77eb4277d7c
files src/aim.c src/gnome_applet_mgr.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Sun Oct 01 00:20:03 2000 +0000
+++ b/src/aim.c	Sun Oct 01 02:42:54 2000 +0000
@@ -86,9 +86,11 @@
 {
 #ifdef USE_APPLET
 	applet_buddy_show = FALSE;
-	signoff();
+	if (running)
+		serv_close();
 	running = FALSE;
-        gtk_widget_hide(mainwindow);
+	if (mainwindow)
+		gtk_widget_hide(mainwindow);
 #else
 #ifdef GAIM_PLUGINS
 	GList *c;
--- a/src/gnome_applet_mgr.c	Sun Oct 01 00:20:03 2000 +0000
+++ b/src/gnome_applet_mgr.c	Sun Oct 01 02:42:54 2000 +0000
@@ -318,7 +318,8 @@
 		applet_buddy_show = FALSE;
 	  	switch( MRI_user_status ){
 			case offline:
-				gtk_widget_hide(mainwindow);
+				if (mainwindow)
+					gtk_widget_hide(mainwindow);
 				break;
 			case online:
 			case away: