diff src/conversation.c @ 814:a636ac51d15b

[gaim-migrate @ 824] i think i finally fixed the chat problems with oscar. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 31 Aug 2000 21:33:12 +0000
parents 9d61f3d01046
children 4544fe6c492f
line wrap: on
line diff
--- a/src/conversation.c	Thu Aug 31 21:13:54 2000 +0000
+++ b/src/conversation.c	Thu Aug 31 21:33:12 2000 +0000
@@ -350,6 +350,16 @@
 
 int close_callback(GtkWidget *widget, struct conversation *c)
 {
+	if (c->is_chat && (widget == c->close)) {
+		GtkWidget *tmp = c->window;
+		debug_print("chat clicked close button\n");
+		c->window = NULL;
+		gtk_widget_destroy(tmp);
+		return;
+	}
+
+	debug_print("conversation close callback\n");
+
 	if (c->window)
 	        gtk_widget_destroy(c->window);
 	c->window = NULL;