]> err.no Git - mapper/commitdiff
More fixes to basedir setting
authorKaj-Michael Lang <milang@tal.org>
Fri, 18 Apr 2008 11:52:24 +0000 (14:52 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 18 Apr 2008 11:52:24 +0000 (14:52 +0300)
src/audio-note.c

index 88140bfd96971bbc19d091213fbdf192f996ab76..c01003f7dc55d36e7045c641816595b553611bda 100644 (file)
@@ -102,7 +102,6 @@ if (ena)
 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;
@@ -202,9 +201,9 @@ ui->basedir=NULL;
 
 /* 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);