Mercurial > audlegacy
comparison src/audacious/ui_fileinfopopup.c @ 4090:4d4691fdebe1
fix a bug which prevents fileinfopopup from showing non-latin file name correctly when tuple is not available.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Mon, 17 Dec 2007 22:02:52 +0900 |
parents | e794ae16017e |
children | 1e8498de4acc |
comparison
equal
deleted
inserted
replaced
4089:9e24c8746d99 | 4090:4d4691fdebe1 |
---|---|
371 else | 371 else |
372 { | 372 { |
373 /* display filename if track_name is not available */ | 373 /* display filename if track_name is not available */ |
374 gchar *markup = | 374 gchar *markup = |
375 g_markup_printf_escaped("<span style=\"italic\">%s</span>", _("Filename")); | 375 g_markup_printf_escaped("<span style=\"italic\">%s</span>", _("Filename")); |
376 gchar *utf_filename = filename_to_utf8(tuple_get_string(tuple, FIELD_FILE_NAME, NULL)); | |
377 gtk_label_set_markup(GTK_LABEL(g_object_get_data(G_OBJECT(filepopup_win), "header_title")), markup); | 376 gtk_label_set_markup(GTK_LABEL(g_object_get_data(G_OBJECT(filepopup_win), "header_title")), markup); |
378 g_free(markup); | 377 g_free(markup); |
379 filepopup_entry_set_text(filepopup_win, "label_title", utf_filename); | 378 filepopup_entry_set_text(filepopup_win, "label_title", tuple_get_string(tuple, FIELD_FILE_NAME, NULL)); |
380 g_free(utf_filename); | |
381 } | 379 } |
382 | 380 |
383 fileinfopupup_update_data(filepopup_win, tuple_get_string(tuple, FIELD_ARTIST, NULL), | 381 fileinfopupup_update_data(filepopup_win, tuple_get_string(tuple, FIELD_ARTIST, NULL), |
384 "label_artist", "header_artist"); | 382 "label_artist", "header_artist"); |
385 fileinfopupup_update_data(filepopup_win, tuple_get_string(tuple, FIELD_ALBUM, NULL), | 383 fileinfopupup_update_data(filepopup_win, tuple_get_string(tuple, FIELD_ALBUM, NULL), |