Mercurial > audlegacy-plugins
changeset 2181:bbb631ab78e9
started initial (very humble) efforts on making FileWriter a general
plugin
author | mf0102 <0102@gmx.at> |
---|---|
date | Wed, 21 Nov 2007 17:02:26 +0100 |
parents | f629e0c90f18 |
children | cc5e9ec110a4 |
files | src/filewriter/filewriter.c |
diffstat | 1 files changed, 14 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filewriter/filewriter.c Wed Nov 21 16:10:58 2007 +0100 +++ b/src/filewriter/filewriter.c Wed Nov 21 17:02:26 2007 +0100 @@ -33,31 +33,31 @@ enum fileext_t { - WAV = 0, + WAV = 0, #ifdef FILEWRITER_MP3 - MP3, + MP3, #endif #ifdef FILEWRITER_VORBIS - VORBIS, + VORBIS, #endif #ifdef FILEWRITER_FLAC - FLAC, + FLAC, #endif - FILEEXT_MAX + FILEEXT_MAX }; static gint fileext = WAV; static gchar *fileext_str[] = { - "wav", + "wav", #ifdef FILEWRITER_MP3 - "mp3", + "mp3", #endif #ifdef FILEWRITER_VORBIS - "ogg", + "ogg", #endif #ifdef FILEWRITER_FLAC - "flac" + "flac" #endif }; @@ -135,6 +135,11 @@ static void file_init(void) { ConfigDb *db; + GtkWidget *menu_root; + + /*menu_root = gtk_menu_item_new_with_label(_("FileWriter")); + gtk_widget_show(menu_root); + audacious_menu_plugin_item_add(AUDACIOUS_MENU_PLAYLIST_RCLICK, menu_root);*/ db = aud_cfg_db_open(); aud_cfg_db_get_int(db, "filewriter", "fileext", &fileext);