Mercurial > pidgin
comparison src/gtksound.c @ 11687:941aa045f9f6
[gaim-migrate @ 13973]
sadrul fixed sounds for focused conversations, or something. All I know is, I have my sounds back, so major points for him.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 17 Oct 2005 21:12:56 +0000 |
parents | 58bc500cf226 |
children | 4d3119205a33 |
comparison
equal
deleted
inserted
replaced
11686:0914f135760a | 11687:941aa045f9f6 |
---|---|
126 win = gtkconv->win; | 126 win = gtkconv->win; |
127 | 127 |
128 has_focus = gaim_conversation_has_focus(conv); | 128 has_focus = gaim_conversation_has_focus(conv); |
129 | 129 |
130 if (!gtkconv->make_sound || | 130 if (!gtkconv->make_sound || |
131 (gaim_gtk_conv_window_get_active_conversation(win) == conv) || | 131 (has_focus && !gaim_prefs_get_bool("/gaim/gtk/sound/conv_focus"))) |
132 (gaim_prefs_get_bool("/gaim/gtk/sound/conv_focus") && has_focus)) | |
133 { | 132 { |
134 return; | 133 return; |
135 } | 134 } |
136 } | 135 } |
137 | 136 |