Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 9704:767a8f0c5740
[gaim-migrate @ 10564]
Gracie
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 07 Aug 2004 22:31:36 +0000 |
parents | 267eab8f3fa4 |
children | d4634f26ef9b |
comparison
equal
deleted
inserted
replaced
9703:1397a4594c4e | 9704:767a8f0c5740 |
---|---|
4957 | 4957 |
4958 g_object_get(G_OBJECT(gtkwin->window), "has-toplevel-focus", &has_focus, NULL); | 4958 g_object_get(G_OBJECT(gtkwin->window), "has-toplevel-focus", &has_focus, NULL); |
4959 | 4959 |
4960 /* Play a sound, if specified in prefs. */ | 4960 /* Play a sound, if specified in prefs. */ |
4961 if (gtkconv->make_sound && !((gaim_conv_window_get_active_conversation(gaimwin) == conv) && | 4961 if (gtkconv->make_sound && !((gaim_conv_window_get_active_conversation(gaimwin) == conv) && |
4962 !gaim_prefs_get_bool("/gaim/gtk/sound/conv_focus") && has_focus)) { | 4962 !gaim_prefs_get_bool("/gaim/gtk/sound/conv_focus") && has_focus) && |
4963 !(flags & GAIM_MESSAGE_DELAYED) && | |
4964 !(flags & GAIM_MESSAGE_SYSTEM)) { | |
4965 | |
4963 if (!(flags & GAIM_MESSAGE_WHISPER) && (flags & GAIM_MESSAGE_SEND)) | 4966 if (!(flags & GAIM_MESSAGE_WHISPER) && (flags & GAIM_MESSAGE_SEND)) |
4964 gaim_sound_play_event(GAIM_SOUND_CHAT_YOU_SAY); | 4967 gaim_sound_play_event(GAIM_SOUND_CHAT_YOU_SAY); |
4965 else if ((flags & GAIM_MESSAGE_RECV) && | 4968 else if (flags & GAIM_MESSAGE_RECV) { |
4966 !(flags & GAIM_MESSAGE_DELAYED) && | |
4967 !(flags & GAIM_MESSAGE_SYSTEM)) { | |
4968 | |
4969 if ((flags & GAIM_MESSAGE_NICK) && | 4969 if ((flags & GAIM_MESSAGE_NICK) && |
4970 gaim_prefs_get_bool("/gaim/gtk/sound/enabled/nick_said")) { | 4970 gaim_prefs_get_bool("/gaim/gtk/sound/enabled/nick_said")) { |
4971 | 4971 |
4972 gaim_sound_play_event(GAIM_SOUND_CHAT_NICK); | 4972 gaim_sound_play_event(GAIM_SOUND_CHAT_NICK); |
4973 } | 4973 } |