changeset 5121:34a9f0d3fc83

[gaim-migrate @ 5484] David Brigada (jsi) writes: " This patch fixes SF Bug #707077. When a conversation is detatched from a window to form a new window, the conversation loses its ability to play sounds without this patch. With this patch, the original conversation's make_sound preference is preserved." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 13 Apr 2003 14:45:47 +0000
parents 430e16e37887
children 63a45bdef573
files src/gtkconv.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Sun Apr 13 14:11:20 2003 +0000
+++ b/src/gtkconv.c	Sun Apr 13 14:45:47 2003 +0000
@@ -1657,12 +1657,18 @@
 			/* Make a new window to stick this to. */
 			struct gaim_window *new_win;
 			struct gaim_gtk_window *new_gtkwin;
+			struct gaim_gtk_conversation *gtkconv;
 			gint win_width, win_height;
+			gboolean noisy;
+
+			gtkconv = GAIM_GTK_CONVERSATION(conv);
+			noisy = gtkconv->make_sound;
 
 			new_win = gaim_window_new();
-			gaim_window_remove_conversation(win,
-											gaim_conversation_get_index(conv));
-			gaim_window_add_conversation(new_win, conv);
+
+			gaim_window_add_conversation(new_win, gaim_window_remove_conversation(win, gaim_conversation_get_index(conv)));
+
+			gtkconv->make_sound = noisy;
 
 			new_gtkwin = GAIM_GTK_WINDOW(new_win);