# HG changeset patch # User nenolod # Date 1165977575 28800 # Node ID 27e0fe4de57e6c389c54256a55e9c53f25d0f467 # Parent 02f39b64f36bbcd5c0bd8c6de82053098a91cde1 [svn] - preferences pane option for extension-based detection diff -r 02f39b64f36b -r 27e0fe4de57e ChangeLog --- a/ChangeLog Tue Dec 12 18:32:05 2006 -0800 +++ b/ChangeLog Tue Dec 12 18:39:35 2006 -0800 @@ -1,3 +1,13 @@ +2006-12-13 02:32:05 +0000 William Pitcock + revision [3221] + - add support for new extension probing system + + trunk/audacious/input.c | 53 ++++++++++++++++++++++++++++++++++++------------ + trunk/audacious/main.c | 2 + + trunk/audacious/main.h | 1 + 3 files changed, 43 insertions(+), 13 deletions(-) + + 2006-12-13 02:22:17 +0000 William Pitcock revision [3219] - add gchar **vfs_extensions to InputPlugin struct, adding support for diff -r 02f39b64f36b -r 27e0fe4de57e audacious/glade/prefswin.glade --- a/audacious/glade/prefswin.glade Tue Dec 12 18:32:05 2006 -0800 +++ b/audacious/glade/prefswin.glade Tue Dec 12 18:39:35 2006 -0800 @@ -3495,34 +3495,6 @@ - - True - Buffer size: - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 1 - 2 - - - - - - True True @@ -3546,25 +3518,6 @@ - - True - gtk-info - 4 - 1 - 0 - 0 - 0 - - - 0 - 1 - 2 - 3 - - - - - True <span size="small">This is the amount of time to prebuffer audio streams by, in milliseconds. @@ -3593,6 +3546,52 @@ + + + + True + Buffer size: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + 1 + 1 + 2 + + + + + + + True + gtk-info + 4 + 1 + 0 + 0 + 0 + + + 0 + 1 + 2 + 3 + fill + + 0 @@ -3863,6 +3862,42 @@ + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + When checked, Audacious will detect file formats based by extension. This is slightly slower than detection on demand, but still provides a minimal level of format detection. + True + Detect file formats by extension. + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + + + + 0 + False + False + + + + True 0.5 diff -r 02f39b64f36b -r 27e0fe4de57e audacious/prefswin.c --- a/audacious/prefswin.c Tue Dec 12 18:32:05 2006 -0800 +++ b/audacious/prefswin.c Tue Dec 12 18:39:35 2006 -0800 @@ -1003,6 +1003,20 @@ gtk_toggle_button_set_active(button, cfg.playlist_detect); } +static void +on_detect_by_extension_cb_toggled(GtkToggleButton * button, + gpointer data) +{ + cfg.use_extension_probing = gtk_toggle_button_get_active(button); +} + +static void +on_detect_by_extension_cb_realize(GtkToggleButton * button, + gpointer data) +{ + gtk_toggle_button_set_active(button, cfg.use_extension_probing); +} + /* proxy */ static void on_proxy_use_realize(GtkToggleButton * button, @@ -2215,6 +2229,8 @@ FUNC_MAP_ENTRY(on_output_plugin_bufsize_value_changed) FUNC_MAP_ENTRY(on_audio_format_det_cb_toggled) FUNC_MAP_ENTRY(on_audio_format_det_cb_realize) + FUNC_MAP_ENTRY(on_detect_by_extension_cb_toggled) + FUNC_MAP_ENTRY(on_detect_by_extension_cb_realize) FUNC_MAP_ENTRY(on_show_filepopup_for_tuple_realize) FUNC_MAP_ENTRY(on_show_filepopup_for_tuple_toggled) FUNC_MAP_ENTRY(on_filepopup_for_tuple_settings_clicked)