changeset 2794:2d3f47783a22

[gaim-migrate @ 2807] it's really annoying talking to smarterchild with this turned on committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 26 Nov 2001 22:33:21 +0000
parents 4cfd2c69dd16
children 536bb833fdeb
files src/conversation.c src/gaim.h src/prefs.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Mon Nov 26 21:55:53 2001 +0000
+++ b/src/conversation.c	Mon Nov 26 22:33:21 2001 +0000
@@ -906,6 +906,9 @@
 
 			if (c->makesound && (sound_options & OPT_SOUND_SEND))
 				play_sound(SEND);
+
+			if (im_options & OPT_IM_POPDOWN)
+				gtk_widget_hide(c->window);
 		}
 	} else {
 		err = serv_chat_send(c->gc, c->id, buf);
@@ -1355,6 +1358,8 @@
 	if (!c->is_chat && !g_list_find(conversations, c))
 		return;
 
+	gtk_widget_show(c->window);
+
 	if (!c->is_chat || !(c->gc->prpl->options & OPT_PROTO_UNIQUE_CHATNAME)) {
 		if (!who) {
 			if (flags & WFLAG_SEND) {
--- a/src/gaim.h	Mon Nov 26 21:55:53 2001 +0000
+++ b/src/gaim.h	Mon Nov 26 22:33:21 2001 +0000
@@ -243,6 +243,7 @@
 #define OPT_IM_BR_TAB			0x00000040
 #define OPT_IM_HIDE_ICONS		0x00000080
 #define OPT_IM_ALIAS_TAB		0x00002000
+#define OPT_IM_POPDOWN			0x00004000
 
 extern guint chat_options;
 #define OPT_CHAT_ONE_WINDOW		0x00000001
--- a/src/prefs.c	Mon Nov 26 21:55:53 2001 +0000
+++ b/src/prefs.c	Mon Nov 26 22:33:21 2001 +0000
@@ -907,6 +907,7 @@
 	gaim_button(_("Raise windows on events"), &im_options, OPT_IM_POPUP, vbox2);
 	gaim_button(_("Show logins in window"), &im_options, OPT_IM_LOGON, vbox2);
 	gaim_button(_("Show aliases in tabs"), &im_options, OPT_IM_ALIAS_TAB, vbox2);
+	gaim_button(_("Hide window on send"), &im_options, OPT_IM_POPDOWN, vbox2);
 
 	frame = gtk_frame_new(_("Window Sizes"));
 	gtk_box_pack_start(GTK_BOX(box), frame, FALSE, FALSE, 5);