/* Layer Interface function definitions */
static VikTrwLayer* trw_layer_create ( VikViewport *vp );
static void trw_layer_realize ( VikTrwLayer *vtl, VikTreeview *vt, GtkTreeIter *layer_iter );
-static void trw_layer_post_read ( VikTrwLayer *vtl, GtkWidget *vvp, gboolean from_file );
+static void trw_layer_post_read ( VikTrwLayer *vtl, VikViewport *vvp, gboolean from_file );
static void trw_layer_free ( VikTrwLayer *trwlayer );
static void trw_layer_draw ( VikTrwLayer *l, gpointer data );
static void trw_layer_change_coord_mode ( VikTrwLayer *vtl, VikCoordMode dest_mode );
vik_treeview_item_set_visible ( (VikTreeview *) vt, &(vtl->waypoints_iter), vtl->waypoints_visible );
}
- trw_layer_verify_thumbnails ( vtl, NULL );
+ trw_layer_verify_thumbnails ( vtl );
trw_layer_sort_all ( vtl );
}
// Reverify thumbnails as they may have changed
vtl->has_verified_thumbnails = FALSE;
- trw_layer_verify_thumbnails ( vtl, NULL );
+ trw_layer_verify_thumbnails ( vtl );
}
#endif
g_free ( tctd );
}
-void trw_layer_verify_thumbnails ( VikTrwLayer *vtl, GtkWidget *vp )
+void trw_layer_verify_thumbnails ( VikTrwLayer *vtl )
{
if ( ! vtl->has_verified_thumbnails )
{
return timestamp_waypoints;
}
-static void trw_layer_post_read ( VikTrwLayer *vtl, GtkWidget *vvp, gboolean from_file )
+static void trw_layer_post_read ( VikTrwLayer *vtl, VikViewport *vvp, gboolean from_file )
{
if ( VIK_LAYER(vtl)->realized )
- trw_layer_verify_thumbnails ( vtl, vvp );
+ trw_layer_verify_thumbnails ( vtl );
trw_layer_track_alloc_colors ( vtl );
trw_layer_calculate_bounds_waypoints ( vtl );
/* Exposed Layer Interface function definitions */
// Intended only for use by other trw_layer subwindows
-void trw_layer_verify_thumbnails ( VikTrwLayer *vtl, GtkWidget *vp );
+void trw_layer_verify_thumbnails ( VikTrwLayer *vtl );
// Other functions only for use by other trw_layer subwindows
gchar *trw_layer_new_unique_sublayer_name ( VikTrwLayer *vtl, gint sublayer_type, const gchar *name );
void trw_layer_waypoint_rename ( VikTrwLayer *vtl, VikWaypoint *wp, const gchar *new_name );
if ( IS_VIK_LAYER(options->vtl) ) {
trw_layer_calculate_bounds_waypoints ( options->vtl );
// Ensure any new images get shown
- trw_layer_verify_thumbnails ( options->vtl, NULL ); // NB second parameter not used ATM
+ trw_layer_verify_thumbnails ( options->vtl );
// Force redraw as verify only redraws if there are new thumbnails (they may already exist)
vik_layer_emit_update ( VIK_LAYER(options->vtl) ); // NB Update from background
}