pidgin.next.minor: 0e7acf32: Remove some win9x specific code.
datallah at pidgin.im
datallah at pidgin.im
Thu Sep 3 23:05:27 EDT 2009
-----------------------------------------------------------------
Revision: 0e7acf32357c38a563c6428eee1e27fbb39caccc
Ancestor: 6abe87c54bf7619b035f56628efc9a97090b1f23
Author: datallah at pidgin.im
Date: 2009-09-04T03:04:33
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/0e7acf32357c38a563c6428eee1e27fbb39caccc
Modified files:
finch/gntsound.c
ChangeLog:
Remove some win9x specific code.
-------------- next part --------------
============================================================
--- finch/gntsound.c 3c6de93cf18e0cd8032777e6621a4235baee653b
+++ finch/gntsound.c 84f925930968ae6a36e2f8099893fda97c7437e7
@@ -559,18 +559,12 @@ finch_sound_play_file(const char *filena
#else /* _WIN32 */
purple_debug_info("sound", "Playing %s\n", filename);
- if (G_WIN32_HAVE_WIDECHAR_API ()) {
+ {
wchar_t *wc_filename = g_utf8_to_utf16(filename,
-1, NULL, NULL, NULL);
if (!PlaySoundW(wc_filename, NULL, SND_ASYNC | SND_FILENAME))
purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n");
g_free(wc_filename);
- } else {
- char *l_filename = g_locale_from_utf8(filename,
- -1, NULL, NULL, NULL);
- if (!PlaySoundA(l_filename, NULL, SND_ASYNC | SND_FILENAME))
- purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n");
- g_free(l_filename);
}
#endif /* _WIN32 */
}
More information about the Commits
mailing list