X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=main.c;h=23570828e0e0490f3caac92de8142f8af9dddeee;hb=d5b7f7dc06827cab8dd57d6d373a08d6be111c79;hp=367d3ada4e54912ab868926dc5fc7a28a0c43389;hpb=9d960c1845ef069a76e58520dfe6f9042b4eb42e;p=ext%2Fsubsurface.git diff --git a/main.c b/main.c index 367d3ad..2357082 100644 --- a/main.c +++ b/main.c @@ -124,7 +124,7 @@ static void on_info_bar_response(GtkWidget *widget, gint response, } } -static void report_error(GError* error) +void report_error(GError* error) { if (error == NULL) { @@ -367,6 +367,7 @@ static GtkActionEntry menu_items[] = { { "FileMenuAction", GTK_STOCK_FILE, "Log", NULL, NULL, NULL}, { "OpenFile", GTK_STOCK_OPEN, NULL, "O", NULL, G_CALLBACK(file_open) }, { "SaveFile", GTK_STOCK_SAVE, NULL, "S", NULL, G_CALLBACK(file_save) }, + { "Import", NULL, "Import", NULL, NULL, G_CALLBACK(import_dialog) }, { "Units", NULL, "Units", NULL, NULL, G_CALLBACK(unit_dialog) }, { "Renumber", NULL, "Renumber", NULL, NULL, G_CALLBACK(renumber_dialog) }, { "Quit", GTK_STOCK_QUIT, NULL, "Q", NULL, G_CALLBACK(quit) }, @@ -380,9 +381,11 @@ static const gchar* ui_string = " \ \ \ \ + \ + \ \ \ - \ + \ \ \ \