Mercurial > audlegacy
diff audacious/prefswin.c @ 1056:21628529c615 trunk
[svn] add the config option to enable/disable separator line in the playlist
author | yaz |
---|---|
date | Mon, 15 May 2006 08:17:53 -0700 |
parents | e42ce60c308f |
children | 6e7d0b545473 |
line wrap: on
line diff
--- a/audacious/prefswin.c Mon May 15 07:47:01 2006 -0700 +++ b/audacious/prefswin.c Mon May 15 08:17:53 2006 -0700 @@ -936,6 +936,22 @@ } static void +on_playlist_show_pl_separator_realize(GtkToggleButton * button, + gpointer data) +{ + gtk_toggle_button_set_active(button, cfg.show_separator_in_pl); +} + +static void +on_playlist_show_pl_separator_toggled(GtkToggleButton * button, + gpointer data) +{ + cfg.show_separator_in_pl = gtk_toggle_button_get_active(button); + playlistwin_update_list(); + draw_playlist_window(TRUE); +} + +static void input_plugin_enable_prefs(GtkTreeView * treeview, GtkButton * button) { @@ -1678,6 +1694,8 @@ FUNC_MAP_ENTRY(on_pl_metadata_on_display_toggled) FUNC_MAP_ENTRY(on_playlist_show_pl_numbers_realize) FUNC_MAP_ENTRY(on_playlist_show_pl_numbers_toggled) + FUNC_MAP_ENTRY(on_playlist_show_pl_separator_realize) + FUNC_MAP_ENTRY(on_playlist_show_pl_separator_toggled) FUNC_MAP_ENTRY(on_playlist_convert_twenty_realize) FUNC_MAP_ENTRY(on_playlist_convert_twenty_toggled) FUNC_MAP_ENTRY(on_playlist_convert_underscore_realize)