]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Make 'report_error()' usable from outside of main.c
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 16:49:54 +0000 (09:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 16:49:54 +0000 (09:49 -0700)
The dive computer import code will want to show errors too..

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
display.h
main.c

index 4b2e83b494d6f08780a17ee114aaf401ba7379ef..df701a3b988037b59bdf7ed715a0f78d091ac8d6 100644 (file)
--- a/display.h
+++ b/display.h
@@ -8,6 +8,7 @@
 extern GtkWidget *main_window;
 
 extern void import_dialog(GtkWidget *, gpointer);
+extern void report_error(GError* error);
 
 extern GtkWidget *dive_profile_widget(void);
 extern GtkWidget *dive_info_frame(void);
diff --git a/main.c b/main.c
index ab2948e46ba67962abedb59507aae3f613dfea00..23570828e0e0490f3caac92de8142f8af9dddeee 100644 (file)
--- 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)
        {