# HG changeset patch # User mf0102 <0102@gmx.at> # Date 1195660946 -3600 # Node ID bbb631ab78e95c844ceab042ccd321e30adfea86 # Parent f629e0c90f1818d773156ab8f3e16bfc1011b246 started initial (very humble) efforts on making FileWriter a general plugin diff -r f629e0c90f18 -r bbb631ab78e9 src/filewriter/filewriter.c --- 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);