summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremiah Benham <jjbenham@chicagoguitar.com>2011-02-17 18:22:12 -0600
committerJeremiah Benham <jjbenham@chicagoguitar.com>2011-02-17 18:22:12 -0600
commit5097ea6c1e3ac9de66ba1ba3f40ae7e1448339f6 (patch)
tree6a17e3ebe5184751e8eef701a88bc4a7511fa568
parent4e0d81bc8cef0238eca341bde0215bc229355e5e (diff)
import file set to REPLACE_SCORE and no confirmation
-rw-r--r--src/file.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/file.c b/src/file.c
index 97f16704..158ae01d 100644
--- a/src/file.c
+++ b/src/file.c
@@ -617,10 +617,7 @@ file_import_lilypond_with_check (GtkAction * action, DenemoScriptParam * param)
return;
}
DenemoGUI *gui = Denemo.gui;
- if (!gui->notsaved || (gui->notsaved && (confirmbox (gui))))
- {
- param->status = !file_import_lilypond (gui, FALSE, ADD_MOVEMENTS, filename);
- }
+ param->status = !file_import_lilypond (gui, FALSE, REPLACE_SCORE, filename);
}
/**
@@ -639,10 +636,7 @@ file_import_midi_with_check (GtkAction * action, DenemoScriptParam * param)
return;
}
DenemoGUI *gui = Denemo.gui;
- if (!gui->notsaved || (gui->notsaved && (confirmbox (gui))))
- {
- param->status = !file_import_midi (gui, FALSE, ADD_MOVEMENTS, filename);
- }
+ param->status = !file_import_midi (gui, FALSE, REPLACE_SCORE, filename);
}
/**
@@ -661,10 +655,7 @@ file_import_musicxml_with_check (GtkAction * action, DenemoScriptParam * param)
return;
}
DenemoGUI *gui = Denemo.gui;
- if (!gui->notsaved || (gui->notsaved && (confirmbox (gui))))
- {
- param->status = !file_import_musicxml (gui, FALSE, ADD_MOVEMENTS, filename);
- }
+ param->status = !file_import_musicxml (gui, FALSE, REPLACE_SCORE, filename);
}
/**
@@ -782,8 +773,6 @@ file_import_lilypond (DenemoGUI * gui, DenemoSaveType template, ImportType type,
GtkWidget *file_selection;
GtkFileFilter *filter;
- int i;
-
file_selection = gtk_file_chooser_dialog_new (_("Import Lilypond"),
GTK_WINDOW (Denemo.window),
GTK_FILE_CHOOSER_ACTION_OPEN,
@@ -814,7 +803,7 @@ file_import_lilypond (DenemoGUI * gui, DenemoSaveType template, ImportType type,
g_free (name);
}
gtk_widget_destroy (file_selection);
- return ret;
+ return 0;
}
/**