]> git.street.me.uk Git - andy/viking.git/blobdiff - src/datasource_osm_my_traces.c
Enable Windows installation to search for and use deployed extension configuration...
[andy/viking.git] / src / datasource_osm_my_traces.c
index 5db7a59135eea757a456d872292e18f3ab4bc3a8..78b544bbf5646b39373aa1a5a516cec1df5ae9a2 100644 (file)
@@ -627,7 +627,7 @@ static gboolean datasource_osm_my_traces_process ( VikTrwLayer *vtl, const gchar
 
                if ( create_new_layer ) {
                        // Have data but no layer - so create one
-                       vtlX = VIK_TRW_LAYER ( vik_layer_create ( VIK_LAYER_TRW, vik_window_viewport(adw->vw), NULL, FALSE ) );
+                       vtlX = VIK_TRW_LAYER ( vik_layer_create ( VIK_LAYER_TRW, adw->vvp, FALSE ) );
                        if ( ((gpx_meta_data_t*)selected_iterator->data)->name )
                                vik_layer_rename ( VIK_LAYER ( vtlX ), ((gpx_meta_data_t*)selected_iterator->data)->name );
                        else
@@ -644,9 +644,12 @@ static gboolean datasource_osm_my_traces_process ( VikTrwLayer *vtl, const gchar
                        // http://developer.gnome.org/gtk/2.24/GtkProgressBar.html
 
                        got_something = got_something || result;
-                       // TODO feedback to UI to inform which traces failed
-                       if ( !result )
-                               g_warning ( _("Unable to get trace: %s"), url );
+                       if ( !result ) {
+                               // Report errors to the status bar
+                               gchar* msg = g_strdup_printf ( _("Unable to get trace: %s"), url );
+                               vik_window_statusbar_update ( adw->vw, msg, VIK_STATUSBAR_INFO );
+                               g_free (msg);
+                       }
                        g_free ( url );
                }