comparison pidgin/gtksound.c @ 29493:224f9674a57e

Remove some win9x specific code.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 04 Sep 2009 02:57:26 +0000
parents 527836da73d1
children 6e9917e067e6
comparison
equal deleted inserted replaced
29492:4e13885b1a6a 29493:224f9674a57e
535 #ifndef _WIN32 535 #ifndef _WIN32
536 gdk_beep(); 536 gdk_beep();
537 #else /* _WIN32 */ 537 #else /* _WIN32 */
538 purple_debug_info("sound", "Playing %s\n", filename); 538 purple_debug_info("sound", "Playing %s\n", filename);
539 539
540 if (G_WIN32_HAVE_WIDECHAR_API ()) { 540 {
541 wchar_t *wc_filename = g_utf8_to_utf16(filename, 541 wchar_t *wc_filename = g_utf8_to_utf16(filename,
542 -1, NULL, NULL, NULL); 542 -1, NULL, NULL, NULL);
543 if (!PlaySoundW(wc_filename, NULL, SND_ASYNC | SND_FILENAME)) 543 if (!PlaySoundW(wc_filename, NULL, SND_ASYNC | SND_FILENAME))
544 purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n"); 544 purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n");
545 g_free(wc_filename); 545 g_free(wc_filename);
546 } else {
547 char *l_filename = g_locale_from_utf8(filename,
548 -1, NULL, NULL, NULL);
549 if (!PlaySoundA(l_filename, NULL, SND_ASYNC | SND_FILENAME))
550 purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n");
551 g_free(l_filename);
552 } 546 }
553 #endif /* _WIN32 */ 547 #endif /* _WIN32 */
554 548
555 #endif /* USE_GSTREAMER */ 549 #endif /* USE_GSTREAMER */
556 } 550 }