Mercurial > pidgin
comparison src/gtkconv.c @ 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 | c081a81ee013 |
children | 9f40039a027f |
comparison
equal
deleted
inserted
replaced
5120:430e16e37887 | 5121:34a9f0d3fc83 |
---|---|
1655 | 1655 |
1656 if (gaim_window_get_conversation_count(win) > 1) { | 1656 if (gaim_window_get_conversation_count(win) > 1) { |
1657 /* Make a new window to stick this to. */ | 1657 /* Make a new window to stick this to. */ |
1658 struct gaim_window *new_win; | 1658 struct gaim_window *new_win; |
1659 struct gaim_gtk_window *new_gtkwin; | 1659 struct gaim_gtk_window *new_gtkwin; |
1660 struct gaim_gtk_conversation *gtkconv; | |
1660 gint win_width, win_height; | 1661 gint win_width, win_height; |
1662 gboolean noisy; | |
1663 | |
1664 gtkconv = GAIM_GTK_CONVERSATION(conv); | |
1665 noisy = gtkconv->make_sound; | |
1661 | 1666 |
1662 new_win = gaim_window_new(); | 1667 new_win = gaim_window_new(); |
1663 gaim_window_remove_conversation(win, | 1668 |
1664 gaim_conversation_get_index(conv)); | 1669 gaim_window_add_conversation(new_win, gaim_window_remove_conversation(win, gaim_conversation_get_index(conv))); |
1665 gaim_window_add_conversation(new_win, conv); | 1670 |
1671 gtkconv->make_sound = noisy; | |
1666 | 1672 |
1667 new_gtkwin = GAIM_GTK_WINDOW(new_win); | 1673 new_gtkwin = GAIM_GTK_WINDOW(new_win); |
1668 | 1674 |
1669 gtk_window_get_size(GTK_WINDOW(new_gtkwin->window), | 1675 gtk_window_get_size(GTK_WINDOW(new_gtkwin->window), |
1670 &win_width, &win_height); | 1676 &win_width, &win_height); |