]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix an acquire callback type usage.
authorRob Norris <rw_norris@hotmail.com>
Mon, 26 Nov 2012 23:37:58 +0000 (23:37 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sun, 6 Jan 2013 19:07:48 +0000 (19:07 +0000)
src/acquire.c
src/acquire.h

index 5d8d4025c131a18b80c57ff3c8f3e5d16da32c61..78fcfca2351a6881b42550ba73240fba8272ddd6 100644 (file)
@@ -83,7 +83,7 @@ static void progress_func ( BabelProgressCode c, gpointer data, acq_dialog_widge
   gdk_threads_leave ();
 
   if ( w->source_interface->progress_func )
-    w->source_interface->progress_func ( (gpointer) c, data, w );
+    w->source_interface->progress_func ( c, data, w );
 }
 
 
index a8691df21788330545328b8e54559733084c1ba9..e964ccda9b69eab97fd77272c613d7d36fea7b98 100644 (file)
@@ -88,7 +88,7 @@ typedef void (*VikDataSourceGetCmdStringFuncWithInputInput) ( gpointer user_data
 typedef gboolean (*VikDataSourceProcessFunc)  ( gpointer vtl, const gchar *cmd, const gchar *extra, BabelStatusFunc status_cb, acq_dialog_widgets_t *adw );
 
 /* */
-typedef void  (*VikDataSourceProgressFunc)  (gpointer c, gpointer data, acq_dialog_widgets_t *w);
+typedef void  (*VikDataSourceProgressFunc)  ( BabelProgressCode c, gpointer data, acq_dialog_widgets_t *w );
 
 /* Creates widgets to show in a progress dialog, may set up state via user_data */
 typedef void  (*VikDataSourceAddProgressWidgetsFunc) ( GtkWidget *dialog, gpointer user_data );