static gboolean
audio_note_record_cb(GtkWidget *widget, gpointer data)
{
-const gchar *basedir;
gchar buffer[128];
audio_note_ui *ui=(audio_note_ui *)data;
time_t t;
/* XXX: Make this a configuration option */
#ifdef WITH_DEVICE_770
-audio_note_set_basedir(NOTES_BASEDIR_MMC1);
+audio_note_set_basedir(ui, NOTES_BASEDIR_MMC1);
#else
-audio_note_setbasedir(g_get_home_dir());
+audio_note_set_basedir(ui, g_get_home_dir());
#endif
g_signal_connect(G_OBJECT(ui->btn_record), "clicked", G_CALLBACK(audio_note_record_cb), ui);