}
}
+gboolean
+gtk_map_add_path(GtkWidget *widget, Path *path)
+{
+GtkMap *map;
+GtkMapPriv *priv;
+
+g_return_if_fail(GTK_IS_MAP(widget));
+g_return_if_fail(path);
+
+map=GTK_MAP(widget);
+priv=GTK_MAP_GET_PRIVATE(map);
+
+/* Don't allow duplicates */
+if (g_slist_find(priv->paths, path)!=NULL)
+ return FALSE;
+priv->paths=g_slist_append(priv->paths, path);
+return TRUE;
+}
+
+gboolean
+gtk_map_remove_path(GtkWidget *widget, Path *path)
+{
+GtkMap *map;
+GtkMapPriv *priv;
+
+g_return_if_fail(GTK_IS_MAP(widget));
+g_return_if_fail(path);
+
+map=GTK_MAP(widget);
+priv=GTK_MAP_GET_PRIVATE(map);
+priv->paths=g_slist_remove(priv->paths, path);
+}
+
static void
gtk_map_mark_draw(GtkWidget *widget, GdkEventExpose *event)
{
void gtk_map_move_mark(GtkWidget *map);
/* Path functions */
-void gtk_map_set_path(GtkWidget *map, Path *path, PathType type, gint id);
+gboolean gtk_map_add_path(GtkWidget *map, Path *path);
gboolean gtk_map_remove_path(GtkWidget *map, Path *path);
-gboolean gtk_map_remove_path_by_id(GtkWidget *map, gint id);
+gboolean gtk_map_remove_path_by_id(GtkWidget *map, gint path_id);
/* Get copy of map buffer */
GdkPixmap *gtk_map_pixmap_get(GtkWidget *map);