From 425649a27816dbef9a6684b1da53e2ca6d8b7bd9 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 12 Sep 2011 09:49:54 -0700 Subject: [PATCH] Make 'report_error()' usable from outside of main.c The dive computer import code will want to show errors too.. Signed-off-by: Linus Torvalds --- display.h | 1 + main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/display.h b/display.h index 4b2e83b..df701a3 100644 --- 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 ab2948e..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) { -- 2.45.2