diff options
Diffstat (limited to 'finch')
-rw-r--r-- | finch/gntsound.c | 8 | ||||
-rw-r--r-- | finch/libgnt/configure.ac | 6 |
2 files changed, 4 insertions, 10 deletions
diff --git a/finch/gntsound.c b/finch/gntsound.c index f38c835711..4256626254 100644 --- a/finch/gntsound.c +++ b/finch/gntsound.c @@ -559,18 +559,12 @@ finch_sound_play_file(const char *filename) #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 */ } diff --git a/finch/libgnt/configure.ac b/finch/libgnt/configure.ac index 0577b3d4a5..e62a8dded9 100644 --- a/finch/libgnt/configure.ac +++ b/finch/libgnt/configure.ac @@ -24,10 +24,10 @@ AC_PREREQ([2.50]) # Make sure to update ../../configure.ac with libgnt version changes. # -m4_define([gnt_lt_current], [6]) +m4_define([gnt_lt_current], [7]) m4_define([gnt_major_version], [2]) -m4_define([gnt_minor_version], [6]) -m4_define([gnt_micro_version], [2]) +m4_define([gnt_minor_version], [7]) +m4_define([gnt_micro_version], [0]) m4_define([gnt_version_suffix], [devel]) m4_define([gnt_version], [gnt_major_version.gnt_minor_version.gnt_micro_version]) |