diff audacious/prefswin.c @ 2019:d3a62e1075e2 trunk

[svn] Allow \ to / conversion to be switched on & off, by external contributor Chris Kehler <cbkehler@sympatico.ca>.
author chainsaw
date Wed, 29 Nov 2006 12:45:02 -0800
parents 9fd04055d6cc
children 0b0a12ea9dd9
line wrap: on
line diff
--- a/audacious/prefswin.c	Tue Nov 28 12:06:18 2006 -0800
+++ b/audacious/prefswin.c	Wed Nov 29 12:45:02 2006 -0800
@@ -1588,6 +1588,18 @@
     cfg.convert_twenty = gtk_toggle_button_get_active(button);
 }
 
+static void
+on_playlist_convert_slash_realize(GtkToggleButton * button, gpointer data)
+{
+    gtk_toggle_button_set_active(button, cfg.convert_slash);
+}
+
+static void
+on_playlist_convert_slash_toggled(GtkToggleButton * button, gpointer data)
+{
+    cfg.convert_slash = gtk_toggle_button_get_active(button);
+}
+
 #if 0
 static void
 on_playlist_update_clicked(GtkButton * button,
@@ -2169,6 +2181,8 @@
     FUNC_MAP_ENTRY(on_playlist_convert_twenty_toggled)
     FUNC_MAP_ENTRY(on_playlist_convert_underscore_realize)
     FUNC_MAP_ENTRY(on_playlist_convert_underscore_toggled)
+    FUNC_MAP_ENTRY(on_playlist_convert_slash_realize)
+    FUNC_MAP_ENTRY(on_playlist_convert_slash_toggled)
     FUNC_MAP_ENTRY(on_playlist_font_button_realize)
     FUNC_MAP_ENTRY(on_playlist_font_button_font_set)
     FUNC_MAP_ENTRY(on_playlist_no_advance_realize)