From fe6101a5cca6da9679c907174cafd194c0abe0d7 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 6 Mar 2008 13:21:15 +0200 Subject: [PATCH] Add header and cast properly. --- src/import-gui.c | 3 ++- src/import-gui.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/import-gui.h diff --git a/src/import-gui.c b/src/import-gui.c index b778ae3..69509fd 100644 --- a/src/import-gui.c +++ b/src/import-gui.c @@ -36,6 +36,7 @@ #include "utils.h" #include "osm-db-import.h" #include "dialogs.h" +#include "import-gui.h" static GtkWidget *progress; static GtkWidget *import_dialog; @@ -43,7 +44,7 @@ static GtkWidget *import_dialog; static gboolean osm_import_progress_cb(gpointer data) { -gtk_progress_bar_pulse(progress); +gtk_progress_bar_pulse(GTK_PROGRESS_BAR(progress)); return TRUE; } diff --git a/src/import-gui.h b/src/import-gui.h new file mode 100644 index 0000000..7ff5535 --- /dev/null +++ b/src/import-gui.h @@ -0,0 +1,6 @@ +#ifndef _IMPORT_GUI_H +#define _IMPORT_GUI_H + +gboolean osm_import_dialog(GtkWidget *window); + +#endif -- 2.39.5