mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
afffcdbc0d
commit
425649a278
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
extern GtkWidget *main_window;
|
extern GtkWidget *main_window;
|
||||||
|
|
||||||
extern void import_dialog(GtkWidget *, gpointer);
|
extern void import_dialog(GtkWidget *, gpointer);
|
||||||
|
extern void report_error(GError* error);
|
||||||
|
|
||||||
extern GtkWidget *dive_profile_widget(void);
|
extern GtkWidget *dive_profile_widget(void);
|
||||||
extern GtkWidget *dive_info_frame(void);
|
extern GtkWidget *dive_info_frame(void);
|
||||||
|
|
2
main.c
2
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)
|
if (error == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue