mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Split up file reading from 'parse-xml.c' into 'file.c'
We're going to eventually import non-xml files too, so let's begin splitting the logic up. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6e0ea1ce61
commit
4d10bc017a
6 changed files with 88 additions and 71 deletions
|
@ -114,7 +114,7 @@ static void file_open(GtkWidget *w, gpointer data)
|
|||
GError *error = NULL;
|
||||
while(filenames != NULL) {
|
||||
filename = filenames->data;
|
||||
parse_xml_file(filename, &error);
|
||||
parse_file(filename, &error);
|
||||
if (error != NULL)
|
||||
{
|
||||
report_error(error);
|
||||
|
@ -961,7 +961,7 @@ static GtkWidget *xml_file_selector(GtkWidget *vbox, GtkWidget *main_dialog)
|
|||
static void do_import_file(gpointer data, gpointer user_data)
|
||||
{
|
||||
GError *error = NULL;
|
||||
parse_xml_file(data, &error);
|
||||
parse_file(data, &error);
|
||||
|
||||
if (error != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue