kopia lustrzana https://github.com/windytan/slowrx
ini file, so .ini
rodzic
df038118a8
commit
5b47684c34
1
gui.c
1
gui.c
|
@ -149,7 +149,6 @@ void chooseDir() {
|
|||
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
|
||||
g_key_file_set_string(keyfile,"slowrx","rxdir",gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)));
|
||||
gtk_entry_set_text(GTK_ENTRY(gui.picdirentry),gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)));
|
||||
gtk_widget_destroy (dialog);
|
||||
}
|
||||
|
||||
gtk_widget_destroy (dialog);
|
||||
|
|
2
pcm.c
2
pcm.c
|
@ -123,8 +123,6 @@ int initPcmDevice(char *wanteddevname) {
|
|||
return(-2);
|
||||
}
|
||||
|
||||
//printf("%s\n",g_filename_from_uri(gtk_file_chooser_get_uri(GTK_FILE_CHOOSER(gui.picdir_button)), NULL, NULL));
|
||||
|
||||
if (strcmp(wanteddevname,"default") == 0) {
|
||||
sprintf(pcm_name,"default");
|
||||
} else {
|
||||
|
|
2
slowrx.c
2
slowrx.c
|
@ -232,7 +232,7 @@ int main(int argc, char *argv[]) {
|
|||
// Load config
|
||||
confdir = g_get_user_config_dir();
|
||||
confpath = g_string_new(confdir);
|
||||
g_string_append(confpath, "/slowrx.conf");
|
||||
g_string_append(confpath, "/slowrx.ini");
|
||||
|
||||
keyfile = g_key_file_new();
|
||||
if (g_key_file_load_from_file(keyfile, confpath->str, G_KEY_FILE_KEEP_COMMENTS, NULL)) {
|
||||
|
|
Ładowanie…
Reference in New Issue