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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-12 09:49:54 -07:00
parent afffcdbc0d
commit 425649a278
2 changed files with 2 additions and 1 deletions

View file

@ -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);

2
main.c
View file

@ -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)
{