Mercurial > audlegacy-plugins
changeset 1480:1505426e8d0d
Add an init function with a uri_set_plugin call
author | Christian Birchinger <joker@netswarm.net> |
---|---|
date | Sun, 12 Aug 2007 20:44:02 +0200 |
parents | 7b3aa5513041 |
children | 469419424896 |
files | src/tonegen/tonegen.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tonegen/tonegen.c Sun Aug 12 07:17:10 2007 -0500 +++ b/src/tonegen/tonegen.c Sun Aug 12 20:44:02 2007 +0200 @@ -42,6 +42,11 @@ static gboolean audio_error; static GThread *play_thread; +static void tone_init(void) +{ + uri_set_plugin("tone://", &tone_ip); +} + static void tone_about(void) { static GtkWidget *box; @@ -241,7 +246,7 @@ NULL, NULL, "Tone Generator", /* Description */ - NULL, + tone_init, tone_about, NULL, tone_is_our_file,