# HG changeset patch # User Eric Warmenhoven # Date 1006814001 0 # Node ID 2d3f47783a22f5505580e263b8ea85c3bf0ba84b # Parent 4cfd2c69dd161b4229842f6613a623a3bd83ad96 [gaim-migrate @ 2807] it's really annoying talking to smarterchild with this turned on committer: Tailor Script diff -r 4cfd2c69dd16 -r 2d3f47783a22 src/conversation.c --- 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) { diff -r 4cfd2c69dd16 -r 2d3f47783a22 src/gaim.h --- 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 diff -r 4cfd2c69dd16 -r 2d3f47783a22 src/prefs.c --- 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);